diff --git a/.github/workflows/gh_release.yml b/.github/workflows/gh_release.yml index 2727da396..ceda183f3 100644 --- a/.github/workflows/gh_release.yml +++ b/.github/workflows/gh_release.yml @@ -1,16 +1,19 @@ -name: Github Release +name: Automatic Github release on: - workflow_dispatch: - push: - branches: - - main + workflow_dispatch: + push: + branches: + - main jobs: gh_release: permissions: contents: write - uses: Adyen/adyen-node-api-library/.github/workflows/lib-gh-release.yml@develop + uses: Adyen/release-automation-action/.github/workflows/reusable-github-release.yml@v1.0.0 with: - project-name: Go - secrets: inherit + release-title: Adyen Go API Library + develop-branch: develop + release-branch: main + secrets: + token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release_request.yml b/.github/workflows/release_request.yml index 8bd5a0880..194780d70 100644 --- a/.github/workflows/release_request.yml +++ b/.github/workflows/release_request.yml @@ -1,15 +1,29 @@ -name: Release request +name: Prepare release on: - workflow_dispatch: - push: - branches: - - develop + workflow_dispatch: + inputs: + pre-release: + required: false + type: boolean + default: false + description: "This release will be labeled as non-production ready" + push: + branches: + - develop jobs: release: permissions: contents: write pull-requests: write - uses: Adyen/adyen-node-api-library/.github/workflows/lib-release.yml@develop - secrets: inherit + runs-on: ubuntu-latest + steps: + - name: Prepare the next main release + uses: Adyen/release-automation-action@v1.0.0 + with: + token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} + develop-branch: develop + release-branch: main + version-files: src/common/configuration.go + pre-release: ${{ inputs.pre-release || false }} \ No newline at end of file diff --git a/Makefile b/Makefile index 764ca1d3c..a7b66d2dd 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ goimports:=$(shell go env GOPATH)/bin/goimports generator:=go services:=balancecontrol balanceplatform acswebhook configurationwebhook reportwebhook transferwebhook binlookup checkout legalentity management managementwebhook payments payout posterminalmanagement recurring storedvalue transfers dataprotection +services+=disputes output:=src templates:=templates/custom @@ -36,7 +37,7 @@ balanceplatform: hasRestServiceError=true acswebhook: spec=BalancePlatformAcsNotification-v1 configurationwebhook: spec=BalancePlatformConfigurationNotification-v1 reportwebhook: spec=BalancePlatformReportNotification-v1 -transferwebhook: spec=BalancePlatformTransferNotification-v3 +transferwebhook: spec=BalancePlatformTransferNotification-v4 binlookup: spec=BinLookupService-v54 checkout: spec=CheckoutService-v70 checkout: serviceName=Checkout @@ -47,17 +48,19 @@ payout: spec=PayoutService-v68 recurring: spec=RecurringService-v68 storedvalue: spec=StoredValueService-v46 storedvalue: serviceName=StoredValue -transfers: spec=TransferService-v3 +transfers: spec=TransferService-v4 transfers: serviceName=Transfers transfers: hasRestServiceError=true -management: spec=ManagementService-v1 +management: spec=ManagementService-v3 management: serviceName=Management management: hasRestServiceError=true -managementwebhook: spec=ManagementNotificationService-v1 +managementwebhook: spec=ManagementNotificationService-v3 posterminalmanagement: spec=TfmAPIService-v1 posterminalmanagement: serviceName=PosTerminalManagementApi dataprotection: spec=DataProtectionService-v1 dataprotection: serviceName=DataProtection +disputes: spec=DisputeService-v30 +disputes: serviceName=Disputes # Generate a full client (models and service classes) $(services): schema $(openapi-generator-jar) $(goimports) @@ -108,12 +111,4 @@ clean: git checkout src git clean -f -d src -## Releases - -version: - perl -lne 'print "currentVersion=$$1" if /LibVersion = "(.+)"/' < src/common/configuration.go >> "$$GITHUB_OUTPUT" - -bump: - perl -i -pe 's/$$ENV{"CURRENT_VERSION"}/$$ENV{"NEXT_VERSION"}/' src/common/configuration.go - -.PHONY: templates models $(services) version bump +.PHONY: templates models $(services) diff --git a/Readme.md b/Readme.md index be133da0d..5d0014ccf 100644 --- a/Readme.md +++ b/Readme.md @@ -2,7 +2,7 @@ # Adyen Golang API Client Library -[![Go Reference](https://pkg.go.dev/badge/github.com/adyen/adyen-go-api-library/v7.svg)](https://pkg.go.dev/github.com/adyen/adyen-go-api-library/v7) +[![Go Reference](https://pkg.go.dev/badge/github.com/adyen/adyen-go-api-library/v8.svg)](https://pkg.go.dev/github.com/adyen/adyen-go-api-library/v8) This is the officially supported golang library for using Adyen's APIs. @@ -10,25 +10,26 @@ This is the officially supported golang library for using Adyen's APIs. The Library supports all APIs under the following services: -| API | Description | Service constructor | Supported version | -|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|-------------------| -| [Checkout API](https://docs.adyen.com/api-explorer/Checkout/70/overview) | Our latest integration for accepting online payments. | client.Checkout() | **v70** | -| [Payouts API](https://docs.adyen.com/api-explorer/Payout/68/overview) | Endpoints for sending funds to your customers. | client.Payout() | **v68** | -| [Recurring API](https://docs.adyen.com/api-explorer/Recurring/68/overview) | Endpoints for managing saved payment details. | client.Recurring() | **v68** | -| [BIN lookup API](https://docs.adyen.com/api-explorer/BinLookup/54/overview) | The BIN Lookup API provides endpoints for retrieving information based on a given BIN. | client.BinLookup() | **v54** | -| [POS Terminal Management API](https://docs.adyen.com/api-explorer/postfmapi/1/overview) | Endpoints for managing your point-of-sale payment terminals. | client.PosTerminalManagement() | **v1** | -| [Management API](https://docs.adyen.com/api-explorer/Management/1/overview) | Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. | client.Management() | **v1** | -| [Data Protection API](https://docs.adyen.com/development-resources/data-protection-api) | Adyen Data Protection API provides a way for you to process [Subject Erasure Requests](https://gdpr-info.eu/art-17-gdpr/) as mandated in GDPR. | client.DataProtection() | **v1** | -| [Balance Control API](https://docs.adyen.com/api-explorer/BalanceControl/1/overview) | The Balance Control API lets you transfer funds between merchant accounts that belong to the same legal entity and are under the same company account. | client.BalanceControl() | **v1** | -| [Legal Entity Management API](https://docs.adyen.com/api-explorer/legalentity/3/overview) | Manage legal entities that contain information required for verification. | client.LegalEntity() | **v3** | -| [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/2/overview) | The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. | client.BalancePlatform() | **v2** | -| [Transfers API](https://docs.adyen.com/api-explorer/transfers/3/overview) | The Transfers API provides endpoints that can be used to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. | client.Transfers() | **v3** | -| [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api) | Manage both online and point-of-sale gift cards and other stored-value cards. | client.StoredValue() | **v46** | -| [Payments API](https://docs.adyen.com/api-explorer/Payment/68/overview) | Our classic integration for online payments. | client.Payments() | **v68** | -| [Account API](https://docs.adyen.com/api-explorer/Account/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsAccount() | **v6** | -| [Fund API](https://docs.adyen.com/api-explorer/Fund/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsFund() | **v6** | -| [Hosted onboarding API](https://docs.adyen.com/api-explorer/Hop/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsHostedOnboardingPage() | **v6** | -| [Notification Configuration API](https://docs.adyen.com/api-explorer/NotificationConfiguration/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsNotificationConfiguration() | **v6** | +| API | Description | Service constructor | Supported version | +|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|-------------------| +| [Checkout API](https://docs.adyen.com/api-explorer/Checkout/70/overview) | Our latest integration for accepting online payments. | client.Checkout() | **v70** | +| [Payouts API](https://docs.adyen.com/api-explorer/Payout/68/overview) | Endpoints for sending funds to your customers. | client.Payout() | **v68** | +| [Recurring API](https://docs.adyen.com/api-explorer/Recurring/68/overview) | Endpoints for managing saved payment details. | client.Recurring() | **v68** | +| [BIN lookup API](https://docs.adyen.com/api-explorer/BinLookup/54/overview) | The BIN Lookup API provides endpoints for retrieving information based on a given BIN. | client.BinLookup() | **v54** | +| [Disputes API](https://docs.adyen.com/api-explorer/Disputes/30/overview) | You can use the [Disputes API](https://docs.adyen.com/risk-management/disputes-api/) to automate the dispute handling process so that you can respond to disputes and chargebacks as soon as they are initiated. The Disputes API lets you retrieve defense reasons, supply and delete defense documents, and accept or defend disputes. | client.Disputes() | **v30** | +| [POS Terminal Management API](https://docs.adyen.com/api-explorer/postfmapi/1/overview) | Endpoints for managing your point-of-sale payment terminals. | client.PosTerminalManagement() | **v1** | +| [Management API](https://docs.adyen.com/api-explorer/Management/3/overview) | Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. | client.Management() | **v3** | +| [Data Protection API](https://docs.adyen.com/development-resources/data-protection-api) | Adyen Data Protection API provides a way for you to process [Subject Erasure Requests](https://gdpr-info.eu/art-17-gdpr/) as mandated in GDPR. | client.DataProtection() | **v1** | +| [Balance Control API](https://docs.adyen.com/api-explorer/BalanceControl/1/overview) | The Balance Control API lets you transfer funds between merchant accounts that belong to the same legal entity and are under the same company account. | client.BalanceControl() | **v1** | +| [Legal Entity Management API](https://docs.adyen.com/api-explorer/legalentity/3/overview) | Manage legal entities that contain information required for verification. | client.LegalEntity() | **v3** | +| [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/2/overview) | The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. | client.BalancePlatform() | **v2** | +| [Transfers API](https://docs.adyen.com/api-explorer/transfers/4/overview) | The Transfers API provides endpoints that can be used to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. | client.Transfers() | **v4** | +| [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api) | Manage both online and point-of-sale gift cards and other stored-value cards. | client.StoredValue() | **v46** | +| [Payments API](https://docs.adyen.com/api-explorer/Payment/68/overview) | Our classic integration for online payments. | client.Payments() | **v68** | +| [Account API](https://docs.adyen.com/api-explorer/Account/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsAccount() | **v6** | +| [Fund API](https://docs.adyen.com/api-explorer/Fund/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsFund() | **v6** | +| [Hosted onboarding API](https://docs.adyen.com/api-explorer/Hop/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsHostedOnboardingPage() | **v6** | +| [Notification Configuration API](https://docs.adyen.com/api-explorer/NotificationConfiguration/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | client.PlatformsNotificationConfiguration() | **v6** | For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/). @@ -41,9 +42,9 @@ The library supports all webhooks under the following model directories: | [Payment Webhooks](https://docs.adyen.com/api-explorer/Webhooks/1/overview) | Adyen uses webhooks to send notifications about payment status updates, newly available reports, and other events that can be subscribed to. For more information, refer to our [documentation](https://docs.adyen.com/development-resources/webhooks). | [webhook](src/webhook) | **v1** | | [Authentication Webhooks](https://docs.adyen.com/api-explorer/acs-webhook/1/overview) | Adyen sends this webhook when the process of cardholder authentication is finalized, whether it is completed successfully, fails, or expires. | [acswebhook](src/acswebhook) | **v1** | | [Configuration Webhooks](https://docs.adyen.com/api-explorer/balanceplatform-webhooks/1/overview) | You can use these webhooks to build your implementation. For example, you can use this information to update internal statuses when the status of a capability is changed. | [configurationwebhook](src/configurationwebhook) | **v1** | -| [Transfer Webhooks](https://docs.adyen.com/api-explorer/transfer-webhooks/3/overview) | You can use these webhooks to build your implementation. For example, you can use this information to update balances in your own dashboards or to keep track of incoming funds. | [transferwebhook](src/transferwebhook) | **v3** | +| [Transfer Webhooks](https://docs.adyen.com/api-explorer/transfer-webhooks/4/overview) | You can use these webhooks to build your implementation. For example, you can use this information to update balances in your own dashboards or to keep track of incoming funds. | [transferwebhook](src/transferwebhook) | **v4** | | [Report Webhooks](https://docs.adyen.com/api-explorer/report-webhooks/1/overview) | You can download reports programmatically by making an HTTP GET request, or manually from your Balance Platform Customer Area | [reportwebhook](src/reportwebhook) | **v1** | -| [Management Webhooks](https://docs.adyen.com/api-explorer/ManagementNotification/1/overview) | Adyen uses webhooks to inform your system about events that happen with your Adyen company and merchant accounts, stores, payment terminals, and payment methods when using Management API. | [managementwebhook](src/managementwebhook) | **v1** | +| [Management Webhooks](https://docs.adyen.com/api-explorer/ManagementNotification/3/overview) | Adyen uses webhooks to inform your system about events that happen with your Adyen company and merchant accounts, stores, payment terminals, and payment methods when using Management API. | [managementwebhook](src/managementwebhook) | **v3** | | [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/Notification/6/overview) | **Deprecated:** This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead. | [platformsnotificationevents](src/platformsnotificationevents) | **v6** | ## Prerequisites @@ -64,7 +65,7 @@ The library supports all webhooks under the following model directories: You can use go modules to add our library to your project ```bash -go get github.com/adyen/adyen-go-api-library/v7 +go get github.com/adyen/adyen-go-api-library/v8@v8.0.0-beta ``` ## Usage examples @@ -74,9 +75,9 @@ go get github.com/adyen/adyen-go-api-library/v7 ```go import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" ) client := adyen.NewClient(&common.Config{ @@ -96,9 +97,9 @@ res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), re ```go import ( - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" ) client := adyen.NewClient(&common.Config{ @@ -119,9 +120,9 @@ res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), re ```go import ( - "github.com/adyen/adyen-go-api-library/v7/src/recurring" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/recurring" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" ) client := adyen.NewClient(&common.Config{ @@ -147,7 +148,7 @@ res, httpRes, err := service.ListRecurringDetails(context.Background(), req) ```go import ( - "github.com/adyen/adyen-go-api-library/v7/src/webhook" + "github.com/adyen/adyen-go-api-library/v8/src/webhook" ) msg, err := webhook.HandleRequest(`{"live": "false", "notificationItems": []}`) @@ -157,9 +158,9 @@ msg, err := webhook.HandleRequest(`{"live": "false", "notificationItems": []}`) ```go import ( - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" ) client := adyen.NewClient(&common.Config{ diff --git a/VERSION b/VERSION new file mode 100644 index 000000000..51900e718 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +8.0.0-beta \ No newline at end of file diff --git a/go.mod b/go.mod index 02f2951c7..a6789f691 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/adyen/adyen-go-api-library/v7 +module github.com/adyen/adyen-go-api-library/v8 go 1.13 diff --git a/go.sum b/go.sum index 5e0a5a84a..f9502e3f4 100644 --- a/go.sum +++ b/go.sum @@ -705,7 +705,6 @@ github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -727,8 +726,8 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -755,7 +754,6 @@ github.com/google/s2a-go v0.1.0/go.mod h1:OJpEgntRZo8ugHpF9hkoLJbS5dSI20XZeXJ9JV github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -802,9 +800,11 @@ github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa02 github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= @@ -832,6 +832,7 @@ github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qq github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= @@ -1001,7 +1002,6 @@ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= @@ -1034,7 +1034,6 @@ golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= -golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= @@ -1515,16 +1514,15 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/main.go b/main.go index d71e812ed..6a50489f9 100644 --- a/main.go +++ b/main.go @@ -9,8 +9,8 @@ package main import ( "fmt" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) func main() { diff --git a/main_test.go b/main_test.go index 73b7cb3cd..a179f5130 100644 --- a/main_test.go +++ b/main_test.go @@ -5,9 +5,9 @@ import ( "strings" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/src/acswebhook/model_amount.go b/src/acswebhook/model_amount.go index 80575e8dd..466101c94 100644 --- a/src/acswebhook/model_amount.go +++ b/src/acswebhook/model_amount.go @@ -11,7 +11,7 @@ package acswebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_authentication_info.go b/src/acswebhook/model_authentication_info.go index 2a606741b..64055b5f7 100644 --- a/src/acswebhook/model_authentication_info.go +++ b/src/acswebhook/model_authentication_info.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AuthenticationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_authentication_notification_data.go b/src/acswebhook/model_authentication_notification_data.go index d64e5a2d8..7a4432b63 100644 --- a/src/acswebhook/model_authentication_notification_data.go +++ b/src/acswebhook/model_authentication_notification_data.go @@ -11,7 +11,7 @@ package acswebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AuthenticationNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_authentication_notification_request.go b/src/acswebhook/model_authentication_notification_request.go index c243c72bf..7e155eeaf 100644 --- a/src/acswebhook/model_authentication_notification_request.go +++ b/src/acswebhook/model_authentication_notification_request.go @@ -11,7 +11,7 @@ package acswebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AuthenticationNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_balance_platform_notification_response.go b/src/acswebhook/model_balance_platform_notification_response.go index 0abc3f99d..4f06b1f4b 100644 --- a/src/acswebhook/model_balance_platform_notification_response.go +++ b/src/acswebhook/model_balance_platform_notification_response.go @@ -11,7 +11,7 @@ package acswebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalancePlatformNotificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_challenge_info.go b/src/acswebhook/model_challenge_info.go index 36bbb7cb0..303ca561c 100644 --- a/src/acswebhook/model_challenge_info.go +++ b/src/acswebhook/model_challenge_info.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ChallengeInfo type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_purchase_info.go b/src/acswebhook/model_purchase_info.go index 8dd863023..8ecdaf442 100644 --- a/src/acswebhook/model_purchase_info.go +++ b/src/acswebhook/model_purchase_info.go @@ -11,7 +11,7 @@ package acswebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PurchaseInfo type satisfies the MappedNullable interface at compile time diff --git a/src/acswebhook/model_resource.go b/src/acswebhook/model_resource.go index 1d58e85e2..b4e124ff6 100644 --- a/src/acswebhook/model_resource.go +++ b/src/acswebhook/model_resource.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Resource type satisfies the MappedNullable interface at compile time diff --git a/src/adyen/api.go b/src/adyen/api.go index 019fe50b4..efaa79d38 100644 --- a/src/adyen/api.go +++ b/src/adyen/api.go @@ -8,27 +8,27 @@ package adyen import ( "fmt" - "github.com/adyen/adyen-go-api-library/v7/src/dataprotection" + "github.com/adyen/adyen-go-api-library/v8/src/dataprotection" "net/http" - "github.com/adyen/adyen-go-api-library/v7/src/balancecontrol" - "github.com/adyen/adyen-go-api-library/v7/src/balanceplatform" - "github.com/adyen/adyen-go-api-library/v7/src/binlookup" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/disputes" - "github.com/adyen/adyen-go-api-library/v7/src/legalentity" - "github.com/adyen/adyen-go-api-library/v7/src/management" - "github.com/adyen/adyen-go-api-library/v7/src/payments" - "github.com/adyen/adyen-go-api-library/v7/src/payout" - "github.com/adyen/adyen-go-api-library/v7/src/platformsaccount" - "github.com/adyen/adyen-go-api-library/v7/src/platformsfund" - "github.com/adyen/adyen-go-api-library/v7/src/platformshostedonboardingpage" - "github.com/adyen/adyen-go-api-library/v7/src/platformsnotificationconfiguration" - "github.com/adyen/adyen-go-api-library/v7/src/posterminalmanagement" - "github.com/adyen/adyen-go-api-library/v7/src/recurring" - "github.com/adyen/adyen-go-api-library/v7/src/storedvalue" - "github.com/adyen/adyen-go-api-library/v7/src/transfers" + "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" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/disputes" + "github.com/adyen/adyen-go-api-library/v8/src/legalentity" + "github.com/adyen/adyen-go-api-library/v8/src/management" + "github.com/adyen/adyen-go-api-library/v8/src/payments" + "github.com/adyen/adyen-go-api-library/v8/src/payout" + "github.com/adyen/adyen-go-api-library/v8/src/platformsaccount" + "github.com/adyen/adyen-go-api-library/v8/src/platformsfund" + "github.com/adyen/adyen-go-api-library/v8/src/platformshostedonboardingpage" + "github.com/adyen/adyen-go-api-library/v8/src/platformsnotificationconfiguration" + "github.com/adyen/adyen-go-api-library/v8/src/posterminalmanagement" + "github.com/adyen/adyen-go-api-library/v8/src/recurring" + "github.com/adyen/adyen-go-api-library/v8/src/storedvalue" + "github.com/adyen/adyen-go-api-library/v8/src/transfers" ) // Constants used for the client API @@ -73,8 +73,8 @@ const ( DisputesAPIVersion = "v30" StoredValueAPIVersion = "v46" BalancePlatformAPIVersion = "v2" - TransfersAPIVersion = "v3" - ManagementAPIVersion = "v1" + TransfersAPIVersion = "v4" + ManagementAPIVersion = "v3" LegalEntityAPIVersion = "v3" PosTerminalManagementAPIVersion = "v1" DataProtectionAPIVersion = "v1" @@ -100,7 +100,7 @@ type APIClient struct { // Deprecated: Please migrate to the new Adyen For Platforms. platformsNotificationConfiguration *platformsnotificationconfiguration.PlatformsNotificationConfiguration posTerminalManagement *posterminalmanagement.GeneralApi - disputes *disputes.Disputes + disputes *disputes.GeneralApi storedValue *storedvalue.GeneralApi balancePlatform *balanceplatform.APIClient transfers *transfers.APIClient @@ -309,9 +309,9 @@ func (c *APIClient) LegalEntity() *legalentity.APIClient { return c.legalEntity } -func (c *APIClient) Disputes() *disputes.Disputes { +func (c *APIClient) Disputes() *disputes.GeneralApi { if c.disputes == nil { - c.disputes = &disputes.Disputes{ + c.disputes = &disputes.GeneralApi{ Client: c.client, BasePath: func() string { return fmt.Sprintf("%s/%s", c.client.Cfg.DisputesEndpoint, DisputesAPIVersion) @@ -378,7 +378,7 @@ func (c *APIClient) DataProtection() *dataprotection.GeneralApi { c.dataProtection = &dataprotection.GeneralApi{ Client: c.client, BasePath: func() string { - return fmt.Sprintf("%s/%s", c.client.Cfg.DataProtectionEndpoint, DataProtectionAPIVersion) + return fmt.Sprintf("%s/%s", c.client.Cfg.DataProtectionEndpoint, DataProtectionAPIVersion) }, } } diff --git a/src/adyen/api_test.go b/src/adyen/api_test.go index e47bb3ccd..2bc80ddb9 100644 --- a/src/adyen/api_test.go +++ b/src/adyen/api_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/recurring" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/recurring" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/src/balancecontrol/api_general.go b/src/balancecontrol/api_general.go index 0882945c4..dfe11cac9 100644 --- a/src/balancecontrol/api_general.go +++ b/src/balancecontrol/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/balancecontrol/model_amount.go b/src/balancecontrol/model_amount.go index a0cd85d83..e82fcc970 100644 --- a/src/balancecontrol/model_amount.go +++ b/src/balancecontrol/model_amount.go @@ -11,7 +11,7 @@ package balancecontrol import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/balancecontrol/model_balance_transfer_request.go b/src/balancecontrol/model_balance_transfer_request.go index 841569405..fbd86c8f3 100644 --- a/src/balancecontrol/model_balance_transfer_request.go +++ b/src/balancecontrol/model_balance_transfer_request.go @@ -11,7 +11,7 @@ package balancecontrol import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceTransferRequest type satisfies the MappedNullable interface at compile time diff --git a/src/balancecontrol/model_balance_transfer_response.go b/src/balancecontrol/model_balance_transfer_response.go index a7238b3c9..74c4cb7e1 100644 --- a/src/balancecontrol/model_balance_transfer_response.go +++ b/src/balancecontrol/model_balance_transfer_response.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceTransferResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/api_account_holders.go b/src/balanceplatform/api_account_holders.go index df253f605..d051e561b 100644 --- a/src/balanceplatform/api_account_holders.go +++ b/src/balanceplatform/api_account_holders.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // AccountHoldersApi service diff --git a/src/balanceplatform/api_balance_accounts.go b/src/balanceplatform/api_balance_accounts.go index 3b72cf4e0..b612f9d62 100644 --- a/src/balanceplatform/api_balance_accounts.go +++ b/src/balanceplatform/api_balance_accounts.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // BalanceAccountsApi service diff --git a/src/balanceplatform/api_bank_account_validation.go b/src/balanceplatform/api_bank_account_validation.go index a9146efd1..4b6571115 100644 --- a/src/balanceplatform/api_bank_account_validation.go +++ b/src/balanceplatform/api_bank_account_validation.go @@ -15,7 +15,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // BankAccountValidationApi service diff --git a/src/balanceplatform/api_grant_accounts.go b/src/balanceplatform/api_grant_accounts.go index 6a5889277..183b9c35a 100644 --- a/src/balanceplatform/api_grant_accounts.go +++ b/src/balanceplatform/api_grant_accounts.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GrantAccountsApi service diff --git a/src/balanceplatform/api_grant_offers.go b/src/balanceplatform/api_grant_offers.go index c7b7d157d..dc9d0637e 100644 --- a/src/balanceplatform/api_grant_offers.go +++ b/src/balanceplatform/api_grant_offers.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GrantOffersApi service diff --git a/src/balanceplatform/api_network_tokens.go b/src/balanceplatform/api_network_tokens.go index 395d21c79..591a29632 100644 --- a/src/balanceplatform/api_network_tokens.go +++ b/src/balanceplatform/api_network_tokens.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // NetworkTokensApi service diff --git a/src/balanceplatform/api_payment_instrument_groups.go b/src/balanceplatform/api_payment_instrument_groups.go index 605ee8038..ffbdb0f25 100644 --- a/src/balanceplatform/api_payment_instrument_groups.go +++ b/src/balanceplatform/api_payment_instrument_groups.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PaymentInstrumentGroupsApi service diff --git a/src/balanceplatform/api_payment_instruments.go b/src/balanceplatform/api_payment_instruments.go index 8083bb759..8228fddee 100644 --- a/src/balanceplatform/api_payment_instruments.go +++ b/src/balanceplatform/api_payment_instruments.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PaymentInstrumentsApi service diff --git a/src/balanceplatform/api_platform.go b/src/balanceplatform/api_platform.go index 9aadf116c..423b78c72 100644 --- a/src/balanceplatform/api_platform.go +++ b/src/balanceplatform/api_platform.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PlatformApi service diff --git a/src/balanceplatform/api_transaction_rules.go b/src/balanceplatform/api_transaction_rules.go index 62e7adb19..44c23f8b2 100644 --- a/src/balanceplatform/api_transaction_rules.go +++ b/src/balanceplatform/api_transaction_rules.go @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TransactionRulesApi service diff --git a/src/balanceplatform/client.go b/src/balanceplatform/client.go index 6597fce76..1a44dc259 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/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Configuration API API v2 diff --git a/src/balanceplatform/model_account_holder.go b/src/balanceplatform/model_account_holder.go index a1c31dd13..44a200ffe 100644 --- a/src/balanceplatform/model_account_holder.go +++ b/src/balanceplatform/model_account_holder.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolder type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_account_holder_capability.go b/src/balanceplatform/model_account_holder_capability.go index 959f33328..0c8836cd7 100644 --- a/src/balanceplatform/model_account_holder_capability.go +++ b/src/balanceplatform/model_account_holder_capability.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolderCapability type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_account_holder_info.go b/src/balanceplatform/model_account_holder_info.go index af88abd21..3d942041a 100644 --- a/src/balanceplatform/model_account_holder_info.go +++ b/src/balanceplatform/model_account_holder_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolderInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_account_holder_update_request.go b/src/balanceplatform/model_account_holder_update_request.go index 65f8ccf5f..8d7f3b5d3 100644 --- a/src/balanceplatform/model_account_holder_update_request.go +++ b/src/balanceplatform/model_account_holder_update_request.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolderUpdateRequest type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_account_supporting_entity_capability.go b/src/balanceplatform/model_account_supporting_entity_capability.go index c9ad4ac2a..873c57024 100644 --- a/src/balanceplatform/model_account_supporting_entity_capability.go +++ b/src/balanceplatform/model_account_supporting_entity_capability.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountSupportingEntityCapability type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_active_network_tokens_restriction.go b/src/balanceplatform/model_active_network_tokens_restriction.go index 37bbba03b..a50e96203 100644 --- a/src/balanceplatform/model_active_network_tokens_restriction.go +++ b/src/balanceplatform/model_active_network_tokens_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ActiveNetworkTokensRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_additional_bank_identification.go b/src/balanceplatform/model_additional_bank_identification.go index e65fd0121..3a8646460 100644 --- a/src/balanceplatform/model_additional_bank_identification.go +++ b/src/balanceplatform/model_additional_bank_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalBankIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_address.go b/src/balanceplatform/model_address.go index 64e40632a..b42b67ddf 100644 --- a/src/balanceplatform/model_address.go +++ b/src/balanceplatform/model_address.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_amount.go b/src/balanceplatform/model_amount.go index dbc59fc34..bcaee9978 100644 --- a/src/balanceplatform/model_amount.go +++ b/src/balanceplatform/model_amount.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_au_local_account_identification.go b/src/balanceplatform/model_au_local_account_identification.go index 43917df52..06c099f16 100644 --- a/src/balanceplatform/model_au_local_account_identification.go +++ b/src/balanceplatform/model_au_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_authentication.go b/src/balanceplatform/model_authentication.go index 45cf76a63..436d7b863 100644 --- a/src/balanceplatform/model_authentication.go +++ b/src/balanceplatform/model_authentication.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Authentication type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance.go b/src/balanceplatform/model_balance.go index 8a1780782..589aa765c 100644 --- a/src/balanceplatform/model_balance.go +++ b/src/balanceplatform/model_balance.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Balance type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance_account.go b/src/balanceplatform/model_balance_account.go index 6991cc963..ec97eadd0 100644 --- a/src/balanceplatform/model_balance_account.go +++ b/src/balanceplatform/model_balance_account.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccount type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance_account_base.go b/src/balanceplatform/model_balance_account_base.go index 4a2653da5..c648c2607 100644 --- a/src/balanceplatform/model_balance_account_base.go +++ b/src/balanceplatform/model_balance_account_base.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccountBase type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance_account_info.go b/src/balanceplatform/model_balance_account_info.go index 5f28e7f7a..365fa8833 100644 --- a/src/balanceplatform/model_balance_account_info.go +++ b/src/balanceplatform/model_balance_account_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccountInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance_account_update_request.go b/src/balanceplatform/model_balance_account_update_request.go index 6e8ebd4cc..fd5cd1fcd 100644 --- a/src/balanceplatform/model_balance_account_update_request.go +++ b/src/balanceplatform/model_balance_account_update_request.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccountUpdateRequest type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance_platform.go b/src/balanceplatform/model_balance_platform.go index ec767e377..4b54d580e 100644 --- a/src/balanceplatform/model_balance_platform.go +++ b/src/balanceplatform/model_balance_platform.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalancePlatform type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_balance_sweep_configurations_response.go b/src/balanceplatform/model_balance_sweep_configurations_response.go index 01a93b934..3de17a527 100644 --- a/src/balanceplatform/model_balance_sweep_configurations_response.go +++ b/src/balanceplatform/model_balance_sweep_configurations_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceSweepConfigurationsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_bank_account_identification_validation_request.go b/src/balanceplatform/model_bank_account_identification_validation_request.go index 0b08e51e4..b7eb30ae2 100644 --- a/src/balanceplatform/model_bank_account_identification_validation_request.go +++ b/src/balanceplatform/model_bank_account_identification_validation_request.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccountIdentificationValidationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_br_local_account_identification.go b/src/balanceplatform/model_br_local_account_identification.go index 759a9fee8..746e1058d 100644 --- a/src/balanceplatform/model_br_local_account_identification.go +++ b/src/balanceplatform/model_br_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BRLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_brand_variants_restriction.go b/src/balanceplatform/model_brand_variants_restriction.go index 81225256f..3207b9fce 100644 --- a/src/balanceplatform/model_brand_variants_restriction.go +++ b/src/balanceplatform/model_brand_variants_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BrandVariantsRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_bulk_address.go b/src/balanceplatform/model_bulk_address.go index 16b61bf2e..5186916a0 100644 --- a/src/balanceplatform/model_bulk_address.go +++ b/src/balanceplatform/model_bulk_address.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BulkAddress type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_ca_local_account_identification.go b/src/balanceplatform/model_ca_local_account_identification.go index b9e166e4d..7129c8187 100644 --- a/src/balanceplatform/model_ca_local_account_identification.go +++ b/src/balanceplatform/model_ca_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CALocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_capability_problem.go b/src/balanceplatform/model_capability_problem.go index ae2215f31..e1db2b275 100644 --- a/src/balanceplatform/model_capability_problem.go +++ b/src/balanceplatform/model_capability_problem.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblem type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_capability_problem_entity.go b/src/balanceplatform/model_capability_problem_entity.go index daac60565..1ea0d5e69 100644 --- a/src/balanceplatform/model_capability_problem_entity.go +++ b/src/balanceplatform/model_capability_problem_entity.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntity type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_capability_problem_entity_recursive.go b/src/balanceplatform/model_capability_problem_entity_recursive.go index 8e6c0bba8..87ddbcd5d 100644 --- a/src/balanceplatform/model_capability_problem_entity_recursive.go +++ b/src/balanceplatform/model_capability_problem_entity_recursive.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntityRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_capability_settings.go b/src/balanceplatform/model_capability_settings.go index b99e9bca1..bb1bb59db 100644 --- a/src/balanceplatform/model_capability_settings.go +++ b/src/balanceplatform/model_capability_settings.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilitySettings type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_capital_balance.go b/src/balanceplatform/model_capital_balance.go index c6023cc6d..faf913d85 100644 --- a/src/balanceplatform/model_capital_balance.go +++ b/src/balanceplatform/model_capital_balance.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapitalBalance type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_capital_grant_account.go b/src/balanceplatform/model_capital_grant_account.go index 9417f3c6c..dedae3f82 100644 --- a/src/balanceplatform/model_capital_grant_account.go +++ b/src/balanceplatform/model_capital_grant_account.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapitalGrantAccount type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_card.go b/src/balanceplatform/model_card.go index 6c6f2bd11..9777de816 100644 --- a/src/balanceplatform/model_card.go +++ b/src/balanceplatform/model_card.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_card_configuration.go b/src/balanceplatform/model_card_configuration.go index 49262af48..63aec6a73 100644 --- a/src/balanceplatform/model_card_configuration.go +++ b/src/balanceplatform/model_card_configuration.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_card_info.go b/src/balanceplatform/model_card_info.go index 3ccee3c2d..865958012 100644 --- a/src/balanceplatform/model_card_info.go +++ b/src/balanceplatform/model_card_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_contact_details.go b/src/balanceplatform/model_contact_details.go index 647d57da1..7066d4ccb 100644 --- a/src/balanceplatform/model_contact_details.go +++ b/src/balanceplatform/model_contact_details.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ContactDetails type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_countries_restriction.go b/src/balanceplatform/model_countries_restriction.go index c48fc3fa4..5180e67e0 100644 --- a/src/balanceplatform/model_countries_restriction.go +++ b/src/balanceplatform/model_countries_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CountriesRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_cz_local_account_identification.go b/src/balanceplatform/model_cz_local_account_identification.go index 282cf17c6..80b3eac44 100644 --- a/src/balanceplatform/model_cz_local_account_identification.go +++ b/src/balanceplatform/model_cz_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CZLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_day_of_week_restriction.go b/src/balanceplatform/model_day_of_week_restriction.go index 68674f0a9..b92138385 100644 --- a/src/balanceplatform/model_day_of_week_restriction.go +++ b/src/balanceplatform/model_day_of_week_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DayOfWeekRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_delivery_address.go b/src/balanceplatform/model_delivery_address.go index 55b0d8fba..c3aa9827a 100644 --- a/src/balanceplatform/model_delivery_address.go +++ b/src/balanceplatform/model_delivery_address.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DeliveryAddress type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_delivery_contact.go b/src/balanceplatform/model_delivery_contact.go index 935ea44f0..e2d7248d7 100644 --- a/src/balanceplatform/model_delivery_contact.go +++ b/src/balanceplatform/model_delivery_contact.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DeliveryContact type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_device_info.go b/src/balanceplatform/model_device_info.go index a13d6b143..54fb2430f 100644 --- a/src/balanceplatform/model_device_info.go +++ b/src/balanceplatform/model_device_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DeviceInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_different_currencies_restriction.go b/src/balanceplatform/model_different_currencies_restriction.go index 759558121..00f0a851b 100644 --- a/src/balanceplatform/model_different_currencies_restriction.go +++ b/src/balanceplatform/model_different_currencies_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DifferentCurrenciesRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_dk_local_account_identification.go b/src/balanceplatform/model_dk_local_account_identification.go index f747b335d..0581a87b5 100644 --- a/src/balanceplatform/model_dk_local_account_identification.go +++ b/src/balanceplatform/model_dk_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_duration.go b/src/balanceplatform/model_duration.go index 34d07ce17..d4082a2ba 100644 --- a/src/balanceplatform/model_duration.go +++ b/src/balanceplatform/model_duration.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Duration type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_entry_modes_restriction.go b/src/balanceplatform/model_entry_modes_restriction.go index ebdb7073d..ea8b99d04 100644 --- a/src/balanceplatform/model_entry_modes_restriction.go +++ b/src/balanceplatform/model_entry_modes_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the EntryModesRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_expiry.go b/src/balanceplatform/model_expiry.go index 04ecfe926..9f9510c90 100644 --- a/src/balanceplatform/model_expiry.go +++ b/src/balanceplatform/model_expiry.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Expiry type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_fee.go b/src/balanceplatform/model_fee.go index fcdaec650..069cc1fd7 100644 --- a/src/balanceplatform/model_fee.go +++ b/src/balanceplatform/model_fee.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Fee type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_get_network_token_response.go b/src/balanceplatform/model_get_network_token_response.go index 2a28f64f1..0986aa04b 100644 --- a/src/balanceplatform/model_get_network_token_response.go +++ b/src/balanceplatform/model_get_network_token_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetNetworkTokenResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_grant_limit.go b/src/balanceplatform/model_grant_limit.go index 811a7626d..1e7c04423 100644 --- a/src/balanceplatform/model_grant_limit.go +++ b/src/balanceplatform/model_grant_limit.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GrantLimit type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_grant_offer.go b/src/balanceplatform/model_grant_offer.go index 343163b77..6b6540534 100644 --- a/src/balanceplatform/model_grant_offer.go +++ b/src/balanceplatform/model_grant_offer.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GrantOffer type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_grant_offers.go b/src/balanceplatform/model_grant_offers.go index e83b16b30..46416cdf1 100644 --- a/src/balanceplatform/model_grant_offers.go +++ b/src/balanceplatform/model_grant_offers.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GrantOffers type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_hk_local_account_identification.go b/src/balanceplatform/model_hk_local_account_identification.go index 511889b98..ed428fdc7 100644 --- a/src/balanceplatform/model_hk_local_account_identification.go +++ b/src/balanceplatform/model_hk_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_hu_local_account_identification.go b/src/balanceplatform/model_hu_local_account_identification.go index 551cdffcc..c9142fb1e 100644 --- a/src/balanceplatform/model_hu_local_account_identification.go +++ b/src/balanceplatform/model_hu_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_iban_account_identification.go b/src/balanceplatform/model_iban_account_identification.go index f9ffa90a4..f0acbc716 100644 --- a/src/balanceplatform/model_iban_account_identification.go +++ b/src/balanceplatform/model_iban_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IbanAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_international_transaction_restriction.go b/src/balanceplatform/model_international_transaction_restriction.go index 07d7059bb..0f6878014 100644 --- a/src/balanceplatform/model_international_transaction_restriction.go +++ b/src/balanceplatform/model_international_transaction_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InternationalTransactionRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_invalid_field.go b/src/balanceplatform/model_invalid_field.go index b846184e8..630f1a821 100644 --- a/src/balanceplatform/model_invalid_field.go +++ b/src/balanceplatform/model_invalid_field.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InvalidField type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_json_object.go b/src/balanceplatform/model_json_object.go index 65f46849b..cbb9997cc 100644 --- a/src/balanceplatform/model_json_object.go +++ b/src/balanceplatform/model_json_object.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the JSONObject type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_json_path.go b/src/balanceplatform/model_json_path.go index 1d01e4b60..437791d92 100644 --- a/src/balanceplatform/model_json_path.go +++ b/src/balanceplatform/model_json_path.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the JSONPath type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_list_network_tokens_response.go b/src/balanceplatform/model_list_network_tokens_response.go index 9717f4305..65fa21b4e 100644 --- a/src/balanceplatform/model_list_network_tokens_response.go +++ b/src/balanceplatform/model_list_network_tokens_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListNetworkTokensResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_matching_transactions_restriction.go b/src/balanceplatform/model_matching_transactions_restriction.go index 62a29e0d3..ab04653e0 100644 --- a/src/balanceplatform/model_matching_transactions_restriction.go +++ b/src/balanceplatform/model_matching_transactions_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MatchingTransactionsRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_mccs_restriction.go b/src/balanceplatform/model_mccs_restriction.go index acd9439a9..2e84f9d2b 100644 --- a/src/balanceplatform/model_mccs_restriction.go +++ b/src/balanceplatform/model_mccs_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MccsRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_merchant_acquirer_pair.go b/src/balanceplatform/model_merchant_acquirer_pair.go index 2d62e68db..4e5d82c36 100644 --- a/src/balanceplatform/model_merchant_acquirer_pair.go +++ b/src/balanceplatform/model_merchant_acquirer_pair.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantAcquirerPair type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_merchant_names_restriction.go b/src/balanceplatform/model_merchant_names_restriction.go index a85a78623..59c0f075b 100644 --- a/src/balanceplatform/model_merchant_names_restriction.go +++ b/src/balanceplatform/model_merchant_names_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantNamesRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_merchants_restriction.go b/src/balanceplatform/model_merchants_restriction.go index 7a91031c9..66d35c3b0 100644 --- a/src/balanceplatform/model_merchants_restriction.go +++ b/src/balanceplatform/model_merchants_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantsRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_name.go b/src/balanceplatform/model_name.go index afbb24daa..00770deda 100644 --- a/src/balanceplatform/model_name.go +++ b/src/balanceplatform/model_name.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_network_token.go b/src/balanceplatform/model_network_token.go index bfe7257d7..62cc52cfc 100644 --- a/src/balanceplatform/model_network_token.go +++ b/src/balanceplatform/model_network_token.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NetworkToken type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_no_local_account_identification.go b/src/balanceplatform/model_no_local_account_identification.go index 18ee14759..b588f021e 100644 --- a/src/balanceplatform/model_no_local_account_identification.go +++ b/src/balanceplatform/model_no_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NOLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_number_and_bic_account_identification.go b/src/balanceplatform/model_number_and_bic_account_identification.go index bbfd01189..49f79b3d4 100644 --- a/src/balanceplatform/model_number_and_bic_account_identification.go +++ b/src/balanceplatform/model_number_and_bic_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NumberAndBicAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_nz_local_account_identification.go b/src/balanceplatform/model_nz_local_account_identification.go index 91e80fb87..5ce8d0e2c 100644 --- a/src/balanceplatform/model_nz_local_account_identification.go +++ b/src/balanceplatform/model_nz_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NZLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_paginated_account_holders_response.go b/src/balanceplatform/model_paginated_account_holders_response.go index 060c6ca72..74f18b328 100644 --- a/src/balanceplatform/model_paginated_account_holders_response.go +++ b/src/balanceplatform/model_paginated_account_holders_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaginatedAccountHoldersResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_paginated_balance_accounts_response.go b/src/balanceplatform/model_paginated_balance_accounts_response.go index 93f14a278..ed65ece9a 100644 --- a/src/balanceplatform/model_paginated_balance_accounts_response.go +++ b/src/balanceplatform/model_paginated_balance_accounts_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaginatedBalanceAccountsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_paginated_payment_instruments_response.go b/src/balanceplatform/model_paginated_payment_instruments_response.go index 6b3590d4e..4885a7641 100644 --- a/src/balanceplatform/model_paginated_payment_instruments_response.go +++ b/src/balanceplatform/model_paginated_payment_instruments_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaginatedPaymentInstrumentsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_payment_instrument.go b/src/balanceplatform/model_payment_instrument.go index 7309ca8f0..6820a69f7 100644 --- a/src/balanceplatform/model_payment_instrument.go +++ b/src/balanceplatform/model_payment_instrument.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrument type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_payment_instrument_group.go b/src/balanceplatform/model_payment_instrument_group.go index 30064caab..2e8e1cd91 100644 --- a/src/balanceplatform/model_payment_instrument_group.go +++ b/src/balanceplatform/model_payment_instrument_group.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentGroup type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_payment_instrument_group_info.go b/src/balanceplatform/model_payment_instrument_group_info.go index 7cbd60abb..1556d38bf 100644 --- a/src/balanceplatform/model_payment_instrument_group_info.go +++ b/src/balanceplatform/model_payment_instrument_group_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentGroupInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_payment_instrument_info.go b/src/balanceplatform/model_payment_instrument_info.go index 867f84e0f..fad111e09 100644 --- a/src/balanceplatform/model_payment_instrument_info.go +++ b/src/balanceplatform/model_payment_instrument_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_payment_instrument_reveal_info.go b/src/balanceplatform/model_payment_instrument_reveal_info.go index c778f00c3..c262e3731 100644 --- a/src/balanceplatform/model_payment_instrument_reveal_info.go +++ b/src/balanceplatform/model_payment_instrument_reveal_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentRevealInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_payment_instrument_update_request.go b/src/balanceplatform/model_payment_instrument_update_request.go index 8aaa87918..57f3d73a2 100644 --- a/src/balanceplatform/model_payment_instrument_update_request.go +++ b/src/balanceplatform/model_payment_instrument_update_request.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentUpdateRequest type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_phone.go b/src/balanceplatform/model_phone.go index c53eca893..2770e1b00 100644 --- a/src/balanceplatform/model_phone.go +++ b/src/balanceplatform/model_phone.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Phone type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_phone_number.go b/src/balanceplatform/model_phone_number.go index 4fa136900..8da029e8d 100644 --- a/src/balanceplatform/model_phone_number.go +++ b/src/balanceplatform/model_phone_number.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PhoneNumber type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_pl_local_account_identification.go b/src/balanceplatform/model_pl_local_account_identification.go index 73291f8a2..7851f5732 100644 --- a/src/balanceplatform/model_pl_local_account_identification.go +++ b/src/balanceplatform/model_pl_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PLLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_platform_payment_configuration.go b/src/balanceplatform/model_platform_payment_configuration.go index fdde64c29..3ca3a239b 100644 --- a/src/balanceplatform/model_platform_payment_configuration.go +++ b/src/balanceplatform/model_platform_payment_configuration.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PlatformPaymentConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_processing_types_restriction.go b/src/balanceplatform/model_processing_types_restriction.go index 3f8ed3828..64bead516 100644 --- a/src/balanceplatform/model_processing_types_restriction.go +++ b/src/balanceplatform/model_processing_types_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ProcessingTypesRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_remediating_action.go b/src/balanceplatform/model_remediating_action.go index e4803a153..766e146a4 100644 --- a/src/balanceplatform/model_remediating_action.go +++ b/src/balanceplatform/model_remediating_action.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RemediatingAction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_repayment.go b/src/balanceplatform/model_repayment.go index 6270439c9..5d3fed382 100644 --- a/src/balanceplatform/model_repayment.go +++ b/src/balanceplatform/model_repayment.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Repayment type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_repayment_term.go b/src/balanceplatform/model_repayment_term.go index 129ca2f2d..0cc40c2ef 100644 --- a/src/balanceplatform/model_repayment_term.go +++ b/src/balanceplatform/model_repayment_term.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RepaymentTerm type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_rest_service_error.go b/src/balanceplatform/model_rest_service_error.go index f217f18ae..606309d99 100644 --- a/src/balanceplatform/model_rest_service_error.go +++ b/src/balanceplatform/model_rest_service_error.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RestServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_se_local_account_identification.go b/src/balanceplatform/model_se_local_account_identification.go index 1fc1c7416..b281ca854 100644 --- a/src/balanceplatform/model_se_local_account_identification.go +++ b/src/balanceplatform/model_se_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SELocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_sg_local_account_identification.go b/src/balanceplatform/model_sg_local_account_identification.go index 5551e0b6a..2e2c93e7b 100644 --- a/src/balanceplatform/model_sg_local_account_identification.go +++ b/src/balanceplatform/model_sg_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SGLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_string_match.go b/src/balanceplatform/model_string_match.go index df66e737c..0262bc040 100644 --- a/src/balanceplatform/model_string_match.go +++ b/src/balanceplatform/model_string_match.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StringMatch type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_sweep_configuration_v2.go b/src/balanceplatform/model_sweep_configuration_v2.go index eddb6979d..958ef22a0 100644 --- a/src/balanceplatform/model_sweep_configuration_v2.go +++ b/src/balanceplatform/model_sweep_configuration_v2.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepConfigurationV2 type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_sweep_counterparty.go b/src/balanceplatform/model_sweep_counterparty.go index 5a14175f8..5b1661360 100644 --- a/src/balanceplatform/model_sweep_counterparty.go +++ b/src/balanceplatform/model_sweep_counterparty.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepCounterparty type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_sweep_schedule.go b/src/balanceplatform/model_sweep_schedule.go index 5897d0a16..530a3fe92 100644 --- a/src/balanceplatform/model_sweep_schedule.go +++ b/src/balanceplatform/model_sweep_schedule.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepSchedule type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_threshold_repayment.go b/src/balanceplatform/model_threshold_repayment.go index 64424508d..ee82725bb 100644 --- a/src/balanceplatform/model_threshold_repayment.go +++ b/src/balanceplatform/model_threshold_repayment.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThresholdRepayment type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_time_of_day.go b/src/balanceplatform/model_time_of_day.go index 588b8c6eb..096c3d26d 100644 --- a/src/balanceplatform/model_time_of_day.go +++ b/src/balanceplatform/model_time_of_day.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TimeOfDay type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_time_of_day_restriction.go b/src/balanceplatform/model_time_of_day_restriction.go index 59820e796..afdbe6c57 100644 --- a/src/balanceplatform/model_time_of_day_restriction.go +++ b/src/balanceplatform/model_time_of_day_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TimeOfDayRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_total_amount_restriction.go b/src/balanceplatform/model_total_amount_restriction.go index 15b00ad71..52d221ddb 100644 --- a/src/balanceplatform/model_total_amount_restriction.go +++ b/src/balanceplatform/model_total_amount_restriction.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TotalAmountRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rule.go b/src/balanceplatform/model_transaction_rule.go index 0410f75eb..5d8d16d24 100644 --- a/src/balanceplatform/model_transaction_rule.go +++ b/src/balanceplatform/model_transaction_rule.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRule type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rule_entity_key.go b/src/balanceplatform/model_transaction_rule_entity_key.go index d9a86b42d..40426d07d 100644 --- a/src/balanceplatform/model_transaction_rule_entity_key.go +++ b/src/balanceplatform/model_transaction_rule_entity_key.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleEntityKey type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rule_info.go b/src/balanceplatform/model_transaction_rule_info.go index 7281ac01a..73ef9bf3d 100644 --- a/src/balanceplatform/model_transaction_rule_info.go +++ b/src/balanceplatform/model_transaction_rule_info.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleInfo type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rule_interval.go b/src/balanceplatform/model_transaction_rule_interval.go index af504216c..b50bd9cc9 100644 --- a/src/balanceplatform/model_transaction_rule_interval.go +++ b/src/balanceplatform/model_transaction_rule_interval.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleInterval type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rule_response.go b/src/balanceplatform/model_transaction_rule_response.go index 0035da882..0e037fdb4 100644 --- a/src/balanceplatform/model_transaction_rule_response.go +++ b/src/balanceplatform/model_transaction_rule_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rule_restrictions.go b/src/balanceplatform/model_transaction_rule_restrictions.go index 547a712a8..9cfc81a9e 100644 --- a/src/balanceplatform/model_transaction_rule_restrictions.go +++ b/src/balanceplatform/model_transaction_rule_restrictions.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleRestrictions type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_transaction_rules_response.go b/src/balanceplatform/model_transaction_rules_response.go index f287440af..72e718a66 100644 --- a/src/balanceplatform/model_transaction_rules_response.go +++ b/src/balanceplatform/model_transaction_rules_response.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRulesResponse type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_uk_local_account_identification.go b/src/balanceplatform/model_uk_local_account_identification.go index 102a216ec..ce31541eb 100644 --- a/src/balanceplatform/model_uk_local_account_identification.go +++ b/src/balanceplatform/model_uk_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_update_network_token_request.go b/src/balanceplatform/model_update_network_token_request.go index efd28337d..9f17d1caa 100644 --- a/src/balanceplatform/model_update_network_token_request.go +++ b/src/balanceplatform/model_update_network_token_request.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateNetworkTokenRequest type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_update_payment_instrument.go b/src/balanceplatform/model_update_payment_instrument.go index 1cc5dfeb2..37ab96062 100644 --- a/src/balanceplatform/model_update_payment_instrument.go +++ b/src/balanceplatform/model_update_payment_instrument.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdatePaymentInstrument type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_update_sweep_configuration_v2.go b/src/balanceplatform/model_update_sweep_configuration_v2.go index 9aae6448e..2a78a5d5d 100644 --- a/src/balanceplatform/model_update_sweep_configuration_v2.go +++ b/src/balanceplatform/model_update_sweep_configuration_v2.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateSweepConfigurationV2 type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_us_local_account_identification.go b/src/balanceplatform/model_us_local_account_identification.go index 60991a561..876b67f04 100644 --- a/src/balanceplatform/model_us_local_account_identification.go +++ b/src/balanceplatform/model_us_local_account_identification.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the USLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_verification_deadline.go b/src/balanceplatform/model_verification_deadline.go index 7c146e544..aa1cba2fb 100644 --- a/src/balanceplatform/model_verification_deadline.go +++ b/src/balanceplatform/model_verification_deadline.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationDeadline type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_verification_error.go b/src/balanceplatform/model_verification_error.go index 900251306..4417c676e 100644 --- a/src/balanceplatform/model_verification_error.go +++ b/src/balanceplatform/model_verification_error.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationError type satisfies the MappedNullable interface at compile time diff --git a/src/balanceplatform/model_verification_error_recursive.go b/src/balanceplatform/model_verification_error_recursive.go index 7bb67f5d2..09240b030 100644 --- a/src/balanceplatform/model_verification_error_recursive.go +++ b/src/balanceplatform/model_verification_error_recursive.go @@ -11,7 +11,7 @@ package balanceplatform import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationErrorRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/api_general.go b/src/binlookup/api_general.go index aa7517d5d..1d494229e 100644 --- a/src/binlookup/api_general.go +++ b/src/binlookup/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/binlookup/model_amount.go b/src/binlookup/model_amount.go index db4f54144..fa394aa9f 100644 --- a/src/binlookup/model_amount.go +++ b/src/binlookup/model_amount.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_bin_detail.go b/src/binlookup/model_bin_detail.go index 6ae668526..6ea856806 100644 --- a/src/binlookup/model_bin_detail.go +++ b/src/binlookup/model_bin_detail.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BinDetail type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_card_bin.go b/src/binlookup/model_card_bin.go index e0d0a1354..2c36afb82 100644 --- a/src/binlookup/model_card_bin.go +++ b/src/binlookup/model_card_bin.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardBin type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_cost_estimate_assumptions.go b/src/binlookup/model_cost_estimate_assumptions.go index d9af7886c..794b8f481 100644 --- a/src/binlookup/model_cost_estimate_assumptions.go +++ b/src/binlookup/model_cost_estimate_assumptions.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CostEstimateAssumptions type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_cost_estimate_request.go b/src/binlookup/model_cost_estimate_request.go index 6a194db49..a7847a2c3 100644 --- a/src/binlookup/model_cost_estimate_request.go +++ b/src/binlookup/model_cost_estimate_request.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CostEstimateRequest type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_cost_estimate_response.go b/src/binlookup/model_cost_estimate_response.go index 6e9d0b110..67ba61cf4 100644 --- a/src/binlookup/model_cost_estimate_response.go +++ b/src/binlookup/model_cost_estimate_response.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CostEstimateResponse type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_ds_public_key_detail.go b/src/binlookup/model_ds_public_key_detail.go index 53c7e090b..84e97b2c0 100644 --- a/src/binlookup/model_ds_public_key_detail.go +++ b/src/binlookup/model_ds_public_key_detail.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DSPublicKeyDetail type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_merchant_details.go b/src/binlookup/model_merchant_details.go index 559d82cd7..170fac4a4 100644 --- a/src/binlookup/model_merchant_details.go +++ b/src/binlookup/model_merchant_details.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantDetails type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_recurring.go b/src/binlookup/model_recurring.go index eca0a03bc..b69a533ee 100644 --- a/src/binlookup/model_recurring.go +++ b/src/binlookup/model_recurring.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Recurring type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_service_error.go b/src/binlookup/model_service_error.go index c044f30c1..db1310378 100644 --- a/src/binlookup/model_service_error.go +++ b/src/binlookup/model_service_error.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_three_ds2_card_range_detail.go b/src/binlookup/model_three_ds2_card_range_detail.go index 3fbd85710..a41ec8171 100644 --- a/src/binlookup/model_three_ds2_card_range_detail.go +++ b/src/binlookup/model_three_ds2_card_range_detail.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2CardRangeDetail type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_three_ds_availability_request.go b/src/binlookup/model_three_ds_availability_request.go index ca6c65abe..815b787f8 100644 --- a/src/binlookup/model_three_ds_availability_request.go +++ b/src/binlookup/model_three_ds_availability_request.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSAvailabilityRequest type satisfies the MappedNullable interface at compile time diff --git a/src/binlookup/model_three_ds_availability_response.go b/src/binlookup/model_three_ds_availability_response.go index 7de54a41b..01d24f411 100644 --- a/src/binlookup/model_three_ds_availability_response.go +++ b/src/binlookup/model_three_ds_availability_response.go @@ -11,7 +11,7 @@ package binlookup import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSAvailabilityResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/api_classic_checkout_sdk.go b/src/checkout/api_classic_checkout_sdk.go index ad26c8c60..25df0fff1 100644 --- a/src/checkout/api_classic_checkout_sdk.go +++ b/src/checkout/api_classic_checkout_sdk.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // ClassicCheckoutSDKApi service diff --git a/src/checkout/api_modifications.go b/src/checkout/api_modifications.go index a5f48aa97..b418a40e1 100644 --- a/src/checkout/api_modifications.go +++ b/src/checkout/api_modifications.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // ModificationsApi service diff --git a/src/checkout/api_orders.go b/src/checkout/api_orders.go index 2ab5367c0..19a2216b2 100644 --- a/src/checkout/api_orders.go +++ b/src/checkout/api_orders.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // OrdersApi service diff --git a/src/checkout/api_payment_links.go b/src/checkout/api_payment_links.go index b9e0f4cb4..25d68596b 100644 --- a/src/checkout/api_payment_links.go +++ b/src/checkout/api_payment_links.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PaymentLinksApi service diff --git a/src/checkout/api_payments.go b/src/checkout/api_payments.go index df2cc88c3..6c90b5134 100644 --- a/src/checkout/api_payments.go +++ b/src/checkout/api_payments.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PaymentsApi service diff --git a/src/checkout/api_recurring.go b/src/checkout/api_recurring.go index 2245a3e74..c4017a48d 100644 --- a/src/checkout/api_recurring.go +++ b/src/checkout/api_recurring.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // RecurringApi service diff --git a/src/checkout/api_utility.go b/src/checkout/api_utility.go index d27ea8962..d38e43925 100644 --- a/src/checkout/api_utility.go +++ b/src/checkout/api_utility.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // UtilityApi service diff --git a/src/checkout/client.go b/src/checkout/client.go index 143f13e10..55902f2ea 100644 --- a/src/checkout/client.go +++ b/src/checkout/client.go @@ -9,7 +9,7 @@ API version: 70 package checkout import ( - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Adyen Checkout API API v70 diff --git a/src/checkout/model_account_info.go b/src/checkout/model_account_info.go index 989e967cd..1754eaf6e 100644 --- a/src/checkout/model_account_info.go +++ b/src/checkout/model_account_info.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_acct_info.go b/src/checkout/model_acct_info.go index 7ec75c036..b8b7c2577 100644 --- a/src/checkout/model_acct_info.go +++ b/src/checkout/model_acct_info.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AcctInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_ach_details.go b/src/checkout/model_ach_details.go index 37434f7fc..6a5347874 100644 --- a/src/checkout/model_ach_details.go +++ b/src/checkout/model_ach_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AchDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data3_d_secure.go b/src/checkout/model_additional_data3_d_secure.go index 0d1c96729..845a18abd 100644 --- a/src/checkout/model_additional_data3_d_secure.go +++ b/src/checkout/model_additional_data3_d_secure.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalData3DSecure type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_airline.go b/src/checkout/model_additional_data_airline.go index 7789046e6..eed9f34c4 100644 --- a/src/checkout/model_additional_data_airline.go +++ b/src/checkout/model_additional_data_airline.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataAirline type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_car_rental.go b/src/checkout/model_additional_data_car_rental.go index 0cc091848..734b5f0f2 100644 --- a/src/checkout/model_additional_data_car_rental.go +++ b/src/checkout/model_additional_data_car_rental.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataCarRental type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_common.go b/src/checkout/model_additional_data_common.go index 0a687d3dc..5e866926b 100644 --- a/src/checkout/model_additional_data_common.go +++ b/src/checkout/model_additional_data_common.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataCommon type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_level23.go b/src/checkout/model_additional_data_level23.go index ffb4b270c..3c1b0b8cb 100644 --- a/src/checkout/model_additional_data_level23.go +++ b/src/checkout/model_additional_data_level23.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataLevel23 type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_lodging.go b/src/checkout/model_additional_data_lodging.go index 25199929c..40cf96403 100644 --- a/src/checkout/model_additional_data_lodging.go +++ b/src/checkout/model_additional_data_lodging.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataLodging type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_open_invoice.go b/src/checkout/model_additional_data_open_invoice.go index f1b8fbd2c..d19c843d4 100644 --- a/src/checkout/model_additional_data_open_invoice.go +++ b/src/checkout/model_additional_data_open_invoice.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataOpenInvoice type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_opi.go b/src/checkout/model_additional_data_opi.go index 27807147b..06d9f4211 100644 --- a/src/checkout/model_additional_data_opi.go +++ b/src/checkout/model_additional_data_opi.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataOpi type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_ratepay.go b/src/checkout/model_additional_data_ratepay.go index 21b5aa220..b18f120f5 100644 --- a/src/checkout/model_additional_data_ratepay.go +++ b/src/checkout/model_additional_data_ratepay.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRatepay type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_retry.go b/src/checkout/model_additional_data_retry.go index ef4e5ebaf..8a16fe456 100644 --- a/src/checkout/model_additional_data_retry.go +++ b/src/checkout/model_additional_data_retry.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRetry type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_risk.go b/src/checkout/model_additional_data_risk.go index 231907140..86566187f 100644 --- a/src/checkout/model_additional_data_risk.go +++ b/src/checkout/model_additional_data_risk.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRisk type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_risk_standalone.go b/src/checkout/model_additional_data_risk_standalone.go index 4768d95f7..c0de15442 100644 --- a/src/checkout/model_additional_data_risk_standalone.go +++ b/src/checkout/model_additional_data_risk_standalone.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRiskStandalone type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_sub_merchant.go b/src/checkout/model_additional_data_sub_merchant.go index 6fcdba686..d6583300c 100644 --- a/src/checkout/model_additional_data_sub_merchant.go +++ b/src/checkout/model_additional_data_sub_merchant.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataSubMerchant type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_temporary_services.go b/src/checkout/model_additional_data_temporary_services.go index ba3041d42..6c5ba2fa1 100644 --- a/src/checkout/model_additional_data_temporary_services.go +++ b/src/checkout/model_additional_data_temporary_services.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataTemporaryServices type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_additional_data_wallets.go b/src/checkout/model_additional_data_wallets.go index 78b077ab4..885cc4d16 100644 --- a/src/checkout/model_additional_data_wallets.go +++ b/src/checkout/model_additional_data_wallets.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataWallets type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_address.go b/src/checkout/model_address.go index a383862b4..f7e879f7f 100644 --- a/src/checkout/model_address.go +++ b/src/checkout/model_address.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_afterpay_details.go b/src/checkout/model_afterpay_details.go index 2f689d57d..0e591bbae 100644 --- a/src/checkout/model_afterpay_details.go +++ b/src/checkout/model_afterpay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AfterpayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_amazon_pay_details.go b/src/checkout/model_amazon_pay_details.go index d5b8cd3ec..24e1da433 100644 --- a/src/checkout/model_amazon_pay_details.go +++ b/src/checkout/model_amazon_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AmazonPayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_amount.go b/src/checkout/model_amount.go index 65f941c71..cf71dc406 100644 --- a/src/checkout/model_amount.go +++ b/src/checkout/model_amount.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_android_pay_details.go b/src/checkout/model_android_pay_details.go index b48843662..64da29ba4 100644 --- a/src/checkout/model_android_pay_details.go +++ b/src/checkout/model_android_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AndroidPayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_apple_pay_details.go b/src/checkout/model_apple_pay_details.go index 05912e800..dcbc19fd0 100644 --- a/src/checkout/model_apple_pay_details.go +++ b/src/checkout/model_apple_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApplePayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_apple_pay_session_request.go b/src/checkout/model_apple_pay_session_request.go index ac4755615..f44049451 100644 --- a/src/checkout/model_apple_pay_session_request.go +++ b/src/checkout/model_apple_pay_session_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApplePaySessionRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_apple_pay_session_response.go b/src/checkout/model_apple_pay_session_response.go index ebc50723c..c585823b4 100644 --- a/src/checkout/model_apple_pay_session_response.go +++ b/src/checkout/model_apple_pay_session_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApplePaySessionResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_application_info.go b/src/checkout/model_application_info.go index 53a1490c5..6ed3d8edc 100644 --- a/src/checkout/model_application_info.go +++ b/src/checkout/model_application_info.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApplicationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_authentication_data.go b/src/checkout/model_authentication_data.go index a0eeb0145..37eeab0b7 100644 --- a/src/checkout/model_authentication_data.go +++ b/src/checkout/model_authentication_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AuthenticationData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_avs.go b/src/checkout/model_avs.go index a35cd8d33..9e89544df 100644 --- a/src/checkout/model_avs.go +++ b/src/checkout/model_avs.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Avs type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_bacs_direct_debit_details.go b/src/checkout/model_bacs_direct_debit_details.go index 179b9e4c8..e58329fb2 100644 --- a/src/checkout/model_bacs_direct_debit_details.go +++ b/src/checkout/model_bacs_direct_debit_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BacsDirectDebitDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_balance_check_request.go b/src/checkout/model_balance_check_request.go index 253c8d424..dd93efb00 100644 --- a/src/checkout/model_balance_check_request.go +++ b/src/checkout/model_balance_check_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceCheckRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_balance_check_response.go b/src/checkout/model_balance_check_response.go index 7de2b47fa..5bedc73af 100644 --- a/src/checkout/model_balance_check_response.go +++ b/src/checkout/model_balance_check_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceCheckResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_bank_account.go b/src/checkout/model_bank_account.go index e6ec53d85..20afc8c7c 100644 --- a/src/checkout/model_bank_account.go +++ b/src/checkout/model_bank_account.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccount type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_bill_desk_details.go b/src/checkout/model_bill_desk_details.go index a4614cfb1..d07cdaa5d 100644 --- a/src/checkout/model_bill_desk_details.go +++ b/src/checkout/model_bill_desk_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BillDeskDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_blik_details.go b/src/checkout/model_blik_details.go index 95fc3da72..ac055b9e4 100644 --- a/src/checkout/model_blik_details.go +++ b/src/checkout/model_blik_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BlikDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_browser_info.go b/src/checkout/model_browser_info.go index b7b46dc16..36b569c78 100644 --- a/src/checkout/model_browser_info.go +++ b/src/checkout/model_browser_info.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BrowserInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_cancel_order_request.go b/src/checkout/model_cancel_order_request.go index 1d300cc9d..c1b0ac61d 100644 --- a/src/checkout/model_cancel_order_request.go +++ b/src/checkout/model_cancel_order_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CancelOrderRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_cancel_order_response.go b/src/checkout/model_cancel_order_response.go index 8930fa215..60c014191 100644 --- a/src/checkout/model_cancel_order_response.go +++ b/src/checkout/model_cancel_order_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CancelOrderResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_card.go b/src/checkout/model_card.go index badd7828a..5de656762 100644 --- a/src/checkout/model_card.go +++ b/src/checkout/model_card.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_card_brand_details.go b/src/checkout/model_card_brand_details.go index 0bef932a7..538e14782 100644 --- a/src/checkout/model_card_brand_details.go +++ b/src/checkout/model_card_brand_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardBrandDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_card_details.go b/src/checkout/model_card_details.go index b957636a5..13aba3ec7 100644 --- a/src/checkout/model_card_details.go +++ b/src/checkout/model_card_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_card_details_request.go b/src/checkout/model_card_details_request.go index 648b9472f..728be92ff 100644 --- a/src/checkout/model_card_details_request.go +++ b/src/checkout/model_card_details_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardDetailsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_card_details_response.go b/src/checkout/model_card_details_response.go index 56d392f05..457cde674 100644 --- a/src/checkout/model_card_details_response.go +++ b/src/checkout/model_card_details_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardDetailsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_cellulant_details.go b/src/checkout/model_cellulant_details.go index 602d0cce5..a492a302f 100644 --- a/src/checkout/model_cellulant_details.go +++ b/src/checkout/model_cellulant_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CellulantDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_await_action.go b/src/checkout/model_checkout_await_action.go index 3d6c7b9fb..2abdc5b52 100644 --- a/src/checkout/model_checkout_await_action.go +++ b/src/checkout/model_checkout_await_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutAwaitAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_balance_check_request.go b/src/checkout/model_checkout_balance_check_request.go index 3841354c8..56399a2a2 100644 --- a/src/checkout/model_checkout_balance_check_request.go +++ b/src/checkout/model_checkout_balance_check_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutBalanceCheckRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_balance_check_response.go b/src/checkout/model_checkout_balance_check_response.go index 4b651ead5..b145cac7f 100644 --- a/src/checkout/model_checkout_balance_check_response.go +++ b/src/checkout/model_checkout_balance_check_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutBalanceCheckResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_cancel_order_request.go b/src/checkout/model_checkout_cancel_order_request.go index 5e6d4b05c..ea7fb0ecc 100644 --- a/src/checkout/model_checkout_cancel_order_request.go +++ b/src/checkout/model_checkout_cancel_order_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutCancelOrderRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_cancel_order_response.go b/src/checkout/model_checkout_cancel_order_response.go index abb4b98bb..20cd303d0 100644 --- a/src/checkout/model_checkout_cancel_order_response.go +++ b/src/checkout/model_checkout_cancel_order_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutCancelOrderResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_create_order_request.go b/src/checkout/model_checkout_create_order_request.go index 7744439c8..db48cf5b6 100644 --- a/src/checkout/model_checkout_create_order_request.go +++ b/src/checkout/model_checkout_create_order_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutCreateOrderRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_create_order_response.go b/src/checkout/model_checkout_create_order_response.go index a27ee7eaa..ee6e72959 100644 --- a/src/checkout/model_checkout_create_order_response.go +++ b/src/checkout/model_checkout_create_order_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutCreateOrderResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_delegated_authentication_action.go b/src/checkout/model_checkout_delegated_authentication_action.go index 26202281c..5e3ba3126 100644 --- a/src/checkout/model_checkout_delegated_authentication_action.go +++ b/src/checkout/model_checkout_delegated_authentication_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutDelegatedAuthenticationAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_native_redirect_action.go b/src/checkout/model_checkout_native_redirect_action.go index a09ae47b2..abd9218c3 100644 --- a/src/checkout/model_checkout_native_redirect_action.go +++ b/src/checkout/model_checkout_native_redirect_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutNativeRedirectAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_order_response.go b/src/checkout/model_checkout_order_response.go index 818f43301..c5e09daae 100644 --- a/src/checkout/model_checkout_order_response.go +++ b/src/checkout/model_checkout_order_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutOrderResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_qr_code_action.go b/src/checkout/model_checkout_qr_code_action.go index d95e1fbee..ea118a891 100644 --- a/src/checkout/model_checkout_qr_code_action.go +++ b/src/checkout/model_checkout_qr_code_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutQrCodeAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_redirect_action.go b/src/checkout/model_checkout_redirect_action.go index e9386228b..01354c0ba 100644 --- a/src/checkout/model_checkout_redirect_action.go +++ b/src/checkout/model_checkout_redirect_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutRedirectAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_sdk_action.go b/src/checkout/model_checkout_sdk_action.go index b86c0ce12..b59bec072 100644 --- a/src/checkout/model_checkout_sdk_action.go +++ b/src/checkout/model_checkout_sdk_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutSDKAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_session_installment_option.go b/src/checkout/model_checkout_session_installment_option.go index 1b9ddccc9..0001ebc48 100644 --- a/src/checkout/model_checkout_session_installment_option.go +++ b/src/checkout/model_checkout_session_installment_option.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutSessionInstallmentOption type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_three_ds2_action.go b/src/checkout/model_checkout_three_ds2_action.go index 2440b2c61..4230942f5 100644 --- a/src/checkout/model_checkout_three_ds2_action.go +++ b/src/checkout/model_checkout_three_ds2_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutThreeDS2Action type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_utility_request.go b/src/checkout/model_checkout_utility_request.go index 761e3171e..4dbe5865d 100644 --- a/src/checkout/model_checkout_utility_request.go +++ b/src/checkout/model_checkout_utility_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutUtilityRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_utility_response.go b/src/checkout/model_checkout_utility_response.go index 561bfeece..c65d5db8e 100644 --- a/src/checkout/model_checkout_utility_response.go +++ b/src/checkout/model_checkout_utility_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutUtilityResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_checkout_voucher_action.go b/src/checkout/model_checkout_voucher_action.go index 42f41bf4c..8c27d140c 100644 --- a/src/checkout/model_checkout_voucher_action.go +++ b/src/checkout/model_checkout_voucher_action.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CheckoutVoucherAction type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_common_field.go b/src/checkout/model_common_field.go index f28587ad5..4beee919f 100644 --- a/src/checkout/model_common_field.go +++ b/src/checkout/model_common_field.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CommonField type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_company.go b/src/checkout/model_company.go index 82a51ea3e..6ac17d0a1 100644 --- a/src/checkout/model_company.go +++ b/src/checkout/model_company.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Company type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_configuration.go b/src/checkout/model_configuration.go index b550a5f08..f530ddff3 100644 --- a/src/checkout/model_configuration.go +++ b/src/checkout/model_configuration.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Configuration type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_apple_pay_session_request.go b/src/checkout/model_create_apple_pay_session_request.go index a086444db..af2b85dc9 100644 --- a/src/checkout/model_create_apple_pay_session_request.go +++ b/src/checkout/model_create_apple_pay_session_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateApplePaySessionRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_checkout_session_request.go b/src/checkout/model_create_checkout_session_request.go index 282f80bb2..a76f1fbad 100644 --- a/src/checkout/model_create_checkout_session_request.go +++ b/src/checkout/model_create_checkout_session_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCheckoutSessionRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_checkout_session_response.go b/src/checkout/model_create_checkout_session_response.go index 9912d678e..304aaa8fb 100644 --- a/src/checkout/model_create_checkout_session_response.go +++ b/src/checkout/model_create_checkout_session_response.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCheckoutSessionResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_order_request.go b/src/checkout/model_create_order_request.go index e3656cd4f..50e648755 100644 --- a/src/checkout/model_create_order_request.go +++ b/src/checkout/model_create_order_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateOrderRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_order_response.go b/src/checkout/model_create_order_response.go index 1d34cd070..66829efed 100644 --- a/src/checkout/model_create_order_response.go +++ b/src/checkout/model_create_order_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateOrderResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_payment_amount_update_request.go b/src/checkout/model_create_payment_amount_update_request.go index c7befc20f..31c3eea05 100644 --- a/src/checkout/model_create_payment_amount_update_request.go +++ b/src/checkout/model_create_payment_amount_update_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePaymentAmountUpdateRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_payment_cancel_request.go b/src/checkout/model_create_payment_cancel_request.go index 48ce1ca9b..62d0d2e29 100644 --- a/src/checkout/model_create_payment_cancel_request.go +++ b/src/checkout/model_create_payment_cancel_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePaymentCancelRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_payment_capture_request.go b/src/checkout/model_create_payment_capture_request.go index 8bac4ec56..be76c5768 100644 --- a/src/checkout/model_create_payment_capture_request.go +++ b/src/checkout/model_create_payment_capture_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePaymentCaptureRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_payment_link_request.go b/src/checkout/model_create_payment_link_request.go index 61e19230e..cb090b7b1 100644 --- a/src/checkout/model_create_payment_link_request.go +++ b/src/checkout/model_create_payment_link_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePaymentLinkRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_payment_refund_request.go b/src/checkout/model_create_payment_refund_request.go index 33f35cc12..62b064d8d 100644 --- a/src/checkout/model_create_payment_refund_request.go +++ b/src/checkout/model_create_payment_refund_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePaymentRefundRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_payment_reversal_request.go b/src/checkout/model_create_payment_reversal_request.go index d01fef6ce..23979b927 100644 --- a/src/checkout/model_create_payment_reversal_request.go +++ b/src/checkout/model_create_payment_reversal_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePaymentReversalRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_create_standalone_payment_cancel_request.go b/src/checkout/model_create_standalone_payment_cancel_request.go index ec3f229ff..ab83b78cc 100644 --- a/src/checkout/model_create_standalone_payment_cancel_request.go +++ b/src/checkout/model_create_standalone_payment_cancel_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateStandalonePaymentCancelRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_details_request.go b/src/checkout/model_details_request.go index e14bcb875..01bb477bd 100644 --- a/src/checkout/model_details_request.go +++ b/src/checkout/model_details_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DetailsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_details_request_authentication_data.go b/src/checkout/model_details_request_authentication_data.go index ad2d07488..34558b2e0 100644 --- a/src/checkout/model_details_request_authentication_data.go +++ b/src/checkout/model_details_request_authentication_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DetailsRequestAuthenticationData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_device_render_options.go b/src/checkout/model_device_render_options.go index b3837c5ce..a1cd9fced 100644 --- a/src/checkout/model_device_render_options.go +++ b/src/checkout/model_device_render_options.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DeviceRenderOptions type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_doku_details.go b/src/checkout/model_doku_details.go index 21a7a8504..022b590c4 100644 --- a/src/checkout/model_doku_details.go +++ b/src/checkout/model_doku_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DokuDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_donation_payment_request.go b/src/checkout/model_donation_payment_request.go index 036a8e4e0..9899abb1f 100644 --- a/src/checkout/model_donation_payment_request.go +++ b/src/checkout/model_donation_payment_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DonationPaymentRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_donation_payment_response.go b/src/checkout/model_donation_payment_response.go index f29f32a06..d8db82794 100644 --- a/src/checkout/model_donation_payment_response.go +++ b/src/checkout/model_donation_payment_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DonationPaymentResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_donation_response.go b/src/checkout/model_donation_response.go index 148d8ccff..9fa8f6a4e 100644 --- a/src/checkout/model_donation_response.go +++ b/src/checkout/model_donation_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DonationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_dotpay_details.go b/src/checkout/model_dotpay_details.go index 500ff5180..d3d9d8794 100644 --- a/src/checkout/model_dotpay_details.go +++ b/src/checkout/model_dotpay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DotpayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_dragonpay_details.go b/src/checkout/model_dragonpay_details.go index 922575310..f36ce0f1c 100644 --- a/src/checkout/model_dragonpay_details.go +++ b/src/checkout/model_dragonpay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DragonpayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_econtext_voucher_details.go b/src/checkout/model_econtext_voucher_details.go index 7df576f24..a4e4c8bde 100644 --- a/src/checkout/model_econtext_voucher_details.go +++ b/src/checkout/model_econtext_voucher_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the EcontextVoucherDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_encrypted_order_data.go b/src/checkout/model_encrypted_order_data.go index 797bd39db..7f8365e7d 100644 --- a/src/checkout/model_encrypted_order_data.go +++ b/src/checkout/model_encrypted_order_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the EncryptedOrderData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_external_platform.go b/src/checkout/model_external_platform.go index dc686cc9d..69d3f9f12 100644 --- a/src/checkout/model_external_platform.go +++ b/src/checkout/model_external_platform.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ExternalPlatform type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_forex_quote.go b/src/checkout/model_forex_quote.go index 928e7067a..86efca81b 100644 --- a/src/checkout/model_forex_quote.go +++ b/src/checkout/model_forex_quote.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ForexQuote type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_fraud_check_result.go b/src/checkout/model_fraud_check_result.go index 870f2dba3..c30a49676 100644 --- a/src/checkout/model_fraud_check_result.go +++ b/src/checkout/model_fraud_check_result.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudCheckResult type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_fraud_result.go b/src/checkout/model_fraud_result.go index 42b267bd5..5b7fb8b8e 100644 --- a/src/checkout/model_fraud_result.go +++ b/src/checkout/model_fraud_result.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudResult type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_fund_origin.go b/src/checkout/model_fund_origin.go index 8189dea7f..1ca6098af 100644 --- a/src/checkout/model_fund_origin.go +++ b/src/checkout/model_fund_origin.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FundOrigin type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_fund_recipient.go b/src/checkout/model_fund_recipient.go index 585c4c7e3..7ef62fd0c 100644 --- a/src/checkout/model_fund_recipient.go +++ b/src/checkout/model_fund_recipient.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FundRecipient type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_generic_issuer_payment_method_details.go b/src/checkout/model_generic_issuer_payment_method_details.go index 399287627..543cece84 100644 --- a/src/checkout/model_generic_issuer_payment_method_details.go +++ b/src/checkout/model_generic_issuer_payment_method_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GenericIssuerPaymentMethodDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_giropay_details.go b/src/checkout/model_giropay_details.go index 5703634f5..44c7fc96b 100644 --- a/src/checkout/model_giropay_details.go +++ b/src/checkout/model_giropay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GiropayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_google_pay_details.go b/src/checkout/model_google_pay_details.go index ec869d4cf..0a7e43e80 100644 --- a/src/checkout/model_google_pay_details.go +++ b/src/checkout/model_google_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GooglePayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_ideal_details.go b/src/checkout/model_ideal_details.go index 06a12aa90..3ef0356ff 100644 --- a/src/checkout/model_ideal_details.go +++ b/src/checkout/model_ideal_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IdealDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_input_detail.go b/src/checkout/model_input_detail.go index eff60e755..be0c0763a 100644 --- a/src/checkout/model_input_detail.go +++ b/src/checkout/model_input_detail.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InputDetail type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_installment_option.go b/src/checkout/model_installment_option.go index 6318cf790..3d145071d 100644 --- a/src/checkout/model_installment_option.go +++ b/src/checkout/model_installment_option.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InstallmentOption type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_installments.go b/src/checkout/model_installments.go index 350cf12cd..77c16860d 100644 --- a/src/checkout/model_installments.go +++ b/src/checkout/model_installments.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Installments type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_installments_number.go b/src/checkout/model_installments_number.go index 56271f80c..eb22b09a9 100644 --- a/src/checkout/model_installments_number.go +++ b/src/checkout/model_installments_number.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InstallmentsNumber type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_item.go b/src/checkout/model_item.go index 9d2c741be..384b7a5d8 100644 --- a/src/checkout/model_item.go +++ b/src/checkout/model_item.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Item type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_klarna_details.go b/src/checkout/model_klarna_details.go index 82f0c4623..812a846b2 100644 --- a/src/checkout/model_klarna_details.go +++ b/src/checkout/model_klarna_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the KlarnaDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_line_item.go b/src/checkout/model_line_item.go index 1d789cdb4..01fe7e087 100644 --- a/src/checkout/model_line_item.go +++ b/src/checkout/model_line_item.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LineItem type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_list_stored_payment_methods_response.go b/src/checkout/model_list_stored_payment_methods_response.go index 963c16aff..53803d7c1 100644 --- a/src/checkout/model_list_stored_payment_methods_response.go +++ b/src/checkout/model_list_stored_payment_methods_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListStoredPaymentMethodsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_mandate.go b/src/checkout/model_mandate.go index a6e9f80dd..c49d6b509 100644 --- a/src/checkout/model_mandate.go +++ b/src/checkout/model_mandate.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Mandate type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_masterpass_details.go b/src/checkout/model_masterpass_details.go index abe8d89e0..9ca5c0aca 100644 --- a/src/checkout/model_masterpass_details.go +++ b/src/checkout/model_masterpass_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MasterpassDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_mbway_details.go b/src/checkout/model_mbway_details.go index 491247fb7..a302b647d 100644 --- a/src/checkout/model_mbway_details.go +++ b/src/checkout/model_mbway_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MbwayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_merchant_device.go b/src/checkout/model_merchant_device.go index 9ad8c7e25..f05d27f0d 100644 --- a/src/checkout/model_merchant_device.go +++ b/src/checkout/model_merchant_device.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantDevice type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_merchant_risk_indicator.go b/src/checkout/model_merchant_risk_indicator.go index 2e637a2be..3bafc3232 100644 --- a/src/checkout/model_merchant_risk_indicator.go +++ b/src/checkout/model_merchant_risk_indicator.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantRiskIndicator type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_mobile_pay_details.go b/src/checkout/model_mobile_pay_details.go index a69ac422a..823a3cbe1 100644 --- a/src/checkout/model_mobile_pay_details.go +++ b/src/checkout/model_mobile_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MobilePayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_mol_pay_details.go b/src/checkout/model_mol_pay_details.go index 9af73595f..74c6df331 100644 --- a/src/checkout/model_mol_pay_details.go +++ b/src/checkout/model_mol_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MolPayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_name.go b/src/checkout/model_name.go index 1b1a34de8..b83ef11e0 100644 --- a/src/checkout/model_name.go +++ b/src/checkout/model_name.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_open_invoice_details.go b/src/checkout/model_open_invoice_details.go index 74fcf71ca..8a80ce7a5 100644 --- a/src/checkout/model_open_invoice_details.go +++ b/src/checkout/model_open_invoice_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OpenInvoiceDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_pay_pal_details.go b/src/checkout/model_pay_pal_details.go index 79debca03..b430bfc3e 100644 --- a/src/checkout/model_pay_pal_details.go +++ b/src/checkout/model_pay_pal_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayPalDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_pay_u_upi_details.go b/src/checkout/model_pay_u_upi_details.go index 4a03be137..57cf69351 100644 --- a/src/checkout/model_pay_u_upi_details.go +++ b/src/checkout/model_pay_u_upi_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayUUpiDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_pay_with_google_details.go b/src/checkout/model_pay_with_google_details.go index 8d8b7d6a3..31e83b992 100644 --- a/src/checkout/model_pay_with_google_details.go +++ b/src/checkout/model_pay_with_google_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayWithGoogleDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_amount_update_request.go b/src/checkout/model_payment_amount_update_request.go index 872f57559..2061b4d11 100644 --- a/src/checkout/model_payment_amount_update_request.go +++ b/src/checkout/model_payment_amount_update_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentAmountUpdateRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_amount_update_resource.go b/src/checkout/model_payment_amount_update_resource.go index a50501779..9983f9682 100644 --- a/src/checkout/model_payment_amount_update_resource.go +++ b/src/checkout/model_payment_amount_update_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentAmountUpdateResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_amount_update_response.go b/src/checkout/model_payment_amount_update_response.go index d23b5b3ef..03ddc2600 100644 --- a/src/checkout/model_payment_amount_update_response.go +++ b/src/checkout/model_payment_amount_update_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentAmountUpdateResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_cancel_request.go b/src/checkout/model_payment_cancel_request.go index d3b755aad..e466d50f3 100644 --- a/src/checkout/model_payment_cancel_request.go +++ b/src/checkout/model_payment_cancel_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCancelRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_cancel_resource.go b/src/checkout/model_payment_cancel_resource.go index e57c8598f..cf4bd9a18 100644 --- a/src/checkout/model_payment_cancel_resource.go +++ b/src/checkout/model_payment_cancel_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCancelResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_cancel_response.go b/src/checkout/model_payment_cancel_response.go index ef0c4d621..b67e08f2c 100644 --- a/src/checkout/model_payment_cancel_response.go +++ b/src/checkout/model_payment_cancel_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCancelResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_capture_request.go b/src/checkout/model_payment_capture_request.go index 0baadc3cb..8fb270a06 100644 --- a/src/checkout/model_payment_capture_request.go +++ b/src/checkout/model_payment_capture_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCaptureRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_capture_resource.go b/src/checkout/model_payment_capture_resource.go index 91f3a88d5..4259343d5 100644 --- a/src/checkout/model_payment_capture_resource.go +++ b/src/checkout/model_payment_capture_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCaptureResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_capture_response.go b/src/checkout/model_payment_capture_response.go index 58f42fdae..19cb39c4f 100644 --- a/src/checkout/model_payment_capture_response.go +++ b/src/checkout/model_payment_capture_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCaptureResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_completion_details.go b/src/checkout/model_payment_completion_details.go index 8572ba719..3d85e18a7 100644 --- a/src/checkout/model_payment_completion_details.go +++ b/src/checkout/model_payment_completion_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentCompletionDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_details.go b/src/checkout/model_payment_details.go index 1509cb1fe..296da25b7 100644 --- a/src/checkout/model_payment_details.go +++ b/src/checkout/model_payment_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_details_request.go b/src/checkout/model_payment_details_request.go index ce7696f53..5611b4b8d 100644 --- a/src/checkout/model_payment_details_request.go +++ b/src/checkout/model_payment_details_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentDetailsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_details_response.go b/src/checkout/model_payment_details_response.go index b333d6719..b4ddd7b75 100644 --- a/src/checkout/model_payment_details_response.go +++ b/src/checkout/model_payment_details_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentDetailsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_donation_request.go b/src/checkout/model_payment_donation_request.go index 4e2d5e9fb..a17e2ea20 100644 --- a/src/checkout/model_payment_donation_request.go +++ b/src/checkout/model_payment_donation_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentDonationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_link_request.go b/src/checkout/model_payment_link_request.go index 150fdfb2b..a8df68948 100644 --- a/src/checkout/model_payment_link_request.go +++ b/src/checkout/model_payment_link_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentLinkRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_link_response.go b/src/checkout/model_payment_link_response.go index 701d56cc7..4881565a1 100644 --- a/src/checkout/model_payment_link_response.go +++ b/src/checkout/model_payment_link_response.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentLinkResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_method.go b/src/checkout/model_payment_method.go index 5ec15175d..e4da2a998 100644 --- a/src/checkout/model_payment_method.go +++ b/src/checkout/model_payment_method.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethod type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_method_group.go b/src/checkout/model_payment_method_group.go index 08b3c6468..d63032468 100644 --- a/src/checkout/model_payment_method_group.go +++ b/src/checkout/model_payment_method_group.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodGroup type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_method_issuer.go b/src/checkout/model_payment_method_issuer.go index 014462178..e698b0da3 100644 --- a/src/checkout/model_payment_method_issuer.go +++ b/src/checkout/model_payment_method_issuer.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodIssuer type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_methods_request.go b/src/checkout/model_payment_methods_request.go index 2259128b1..13fefd243 100644 --- a/src/checkout/model_payment_methods_request.go +++ b/src/checkout/model_payment_methods_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_methods_response.go b/src/checkout/model_payment_methods_response.go index 18e332a44..60346fd0a 100644 --- a/src/checkout/model_payment_methods_response.go +++ b/src/checkout/model_payment_methods_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_refund_request.go b/src/checkout/model_payment_refund_request.go index 0ac20ed0d..630288cbb 100644 --- a/src/checkout/model_payment_refund_request.go +++ b/src/checkout/model_payment_refund_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRefundRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_refund_resource.go b/src/checkout/model_payment_refund_resource.go index 48b5b5377..5142f32f4 100644 --- a/src/checkout/model_payment_refund_resource.go +++ b/src/checkout/model_payment_refund_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRefundResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_refund_response.go b/src/checkout/model_payment_refund_response.go index 4780cb386..ab108eade 100644 --- a/src/checkout/model_payment_refund_response.go +++ b/src/checkout/model_payment_refund_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRefundResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_request.go b/src/checkout/model_payment_request.go index 31ca4b8f6..eeccf097a 100644 --- a/src/checkout/model_payment_request.go +++ b/src/checkout/model_payment_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_response.go b/src/checkout/model_payment_response.go index 4b2daf2d6..5931f90a1 100644 --- a/src/checkout/model_payment_response.go +++ b/src/checkout/model_payment_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_reversal_request.go b/src/checkout/model_payment_reversal_request.go index e4dc37ed8..9ed640e54 100644 --- a/src/checkout/model_payment_reversal_request.go +++ b/src/checkout/model_payment_reversal_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentReversalRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_reversal_resource.go b/src/checkout/model_payment_reversal_resource.go index 8c9616ef1..1021d1239 100644 --- a/src/checkout/model_payment_reversal_resource.go +++ b/src/checkout/model_payment_reversal_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentReversalResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_reversal_response.go b/src/checkout/model_payment_reversal_response.go index 0fdba851b..16f33f6aa 100644 --- a/src/checkout/model_payment_reversal_response.go +++ b/src/checkout/model_payment_reversal_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentReversalResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_setup_request.go b/src/checkout/model_payment_setup_request.go index bad324c51..d179f1b69 100644 --- a/src/checkout/model_payment_setup_request.go +++ b/src/checkout/model_payment_setup_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentSetupRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_setup_response.go b/src/checkout/model_payment_setup_response.go index f3183fc41..c2bbd2297 100644 --- a/src/checkout/model_payment_setup_response.go +++ b/src/checkout/model_payment_setup_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentSetupResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_verification_request.go b/src/checkout/model_payment_verification_request.go index 631f24e7d..b9e55e429 100644 --- a/src/checkout/model_payment_verification_request.go +++ b/src/checkout/model_payment_verification_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentVerificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_payment_verification_response.go b/src/checkout/model_payment_verification_response.go index 348ea2f74..18a6a1c2a 100644 --- a/src/checkout/model_payment_verification_response.go +++ b/src/checkout/model_payment_verification_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentVerificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_phone.go b/src/checkout/model_phone.go index 490406f6e..506298265 100644 --- a/src/checkout/model_phone.go +++ b/src/checkout/model_phone.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Phone type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_platform_chargeback_logic.go b/src/checkout/model_platform_chargeback_logic.go index 204ad64da..018218fc9 100644 --- a/src/checkout/model_platform_chargeback_logic.go +++ b/src/checkout/model_platform_chargeback_logic.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PlatformChargebackLogic type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_ratepay_details.go b/src/checkout/model_ratepay_details.go index 39c074bd7..7ea48485b 100644 --- a/src/checkout/model_ratepay_details.go +++ b/src/checkout/model_ratepay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RatepayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_recurring.go b/src/checkout/model_recurring.go index 45c55334f..ac3c31d9f 100644 --- a/src/checkout/model_recurring.go +++ b/src/checkout/model_recurring.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Recurring type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_recurring_detail.go b/src/checkout/model_recurring_detail.go index b4b17ecd8..68cce8c0e 100644 --- a/src/checkout/model_recurring_detail.go +++ b/src/checkout/model_recurring_detail.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RecurringDetail type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data3_d_secure.go b/src/checkout/model_response_additional_data3_d_secure.go index 0d410425f..a080bfb70 100644 --- a/src/checkout/model_response_additional_data3_d_secure.go +++ b/src/checkout/model_response_additional_data3_d_secure.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalData3DSecure type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_billing_address.go b/src/checkout/model_response_additional_data_billing_address.go index 6a47224a7..8eb734b8a 100644 --- a/src/checkout/model_response_additional_data_billing_address.go +++ b/src/checkout/model_response_additional_data_billing_address.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataBillingAddress type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_card.go b/src/checkout/model_response_additional_data_card.go index 46d96bb86..08dd30926 100644 --- a/src/checkout/model_response_additional_data_card.go +++ b/src/checkout/model_response_additional_data_card.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataCard type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_common.go b/src/checkout/model_response_additional_data_common.go index 0183fa216..056b1d287 100644 --- a/src/checkout/model_response_additional_data_common.go +++ b/src/checkout/model_response_additional_data_common.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataCommon type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_installments.go b/src/checkout/model_response_additional_data_installments.go index a24ae9941..0df330641 100644 --- a/src/checkout/model_response_additional_data_installments.go +++ b/src/checkout/model_response_additional_data_installments.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataInstallments type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_network_tokens.go b/src/checkout/model_response_additional_data_network_tokens.go index 75626f751..c3ecac83f 100644 --- a/src/checkout/model_response_additional_data_network_tokens.go +++ b/src/checkout/model_response_additional_data_network_tokens.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataNetworkTokens type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_opi.go b/src/checkout/model_response_additional_data_opi.go index 2d40e9307..a508fb410 100644 --- a/src/checkout/model_response_additional_data_opi.go +++ b/src/checkout/model_response_additional_data_opi.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataOpi type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_additional_data_sepa.go b/src/checkout/model_response_additional_data_sepa.go index 55d2b32de..ddf97cdc2 100644 --- a/src/checkout/model_response_additional_data_sepa.go +++ b/src/checkout/model_response_additional_data_sepa.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataSepa type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_response_payment_method.go b/src/checkout/model_response_payment_method.go index cd802c4cb..940d023c5 100644 --- a/src/checkout/model_response_payment_method.go +++ b/src/checkout/model_response_payment_method.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponsePaymentMethod type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_risk_data.go b/src/checkout/model_risk_data.go index b76589823..faa9b8cdd 100644 --- a/src/checkout/model_risk_data.go +++ b/src/checkout/model_risk_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RiskData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_samsung_pay_details.go b/src/checkout/model_samsung_pay_details.go index edb961659..61056f9ac 100644 --- a/src/checkout/model_samsung_pay_details.go +++ b/src/checkout/model_samsung_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SamsungPayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_sdk_ephem_pub_key.go b/src/checkout/model_sdk_ephem_pub_key.go index 6f2f56adc..9392ec140 100644 --- a/src/checkout/model_sdk_ephem_pub_key.go +++ b/src/checkout/model_sdk_ephem_pub_key.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SDKEphemPubKey type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_sepa_direct_debit_details.go b/src/checkout/model_sepa_direct_debit_details.go index 5d95b64f3..c05935083 100644 --- a/src/checkout/model_sepa_direct_debit_details.go +++ b/src/checkout/model_sepa_direct_debit_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SepaDirectDebitDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_service_error.go b/src/checkout/model_service_error.go index 2628af97a..eaa0fd3e9 100644 --- a/src/checkout/model_service_error.go +++ b/src/checkout/model_service_error.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_service_error_2.go b/src/checkout/model_service_error_2.go index 5a12cb414..faceec59e 100644 --- a/src/checkout/model_service_error_2.go +++ b/src/checkout/model_service_error_2.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError2 type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_session_result_response.go b/src/checkout/model_session_result_response.go index 99ca87469..1ac243fca 100644 --- a/src/checkout/model_session_result_response.go +++ b/src/checkout/model_session_result_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SessionResultResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_shopper_input.go b/src/checkout/model_shopper_input.go index e80a1ce8b..802ba47c2 100644 --- a/src/checkout/model_shopper_input.go +++ b/src/checkout/model_shopper_input.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ShopperInput type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_shopper_interaction_device.go b/src/checkout/model_shopper_interaction_device.go index bcd10f72a..b9cb33650 100644 --- a/src/checkout/model_shopper_interaction_device.go +++ b/src/checkout/model_shopper_interaction_device.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ShopperInteractionDevice type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_split.go b/src/checkout/model_split.go index 7e29feb1c..32e4f589f 100644 --- a/src/checkout/model_split.go +++ b/src/checkout/model_split.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Split type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_split_amount.go b/src/checkout/model_split_amount.go index a88ed9f29..0a8d4f14f 100644 --- a/src/checkout/model_split_amount.go +++ b/src/checkout/model_split_amount.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SplitAmount type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_standalone_payment_cancel_request.go b/src/checkout/model_standalone_payment_cancel_request.go index d981bffdd..fd7137ecc 100644 --- a/src/checkout/model_standalone_payment_cancel_request.go +++ b/src/checkout/model_standalone_payment_cancel_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StandalonePaymentCancelRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_standalone_payment_cancel_resource.go b/src/checkout/model_standalone_payment_cancel_resource.go index 2602a94bd..ac0efafbc 100644 --- a/src/checkout/model_standalone_payment_cancel_resource.go +++ b/src/checkout/model_standalone_payment_cancel_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StandalonePaymentCancelResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_standalone_payment_cancel_response.go b/src/checkout/model_standalone_payment_cancel_response.go index 5216b232a..c6e3a9950 100644 --- a/src/checkout/model_standalone_payment_cancel_response.go +++ b/src/checkout/model_standalone_payment_cancel_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StandalonePaymentCancelResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_stored_details.go b/src/checkout/model_stored_details.go index 51ec86446..9c62555b6 100644 --- a/src/checkout/model_stored_details.go +++ b/src/checkout/model_stored_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_stored_payment_method.go b/src/checkout/model_stored_payment_method.go index e902d36af..1ea08e3d4 100644 --- a/src/checkout/model_stored_payment_method.go +++ b/src/checkout/model_stored_payment_method.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredPaymentMethod type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_stored_payment_method_details.go b/src/checkout/model_stored_payment_method_details.go index 5b70e5053..911f8d674 100644 --- a/src/checkout/model_stored_payment_method_details.go +++ b/src/checkout/model_stored_payment_method_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredPaymentMethodDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_stored_payment_method_resource.go b/src/checkout/model_stored_payment_method_resource.go index 7e9f2707a..19c53c52b 100644 --- a/src/checkout/model_stored_payment_method_resource.go +++ b/src/checkout/model_stored_payment_method_resource.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredPaymentMethodResource type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_sub_input_detail.go b/src/checkout/model_sub_input_detail.go index f5c35164a..cd004b1ca 100644 --- a/src/checkout/model_sub_input_detail.go +++ b/src/checkout/model_sub_input_detail.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubInputDetail type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_sub_merchant.go b/src/checkout/model_sub_merchant.go index 00c96cdcf..22509c947 100644 --- a/src/checkout/model_sub_merchant.go +++ b/src/checkout/model_sub_merchant.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubMerchant type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_sub_merchant_2.go b/src/checkout/model_sub_merchant_2.go index d44c6526b..2f7194621 100644 --- a/src/checkout/model_sub_merchant_2.go +++ b/src/checkout/model_sub_merchant_2.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubMerchant2 type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_sub_merchant_info.go b/src/checkout/model_sub_merchant_info.go index c08c3c46b..3ce6bf070 100644 --- a/src/checkout/model_sub_merchant_info.go +++ b/src/checkout/model_sub_merchant_info.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubMerchantInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_d_secure_data.go b/src/checkout/model_three_d_secure_data.go index 817083a0e..ead4a721a 100644 --- a/src/checkout/model_three_d_secure_data.go +++ b/src/checkout/model_three_d_secure_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSecureData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds2_request_data.go b/src/checkout/model_three_ds2_request_data.go index dec46ff98..cf99196ea 100644 --- a/src/checkout/model_three_ds2_request_data.go +++ b/src/checkout/model_three_ds2_request_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2RequestData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds2_request_data_2.go b/src/checkout/model_three_ds2_request_data_2.go index 40406d794..7f355eefb 100644 --- a/src/checkout/model_three_ds2_request_data_2.go +++ b/src/checkout/model_three_ds2_request_data_2.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2RequestData2 type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds2_response_data.go b/src/checkout/model_three_ds2_response_data.go index 4762196ad..604e87652 100644 --- a/src/checkout/model_three_ds2_response_data.go +++ b/src/checkout/model_three_ds2_response_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2ResponseData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds2_result.go b/src/checkout/model_three_ds2_result.go index 44a3c84aa..84ab7677d 100644 --- a/src/checkout/model_three_ds2_result.go +++ b/src/checkout/model_three_ds2_result.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2Result type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds_request_data.go b/src/checkout/model_three_ds_request_data.go index f4c66e239..c1029b255 100644 --- a/src/checkout/model_three_ds_request_data.go +++ b/src/checkout/model_three_ds_request_data.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSRequestData type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds_requestor_authentication_info.go b/src/checkout/model_three_ds_requestor_authentication_info.go index d4c3e3fd5..f6ee990f8 100644 --- a/src/checkout/model_three_ds_requestor_authentication_info.go +++ b/src/checkout/model_three_ds_requestor_authentication_info.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSRequestorAuthenticationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_three_ds_requestor_prior_authentication_info.go b/src/checkout/model_three_ds_requestor_prior_authentication_info.go index c9edb9dd3..38cbaf762 100644 --- a/src/checkout/model_three_ds_requestor_prior_authentication_info.go +++ b/src/checkout/model_three_ds_requestor_prior_authentication_info.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSRequestorPriorAuthenticationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_update_payment_link_request.go b/src/checkout/model_update_payment_link_request.go index daec784d1..ef71ea5aa 100644 --- a/src/checkout/model_update_payment_link_request.go +++ b/src/checkout/model_update_payment_link_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdatePaymentLinkRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_upi_collect_details.go b/src/checkout/model_upi_collect_details.go index 31d85d2dc..df25f79fe 100644 --- a/src/checkout/model_upi_collect_details.go +++ b/src/checkout/model_upi_collect_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpiCollectDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_upi_intent_details.go b/src/checkout/model_upi_intent_details.go index 60b1971c6..67a0a20b3 100644 --- a/src/checkout/model_upi_intent_details.go +++ b/src/checkout/model_upi_intent_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpiIntentDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_utility_request.go b/src/checkout/model_utility_request.go index 2e0679217..743d2dac1 100644 --- a/src/checkout/model_utility_request.go +++ b/src/checkout/model_utility_request.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UtilityRequest type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_utility_response.go b/src/checkout/model_utility_response.go index c20ae75fd..87bc9d52c 100644 --- a/src/checkout/model_utility_response.go +++ b/src/checkout/model_utility_response.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UtilityResponse type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_vipps_details.go b/src/checkout/model_vipps_details.go index dc563c57d..ad63a7f61 100644 --- a/src/checkout/model_vipps_details.go +++ b/src/checkout/model_vipps_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VippsDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_visa_checkout_details.go b/src/checkout/model_visa_checkout_details.go index fb20537e6..e2472df8e 100644 --- a/src/checkout/model_visa_checkout_details.go +++ b/src/checkout/model_visa_checkout_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VisaCheckoutDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_we_chat_pay_details.go b/src/checkout/model_we_chat_pay_details.go index 3aa151c1f..954d7290d 100644 --- a/src/checkout/model_we_chat_pay_details.go +++ b/src/checkout/model_we_chat_pay_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the WeChatPayDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_we_chat_pay_mini_program_details.go b/src/checkout/model_we_chat_pay_mini_program_details.go index 7962ee246..db7d89e9c 100644 --- a/src/checkout/model_we_chat_pay_mini_program_details.go +++ b/src/checkout/model_we_chat_pay_mini_program_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the WeChatPayMiniProgramDetails type satisfies the MappedNullable interface at compile time diff --git a/src/checkout/model_zip_details.go b/src/checkout/model_zip_details.go index 31f7c2328..3f54f87d9 100644 --- a/src/checkout/model_zip_details.go +++ b/src/checkout/model_zip_details.go @@ -11,7 +11,7 @@ package checkout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ZipDetails type satisfies the MappedNullable interface at compile time diff --git a/src/common/configuration.go b/src/common/configuration.go index d3fac2305..98a776312 100644 --- a/src/common/configuration.go +++ b/src/common/configuration.go @@ -51,7 +51,7 @@ const ( const ( LibName = "adyen-go-api-library" - LibVersion = "7.3.1" + LibVersion = "8.0.0-beta" ) // Config stores the configuration of the API client diff --git a/src/configurationwebhook/model_account_holder.go b/src/configurationwebhook/model_account_holder.go index a19718012..a522919db 100644 --- a/src/configurationwebhook/model_account_holder.go +++ b/src/configurationwebhook/model_account_holder.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolder type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_account_holder_capability.go b/src/configurationwebhook/model_account_holder_capability.go index a8f6cfbeb..34f36ef24 100644 --- a/src/configurationwebhook/model_account_holder_capability.go +++ b/src/configurationwebhook/model_account_holder_capability.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolderCapability type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_account_holder_notification_data.go b/src/configurationwebhook/model_account_holder_notification_data.go index de9ddf597..fae623b03 100644 --- a/src/configurationwebhook/model_account_holder_notification_data.go +++ b/src/configurationwebhook/model_account_holder_notification_data.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolderNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_account_holder_notification_request.go b/src/configurationwebhook/model_account_holder_notification_request.go index d2624cd91..7ed1b2479 100644 --- a/src/configurationwebhook/model_account_holder_notification_request.go +++ b/src/configurationwebhook/model_account_holder_notification_request.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountHolderNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_account_supporting_entity_capability.go b/src/configurationwebhook/model_account_supporting_entity_capability.go index c54bc724c..2bc938b4b 100644 --- a/src/configurationwebhook/model_account_supporting_entity_capability.go +++ b/src/configurationwebhook/model_account_supporting_entity_capability.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountSupportingEntityCapability type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_address.go b/src/configurationwebhook/model_address.go index f74d59ca6..36842d822 100644 --- a/src/configurationwebhook/model_address.go +++ b/src/configurationwebhook/model_address.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_amount.go b/src/configurationwebhook/model_amount.go index b24eceb1f..9b69fcb3a 100644 --- a/src/configurationwebhook/model_amount.go +++ b/src/configurationwebhook/model_amount.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_authentication.go b/src/configurationwebhook/model_authentication.go index 75e4c411a..089f65c67 100644 --- a/src/configurationwebhook/model_authentication.go +++ b/src/configurationwebhook/model_authentication.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Authentication type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_balance.go b/src/configurationwebhook/model_balance.go index 0e3e2e338..359a63e98 100644 --- a/src/configurationwebhook/model_balance.go +++ b/src/configurationwebhook/model_balance.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Balance type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_balance_account.go b/src/configurationwebhook/model_balance_account.go index e2efee71b..1fdefcce4 100644 --- a/src/configurationwebhook/model_balance_account.go +++ b/src/configurationwebhook/model_balance_account.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccount type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_balance_account_notification_data.go b/src/configurationwebhook/model_balance_account_notification_data.go index 4b428f473..3d4b92e9b 100644 --- a/src/configurationwebhook/model_balance_account_notification_data.go +++ b/src/configurationwebhook/model_balance_account_notification_data.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccountNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_balance_account_notification_request.go b/src/configurationwebhook/model_balance_account_notification_request.go index b78fb7f34..6053b7802 100644 --- a/src/configurationwebhook/model_balance_account_notification_request.go +++ b/src/configurationwebhook/model_balance_account_notification_request.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceAccountNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_balance_platform_notification_response.go b/src/configurationwebhook/model_balance_platform_notification_response.go index 2204874e0..9abdee48f 100644 --- a/src/configurationwebhook/model_balance_platform_notification_response.go +++ b/src/configurationwebhook/model_balance_platform_notification_response.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalancePlatformNotificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_bulk_address.go b/src/configurationwebhook/model_bulk_address.go index bfa548282..cd0d6b7ee 100644 --- a/src/configurationwebhook/model_bulk_address.go +++ b/src/configurationwebhook/model_bulk_address.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BulkAddress type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_capability_problem.go b/src/configurationwebhook/model_capability_problem.go index b9f33e88d..8d97f8b62 100644 --- a/src/configurationwebhook/model_capability_problem.go +++ b/src/configurationwebhook/model_capability_problem.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblem type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_capability_problem_entity.go b/src/configurationwebhook/model_capability_problem_entity.go index 09c0ce286..57f3cc544 100644 --- a/src/configurationwebhook/model_capability_problem_entity.go +++ b/src/configurationwebhook/model_capability_problem_entity.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntity type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_capability_problem_entity_recursive.go b/src/configurationwebhook/model_capability_problem_entity_recursive.go index 40e27f34b..ea448a900 100644 --- a/src/configurationwebhook/model_capability_problem_entity_recursive.go +++ b/src/configurationwebhook/model_capability_problem_entity_recursive.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntityRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_capability_settings.go b/src/configurationwebhook/model_capability_settings.go index 9f7c0832f..51f3130a6 100644 --- a/src/configurationwebhook/model_capability_settings.go +++ b/src/configurationwebhook/model_capability_settings.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilitySettings type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_card.go b/src/configurationwebhook/model_card.go index 80c4edefb..2d06a9aec 100644 --- a/src/configurationwebhook/model_card.go +++ b/src/configurationwebhook/model_card.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_card_configuration.go b/src/configurationwebhook/model_card_configuration.go index ab502fc5b..24ec8ce42 100644 --- a/src/configurationwebhook/model_card_configuration.go +++ b/src/configurationwebhook/model_card_configuration.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_card_order_item.go b/src/configurationwebhook/model_card_order_item.go index 05b6ce731..648e458f6 100644 --- a/src/configurationwebhook/model_card_order_item.go +++ b/src/configurationwebhook/model_card_order_item.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardOrderItem type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_card_order_item_delivery_status.go b/src/configurationwebhook/model_card_order_item_delivery_status.go index 83d4c9a24..35121c7cb 100644 --- a/src/configurationwebhook/model_card_order_item_delivery_status.go +++ b/src/configurationwebhook/model_card_order_item_delivery_status.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardOrderItemDeliveryStatus type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_card_order_notification_request.go b/src/configurationwebhook/model_card_order_notification_request.go index a6aee53be..d83e50f37 100644 --- a/src/configurationwebhook/model_card_order_notification_request.go +++ b/src/configurationwebhook/model_card_order_notification_request.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardOrderNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_contact.go b/src/configurationwebhook/model_contact.go index bae35f68d..8754501bf 100644 --- a/src/configurationwebhook/model_contact.go +++ b/src/configurationwebhook/model_contact.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Contact type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_contact_details.go b/src/configurationwebhook/model_contact_details.go index 979ab68d7..4353248ab 100644 --- a/src/configurationwebhook/model_contact_details.go +++ b/src/configurationwebhook/model_contact_details.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ContactDetails type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_cron_sweep_schedule.go b/src/configurationwebhook/model_cron_sweep_schedule.go index 998be4ff0..bf6dff1f6 100644 --- a/src/configurationwebhook/model_cron_sweep_schedule.go +++ b/src/configurationwebhook/model_cron_sweep_schedule.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CronSweepSchedule type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_expiry.go b/src/configurationwebhook/model_expiry.go index 067e25476..549f0bfc0 100644 --- a/src/configurationwebhook/model_expiry.go +++ b/src/configurationwebhook/model_expiry.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Expiry type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_iban_account_identification.go b/src/configurationwebhook/model_iban_account_identification.go index 389849d0a..0181a87b0 100644 --- a/src/configurationwebhook/model_iban_account_identification.go +++ b/src/configurationwebhook/model_iban_account_identification.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IbanAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_name.go b/src/configurationwebhook/model_name.go index 24e740a81..6f1fe30f8 100644 --- a/src/configurationwebhook/model_name.go +++ b/src/configurationwebhook/model_name.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_payment_instrument.go b/src/configurationwebhook/model_payment_instrument.go index 62909fd20..ca69b8f9f 100644 --- a/src/configurationwebhook/model_payment_instrument.go +++ b/src/configurationwebhook/model_payment_instrument.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrument type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_payment_instrument_notification_data.go b/src/configurationwebhook/model_payment_instrument_notification_data.go index f52b2fb5d..8b63495af 100644 --- a/src/configurationwebhook/model_payment_instrument_notification_data.go +++ b/src/configurationwebhook/model_payment_instrument_notification_data.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_payment_instrument_reference.go b/src/configurationwebhook/model_payment_instrument_reference.go index 5886ffba0..6de9c3550 100644 --- a/src/configurationwebhook/model_payment_instrument_reference.go +++ b/src/configurationwebhook/model_payment_instrument_reference.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrumentReference type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_payment_notification_request.go b/src/configurationwebhook/model_payment_notification_request.go index fcc783343..682b2c0c0 100644 --- a/src/configurationwebhook/model_payment_notification_request.go +++ b/src/configurationwebhook/model_payment_notification_request.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_personal_data.go b/src/configurationwebhook/model_personal_data.go index 1ca3271c6..8c0432699 100644 --- a/src/configurationwebhook/model_personal_data.go +++ b/src/configurationwebhook/model_personal_data.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PersonalData type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_phone.go b/src/configurationwebhook/model_phone.go index 0d865e8d6..ffd78ad93 100644 --- a/src/configurationwebhook/model_phone.go +++ b/src/configurationwebhook/model_phone.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Phone type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_phone_number.go b/src/configurationwebhook/model_phone_number.go index c765e7834..bc883da25 100644 --- a/src/configurationwebhook/model_phone_number.go +++ b/src/configurationwebhook/model_phone_number.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PhoneNumber type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_platform_payment_configuration.go b/src/configurationwebhook/model_platform_payment_configuration.go index a2a2bf069..9e96c6dcc 100644 --- a/src/configurationwebhook/model_platform_payment_configuration.go +++ b/src/configurationwebhook/model_platform_payment_configuration.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PlatformPaymentConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_remediating_action.go b/src/configurationwebhook/model_remediating_action.go index 48a3a9335..6c22dc85c 100644 --- a/src/configurationwebhook/model_remediating_action.go +++ b/src/configurationwebhook/model_remediating_action.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RemediatingAction type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_resource.go b/src/configurationwebhook/model_resource.go index cf49124c3..9ebbe4b5e 100644 --- a/src/configurationwebhook/model_resource.go +++ b/src/configurationwebhook/model_resource.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Resource type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_sweep_configuration.go b/src/configurationwebhook/model_sweep_configuration.go index 770c6b78d..a54dc8163 100644 --- a/src/configurationwebhook/model_sweep_configuration.go +++ b/src/configurationwebhook/model_sweep_configuration.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_sweep_configuration_notification_data.go b/src/configurationwebhook/model_sweep_configuration_notification_data.go index 8e35bfe05..0a2ee57eb 100644 --- a/src/configurationwebhook/model_sweep_configuration_notification_data.go +++ b/src/configurationwebhook/model_sweep_configuration_notification_data.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepConfigurationNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_sweep_configuration_notification_request.go b/src/configurationwebhook/model_sweep_configuration_notification_request.go index d733b9457..14e7f2cad 100644 --- a/src/configurationwebhook/model_sweep_configuration_notification_request.go +++ b/src/configurationwebhook/model_sweep_configuration_notification_request.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepConfigurationNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_sweep_configuration_v2.go b/src/configurationwebhook/model_sweep_configuration_v2.go index 47df1d0aa..18a8d0bcb 100644 --- a/src/configurationwebhook/model_sweep_configuration_v2.go +++ b/src/configurationwebhook/model_sweep_configuration_v2.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepConfigurationV2 type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_sweep_counterparty.go b/src/configurationwebhook/model_sweep_counterparty.go index d6c0d6fcf..20d3ab6fa 100644 --- a/src/configurationwebhook/model_sweep_counterparty.go +++ b/src/configurationwebhook/model_sweep_counterparty.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepCounterparty type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_sweep_schedule.go b/src/configurationwebhook/model_sweep_schedule.go index 8ae908e35..7828a06b9 100644 --- a/src/configurationwebhook/model_sweep_schedule.go +++ b/src/configurationwebhook/model_sweep_schedule.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SweepSchedule type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_us_local_account_identification.go b/src/configurationwebhook/model_us_local_account_identification.go index 99557b93c..bfd11a96b 100644 --- a/src/configurationwebhook/model_us_local_account_identification.go +++ b/src/configurationwebhook/model_us_local_account_identification.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the USLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_verification_error.go b/src/configurationwebhook/model_verification_error.go index 927f62c63..4da36a2c6 100644 --- a/src/configurationwebhook/model_verification_error.go +++ b/src/configurationwebhook/model_verification_error.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationError type satisfies the MappedNullable interface at compile time diff --git a/src/configurationwebhook/model_verification_error_recursive.go b/src/configurationwebhook/model_verification_error_recursive.go index 2d8950f36..b068cb9cb 100644 --- a/src/configurationwebhook/model_verification_error_recursive.go +++ b/src/configurationwebhook/model_verification_error_recursive.go @@ -11,7 +11,7 @@ package configurationwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationErrorRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/dataprotection/api_general.go b/src/dataprotection/api_general.go index 6a14e60cb..2d80f17f9 100644 --- a/src/dataprotection/api_general.go +++ b/src/dataprotection/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/dataprotection/model_service_error.go b/src/dataprotection/model_service_error.go index 0c8d394b6..cbfc0e958 100644 --- a/src/dataprotection/model_service_error.go +++ b/src/dataprotection/model_service_error.go @@ -11,7 +11,7 @@ package dataprotection import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/dataprotection/model_subject_erasure_by_psp_reference_request.go b/src/dataprotection/model_subject_erasure_by_psp_reference_request.go index acd4771b0..49f11f2fa 100644 --- a/src/dataprotection/model_subject_erasure_by_psp_reference_request.go +++ b/src/dataprotection/model_subject_erasure_by_psp_reference_request.go @@ -11,7 +11,7 @@ package dataprotection import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubjectErasureByPspReferenceRequest type satisfies the MappedNullable interface at compile time diff --git a/src/dataprotection/model_subject_erasure_response.go b/src/dataprotection/model_subject_erasure_response.go index 59378ef91..113cfdc45 100644 --- a/src/dataprotection/model_subject_erasure_response.go +++ b/src/dataprotection/model_subject_erasure_response.go @@ -11,7 +11,7 @@ package dataprotection import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubjectErasureResponse type satisfies the MappedNullable interface at compile time diff --git a/src/disputes/.gitignore b/src/disputes/.gitignore deleted file mode 100755 index daf913b1b..000000000 --- a/src/disputes/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/src/disputes/.openapi-generator-ignore b/src/disputes/.openapi-generator-ignore old mode 100755 new mode 100644 index 7484ee590..2f7402806 --- a/src/disputes/.openapi-generator-ignore +++ b/src/disputes/.openapi-generator-ignore @@ -1,23 +1,4 @@ # OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md +# Single class service does not need an "index" to group multiple tags +client.go \ No newline at end of file diff --git a/src/disputes/.openapi-generator/VERSION b/src/disputes/.openapi-generator/VERSION old mode 100755 new mode 100644 index b5d898602..4be2c727a --- a/src/disputes/.openapi-generator/VERSION +++ b/src/disputes/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1-SNAPSHOT \ No newline at end of file +6.5.0 \ No newline at end of file diff --git a/src/disputes/README.md b/src/disputes/README.md deleted file mode 100755 index a31de1aad..000000000 --- a/src/disputes/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# Go API client for disputes - -This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. - -For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). - -## Authentication -Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: - -``` -curl --H \"Content-Type: application/json\" \\ --H \"X-API-Key: Your_API_key\" \\ -... -``` -Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). - -``` - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 1 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.GoClientExperimentalCodegen -For more information, please visit [https://support.adyen.com/](https://support.adyen.com/) diff --git a/src/disputes/api/openapi.yaml b/src/disputes/api/openapi.yaml deleted file mode 100755 index 93de808ce..000000000 --- a/src/disputes/api/openapi.yaml +++ /dev/null @@ -1,446 +0,0 @@ -openapi: 3.0.3 -info: - contact: - email: support@adyen.com - name: Adyen Support - url: https://support.adyen.com/ - description: |- - This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. - - For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). - - ## Authentication - Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: - - ``` - curl - -H "Content-Type: application/json" \ - -H "X-API-Key: Your_API_key" \ - ... - ``` - Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). - - ``` - termsOfService: https://www.adyen.com/legal/terms-and-conditions - title: Dispute service API - version: "1" -servers: -- url: / -paths: - /defendDispute: - post: - description: Defend the dispute with the given reason code. - operationId: post-defendDispute - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DefendDisputeRequest' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/DefendDisputeResponse' - description: OK - the request has succeeded. - "400": - description: Bad Request - a problem reading or understanding the request. - "401": - description: Unauthorized - authentication required. - "403": - description: Forbidden - insufficient permissions to process the request. - "422": - description: Unprocessable Entity - a request validation error. - "500": - description: Internal Server Error - the server could not process the request. - summary: Defend dispute - x-groupName: General - x-sortIndex: 1 - /deleteDisputeDefenseDocument: - post: - description: Delete a dispute defense document. - operationId: post-deleteDisputeDefenseDocument - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteDefenseDocumentRequest' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteDefenseDocumentResponse' - description: OK - the request has succeeded. - "400": - description: Bad Request - a problem reading or understanding the request. - "401": - description: Unauthorized - authentication required. - "403": - description: Forbidden - insufficient permissions to process the request. - "422": - description: Unprocessable Entity - a request validation error. - "500": - description: Internal Server Error - the server could not process the request. - summary: Delete dispute defense document - x-groupName: General - x-sortIndex: 1 - /downloadDisputeDefenseDocument: - get: - description: Download a dispute defense document. - operationId: get-downloadDisputeDefenseDocument - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DownloadDefenseDocumentRequest' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/DownloadDefenseDocumentResponse' - description: OK - the request has succeeded. - "400": - description: Bad Request - a problem reading or understanding the request. - "401": - description: Unauthorized - authentication required. - "403": - description: Forbidden - insufficient permissions to process the request. - "422": - description: Unprocessable Entity - a request validation error. - "500": - description: Internal Server Error - the server could not process the request. - summary: Download Dispute defense document - x-groupName: General - x-sortIndex: 1 - /retrieveApplicableDefenseReasons: - get: - description: Retrieve a list of possible defense reasons with required documents - for the given dispute. - operationId: get-retrieveApplicableDefenseReasons - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DefenseReasonsRequest' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/DefenseReasonsResponse' - description: OK - the request has succeeded. - "400": - description: Bad Request - a problem reading or understanding the request. - "401": - description: Unauthorized - authentication required. - "403": - description: Forbidden - insufficient permissions to process the request. - "422": - description: Unprocessable Entity - a request validation error. - "500": - description: Internal Server Error - the server could not process the request. - summary: Retrieve applicable defense reasons - x-groupName: General - x-sortIndex: 1 - /supplyDefenseDocument: - post: - description: Supply a dispute defense document. - operationId: post-supplyDefenseDocument - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplyDefenseDocumentRequest' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/SupplyDefenseDocumentResponse' - description: OK - the request has succeeded. - "400": - description: Bad Request - a problem reading or understanding the request. - "401": - description: Unauthorized - authentication required. - "403": - description: Forbidden - insufficient permissions to process the request. - "422": - description: Unprocessable Entity - a request validation error. - "500": - description: Internal Server Error - the server could not process the request. - summary: Supply defense document - x-groupName: General - x-sortIndex: 1 -components: - schemas: - DefendDisputeRequest: - example: - merchantAccountCode: merchantAccountCode - defenseReasonCode: defenseReasonCode - disputePspReference: disputePspReference - properties: - defenseReasonCode: - description: The reasoncode for this dispute - type: string - disputePspReference: - description: The psp reference of the dispute - type: string - merchantAccountCode: - description: The merchant account identifier - type: string - required: - - defenseReasonCode - - disputePspReference - - merchantAccountCode - DefendDisputeResponse: - example: - disputeServiceResult: - success: true - errorMessage: errorMessage - properties: - disputeServiceResult: - $ref: '#/components/schemas/DisputeServiceResult' - required: - - disputeServiceResult - DefenseDocument: - example: - defenseDocumentTypeCode: defenseDocumentTypeCode - contentType: contentType - content: content - properties: - content: - description: The content of the defense document - format: byte - type: string - contentType: - description: The content type of the defense document - type: string - defenseDocumentTypeCode: - description: The typecode for the defense document type - type: string - required: - - content - - contentType - - defenseDocumentTypeCode - DefenseDocumentType: - example: - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - properties: - available: - description: Indicates if this document type is available - type: boolean - defenseDocumentTypeCode: - description: The typecode for the defense document type - type: string - requirementLevel: - description: The requirement level for the defense document type - type: string - required: - - available - - defenseDocumentTypeCode - - requirementLevel - DefenseReason: - example: - defenseReasonCode: defenseReasonCode - defenseDocumentTypes: - - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - satisfied: true - properties: - defenseDocumentTypes: - description: Defense ducoment types - items: - $ref: '#/components/schemas/DefenseDocumentType' - type: array - defenseReasonCode: - description: The reason code for this specific defense - type: string - satisfied: - description: Indicates if this defense reason is satisfied - type: boolean - required: - - defenseReasonCode - - satisfied - DefenseReasonsRequest: - example: - merchantAccountCode: merchantAccountCode - disputePspReference: disputePspReference - properties: - disputePspReference: - description: The psp reference of the dispute - type: string - merchantAccountCode: - description: The merchant account identifier - type: string - required: - - disputePspReference - - merchantAccountCode - DefenseReasonsResponse: - example: - defenseReasons: - - defenseReasonCode: defenseReasonCode - defenseDocumentTypes: - - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - satisfied: true - - defenseReasonCode: defenseReasonCode - defenseDocumentTypes: - - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - - requirementLevel: requirementLevel - available: true - defenseDocumentTypeCode: defenseDocumentTypeCode - satisfied: true - disputeServiceResult: - success: true - errorMessage: errorMessage - properties: - defenseReasons: - description: Defense reasons - items: - $ref: '#/components/schemas/DefenseReason' - type: array - disputeServiceResult: - $ref: '#/components/schemas/DisputeServiceResult' - required: - - disputeServiceResult - DeleteDefenseDocumentRequest: - example: - merchantAccountCode: merchantAccountCode - disputePspReference: disputePspReference - defenseDocumentType: defenseDocumentType - properties: - defenseDocumentType: - description: The specific type of the defense document - type: string - disputePspReference: - description: The psp reference of the dispute - type: string - merchantAccountCode: - description: The merchant account identifier - type: string - required: - - defenseDocumentType - - disputePspReference - - merchantAccountCode - DeleteDefenseDocumentResponse: - example: - disputeServiceResult: - success: true - errorMessage: errorMessage - properties: - disputeServiceResult: - $ref: '#/components/schemas/DisputeServiceResult' - required: - - disputeServiceResult - DisputeServiceResult: - example: - success: true - errorMessage: errorMessage - properties: - errorMessage: - description: error message, empty if request was successfull - type: string - success: - description: Indicates whether or not the request succeeded - type: boolean - required: - - success - DownloadDefenseDocumentRequest: - example: - merchantAccountCode: merchantAccountCode - disputePspReference: disputePspReference - defenseDocumentType: defenseDocumentType - properties: - defenseDocumentType: - description: The specific type of the defense document - type: string - disputePspReference: - description: The psp reference of the dispute - type: string - merchantAccountCode: - description: The merchant account identifier - type: string - required: - - defenseDocumentType - - disputePspReference - - merchantAccountCode - DownloadDefenseDocumentResponse: - example: - disputeServiceResult: - success: true - errorMessage: errorMessage - contentType: contentType - content: content - properties: - content: - description: The content of the dispute defense document - format: byte - type: string - contentType: - description: The content type of the dispute defense document - type: string - disputeServiceResult: - $ref: '#/components/schemas/DisputeServiceResult' - required: - - disputeServiceResult - SupplyDefenseDocumentRequest: - example: - merchantAccountCode: merchantAccountCode - disputePspReference: disputePspReference - defenseDocuments: - - defenseDocumentTypeCode: defenseDocumentTypeCode - contentType: contentType - content: content - - defenseDocumentTypeCode: defenseDocumentTypeCode - contentType: contentType - content: content - properties: - defenseDocuments: - description: The defense documents to be supplied - items: - $ref: '#/components/schemas/DefenseDocument' - type: array - disputePspReference: - description: The psp reference of the dispute - type: string - merchantAccountCode: - description: The merchant account identifier - type: string - required: - - defenseDocuments - - disputePspReference - - merchantAccountCode - SupplyDefenseDocumentResponse: - example: - disputeServiceResult: - success: true - errorMessage: errorMessage - properties: - disputeServiceResult: - $ref: '#/components/schemas/DisputeServiceResult' - required: - - disputeServiceResult - securitySchemes: - ApiKeyAuth: - in: header - name: X-API-Key - type: apiKey - BasicAuth: - scheme: basic - type: http -x-groups: -- General diff --git a/src/disputes/api_default.go b/src/disputes/api_default.go deleted file mode 100755 index dd442a294..000000000 --- a/src/disputes/api_default.go +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package disputes - -import ( - _context "context" - _nethttp "net/http" - - "github.com/adyen/adyen-go-api-library/v7/src/common" -) - -// Disputes Disputes service -type Disputes common.Service - -/* -GetDownloadDisputeDefenseDocument Download Dispute defense document -Download a dispute defense document. - * @param request DownloadDefenseDocumentRequest - reference of DownloadDefenseDocumentRequest). - * @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return DownloadDefenseDocumentResponse -*/ -func (a Disputes) DownloadDisputeDefenseDocument(req *DownloadDefenseDocumentRequest, ctxs ..._context.Context) (DownloadDefenseDocumentResponse, *_nethttp.Response, error) { - res := &DownloadDefenseDocumentResponse{} - httpRes, err := a.Client.MakeHTTPPostRequest(req, res, a.BasePath()+"/downloadDisputeDefenseDocument", ctxs...) - return *res, httpRes, err -} - -/* -GetRetrieveApplicableDefenseReasons Retrieve applicable defense reasons -Retrieve a list of possible defense reasons with required documents for the given dispute. - * @param request DefenseReasonsRequest - reference of DefenseReasonsRequest). - * @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return DefenseReasonsResponse -*/ -func (a Disputes) RetrieveApplicableDefenseReasons(req *DefenseReasonsRequest, ctxs ..._context.Context) (DefenseReasonsResponse, *_nethttp.Response, error) { - res := &DefenseReasonsResponse{} - httpRes, err := a.Client.MakeHTTPPostRequest(req, res, a.BasePath()+"/retrieveApplicableDefenseReasons", ctxs...) - return *res, httpRes, err -} - -/* -PostDefendDispute Defend dispute -Defend the dispute with the given reason code. - * @param request DefendDisputeRequest - reference of DefendDisputeRequest). - * @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return DefendDisputeResponse -*/ -func (a Disputes) DefendDispute(req *DefendDisputeRequest, ctxs ..._context.Context) (DefendDisputeResponse, *_nethttp.Response, error) { - res := &DefendDisputeResponse{} - httpRes, err := a.Client.MakeHTTPPostRequest(req, res, a.BasePath()+"/defendDispute", ctxs...) - return *res, httpRes, err -} - -/* -PostDeleteDisputeDefenseDocument Delete dispute defense document -Delete a dispute defense document. - * @param request DeleteDefenseDocumentRequest - reference of DeleteDefenseDocumentRequest). - * @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return DeleteDefenseDocumentResponse -*/ -func (a Disputes) DeleteDisputeDefenseDocument(req *DeleteDefenseDocumentRequest, ctxs ..._context.Context) (DeleteDefenseDocumentResponse, *_nethttp.Response, error) { - res := &DeleteDefenseDocumentResponse{} - httpRes, err := a.Client.MakeHTTPPostRequest(req, res, a.BasePath()+"/deleteDisputeDefenseDocument", ctxs...) - return *res, httpRes, err -} - -/* -PostSupplyDefenseDocument Supply defense document -Supply a dispute defense document. - * @param request SupplyDefenseDocumentRequest - reference of SupplyDefenseDocumentRequest). - * @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return SupplyDefenseDocumentResponse -*/ -func (a Disputes) SupplyDefenseDocument(req *SupplyDefenseDocumentRequest, ctxs ..._context.Context) (SupplyDefenseDocumentResponse, *_nethttp.Response, error) { - res := &SupplyDefenseDocumentResponse{} - httpRes, err := a.Client.MakeHTTPPostRequest(req, res, a.BasePath()+"/supplyDefenseDocument", ctxs...) - return *res, httpRes, err -} diff --git a/src/disputes/api_general.go b/src/disputes/api_general.go new file mode 100644 index 000000000..b92caa90c --- /dev/null +++ b/src/disputes/api_general.go @@ -0,0 +1,302 @@ +/* +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package disputes + +import ( + "context" + "net/http" + "net/url" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// GeneralApi service +type GeneralApi common.Service + +// All parameters accepted by GeneralApi.AcceptDispute +type GeneralApiAcceptDisputeInput struct { + acceptDisputeRequest *AcceptDisputeRequest +} + +func (r GeneralApiAcceptDisputeInput) AcceptDisputeRequest(acceptDisputeRequest AcceptDisputeRequest) GeneralApiAcceptDisputeInput { + r.acceptDisputeRequest = &acceptDisputeRequest + return r +} + +/* +Prepare a request for AcceptDispute + +@return GeneralApiAcceptDisputeInput +*/ +func (a *GeneralApi) AcceptDisputeInput() GeneralApiAcceptDisputeInput { + return GeneralApiAcceptDisputeInput{} +} + +/* +AcceptDispute Accept a dispute + +Accepts a specific dispute. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r GeneralApiAcceptDisputeInput - Request parameters, see AcceptDisputeInput +@return AcceptDisputeResponse, *http.Response, error +*/ +func (a *GeneralApi) AcceptDispute(ctx context.Context, r GeneralApiAcceptDisputeInput) (AcceptDisputeResponse, *http.Response, error) { + res := &AcceptDisputeResponse{} + path := "/acceptDispute" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.acceptDisputeRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} + +// All parameters accepted by GeneralApi.DefendDispute +type GeneralApiDefendDisputeInput struct { + defendDisputeRequest *DefendDisputeRequest +} + +func (r GeneralApiDefendDisputeInput) DefendDisputeRequest(defendDisputeRequest DefendDisputeRequest) GeneralApiDefendDisputeInput { + r.defendDisputeRequest = &defendDisputeRequest + return r +} + +/* +Prepare a request for DefendDispute + +@return GeneralApiDefendDisputeInput +*/ +func (a *GeneralApi) DefendDisputeInput() GeneralApiDefendDisputeInput { + return GeneralApiDefendDisputeInput{} +} + +/* +DefendDispute Defend a dispute + +Defends a specific dispute. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r GeneralApiDefendDisputeInput - Request parameters, see DefendDisputeInput +@return DefendDisputeResponse, *http.Response, error +*/ +func (a *GeneralApi) DefendDispute(ctx context.Context, r GeneralApiDefendDisputeInput) (DefendDisputeResponse, *http.Response, error) { + res := &DefendDisputeResponse{} + path := "/defendDispute" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.defendDisputeRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} + +// All parameters accepted by GeneralApi.DeleteDisputeDefenseDocument +type GeneralApiDeleteDisputeDefenseDocumentInput struct { + deleteDefenseDocumentRequest *DeleteDefenseDocumentRequest +} + +func (r GeneralApiDeleteDisputeDefenseDocumentInput) DeleteDefenseDocumentRequest(deleteDefenseDocumentRequest DeleteDefenseDocumentRequest) GeneralApiDeleteDisputeDefenseDocumentInput { + r.deleteDefenseDocumentRequest = &deleteDefenseDocumentRequest + return r +} + +/* +Prepare a request for DeleteDisputeDefenseDocument + +@return GeneralApiDeleteDisputeDefenseDocumentInput +*/ +func (a *GeneralApi) DeleteDisputeDefenseDocumentInput() GeneralApiDeleteDisputeDefenseDocumentInput { + return GeneralApiDeleteDisputeDefenseDocumentInput{} +} + +/* +DeleteDisputeDefenseDocument Delete a defense document + +Deletes a specific dispute defense document that was supplied earlier. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r GeneralApiDeleteDisputeDefenseDocumentInput - Request parameters, see DeleteDisputeDefenseDocumentInput +@return DeleteDefenseDocumentResponse, *http.Response, error +*/ +func (a *GeneralApi) DeleteDisputeDefenseDocument(ctx context.Context, r GeneralApiDeleteDisputeDefenseDocumentInput) (DeleteDefenseDocumentResponse, *http.Response, error) { + res := &DeleteDefenseDocumentResponse{} + path := "/deleteDisputeDefenseDocument" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.deleteDefenseDocumentRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} + +// All parameters accepted by GeneralApi.DownloadDisputeDefenseDocument +type GeneralApiDownloadDisputeDefenseDocumentInput struct { + downloadDefenseDocumentRequest *DownloadDefenseDocumentRequest +} + +func (r GeneralApiDownloadDisputeDefenseDocumentInput) DownloadDefenseDocumentRequest(downloadDefenseDocumentRequest DownloadDefenseDocumentRequest) GeneralApiDownloadDisputeDefenseDocumentInput { + r.downloadDefenseDocumentRequest = &downloadDefenseDocumentRequest + return r +} + +/* +Prepare a request for DownloadDisputeDefenseDocument + +@return GeneralApiDownloadDisputeDefenseDocumentInput +*/ +func (a *GeneralApi) DownloadDisputeDefenseDocumentInput() GeneralApiDownloadDisputeDefenseDocumentInput { + return GeneralApiDownloadDisputeDefenseDocumentInput{} +} + +/* +DownloadDisputeDefenseDocument Download a defense document + +Downloads a specific dispute defense document that was supplied earlier. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r GeneralApiDownloadDisputeDefenseDocumentInput - Request parameters, see DownloadDisputeDefenseDocumentInput +@return DownloadDefenseDocumentResponse, *http.Response, error +*/ +func (a *GeneralApi) DownloadDisputeDefenseDocument(ctx context.Context, r GeneralApiDownloadDisputeDefenseDocumentInput) (DownloadDefenseDocumentResponse, *http.Response, error) { + res := &DownloadDefenseDocumentResponse{} + path := "/downloadDisputeDefenseDocument" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.downloadDefenseDocumentRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} + +// All parameters accepted by GeneralApi.RetrieveApplicableDefenseReasons +type GeneralApiRetrieveApplicableDefenseReasonsInput struct { + defenseReasonsRequest *DefenseReasonsRequest +} + +func (r GeneralApiRetrieveApplicableDefenseReasonsInput) DefenseReasonsRequest(defenseReasonsRequest DefenseReasonsRequest) GeneralApiRetrieveApplicableDefenseReasonsInput { + r.defenseReasonsRequest = &defenseReasonsRequest + return r +} + +/* +Prepare a request for RetrieveApplicableDefenseReasons + +@return GeneralApiRetrieveApplicableDefenseReasonsInput +*/ +func (a *GeneralApi) RetrieveApplicableDefenseReasonsInput() GeneralApiRetrieveApplicableDefenseReasonsInput { + return GeneralApiRetrieveApplicableDefenseReasonsInput{} +} + +/* +RetrieveApplicableDefenseReasons Get applicable defense reasons + +Returns a list of all applicable defense reasons to defend a specific dispute. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r GeneralApiRetrieveApplicableDefenseReasonsInput - Request parameters, see RetrieveApplicableDefenseReasonsInput +@return DefenseReasonsResponse, *http.Response, error +*/ +func (a *GeneralApi) RetrieveApplicableDefenseReasons(ctx context.Context, r GeneralApiRetrieveApplicableDefenseReasonsInput) (DefenseReasonsResponse, *http.Response, error) { + res := &DefenseReasonsResponse{} + path := "/retrieveApplicableDefenseReasons" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.defenseReasonsRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} + +// All parameters accepted by GeneralApi.SupplyDefenseDocument +type GeneralApiSupplyDefenseDocumentInput struct { + supplyDefenseDocumentRequest *SupplyDefenseDocumentRequest +} + +func (r GeneralApiSupplyDefenseDocumentInput) SupplyDefenseDocumentRequest(supplyDefenseDocumentRequest SupplyDefenseDocumentRequest) GeneralApiSupplyDefenseDocumentInput { + r.supplyDefenseDocumentRequest = &supplyDefenseDocumentRequest + return r +} + +/* +Prepare a request for SupplyDefenseDocument + +@return GeneralApiSupplyDefenseDocumentInput +*/ +func (a *GeneralApi) SupplyDefenseDocumentInput() GeneralApiSupplyDefenseDocumentInput { + return GeneralApiSupplyDefenseDocumentInput{} +} + +/* +SupplyDefenseDocument Supply a defense document + +Supplies a specific dispute defense document. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r GeneralApiSupplyDefenseDocumentInput - Request parameters, see SupplyDefenseDocumentInput +@return SupplyDefenseDocumentResponse, *http.Response, error +*/ +func (a *GeneralApi) SupplyDefenseDocument(ctx context.Context, r GeneralApiSupplyDefenseDocumentInput) (SupplyDefenseDocumentResponse, *http.Response, error) { + res := &SupplyDefenseDocumentResponse{} + path := "/supplyDefenseDocument" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.supplyDefenseDocumentRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + return *res, httpRes, err +} diff --git a/src/disputes/model_accept_dispute_request.go b/src/disputes/model_accept_dispute_request.go new file mode 100644 index 000000000..4b4f56cb9 --- /dev/null +++ b/src/disputes/model_accept_dispute_request.go @@ -0,0 +1,144 @@ +/* +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the AcceptDisputeRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &AcceptDisputeRequest{} + +// AcceptDisputeRequest struct for AcceptDisputeRequest +type AcceptDisputeRequest struct { + // The PSP reference assigned to the dispute. + DisputePspReference string `json:"disputePspReference"` + // The merchant account identifier, for which you want to process the dispute transaction. + MerchantAccountCode string `json:"merchantAccountCode"` +} + +// NewAcceptDisputeRequest instantiates a new AcceptDisputeRequest 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 NewAcceptDisputeRequest(disputePspReference string, merchantAccountCode string) *AcceptDisputeRequest { + this := AcceptDisputeRequest{} + this.DisputePspReference = disputePspReference + this.MerchantAccountCode = merchantAccountCode + return &this +} + +// NewAcceptDisputeRequestWithDefaults instantiates a new AcceptDisputeRequest 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 NewAcceptDisputeRequestWithDefaults() *AcceptDisputeRequest { + this := AcceptDisputeRequest{} + return &this +} + +// GetDisputePspReference returns the DisputePspReference field value +func (o *AcceptDisputeRequest) GetDisputePspReference() string { + if o == nil { + var ret string + return ret + } + + return o.DisputePspReference +} + +// GetDisputePspReferenceOk returns a tuple with the DisputePspReference field value +// and a boolean to check if the value has been set. +func (o *AcceptDisputeRequest) GetDisputePspReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisputePspReference, true +} + +// SetDisputePspReference sets field value +func (o *AcceptDisputeRequest) SetDisputePspReference(v string) { + o.DisputePspReference = v +} + +// GetMerchantAccountCode returns the MerchantAccountCode field value +func (o *AcceptDisputeRequest) GetMerchantAccountCode() string { + if o == nil { + var ret string + return ret + } + + return o.MerchantAccountCode +} + +// GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value +// and a boolean to check if the value has been set. +func (o *AcceptDisputeRequest) GetMerchantAccountCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MerchantAccountCode, true +} + +// SetMerchantAccountCode sets field value +func (o *AcceptDisputeRequest) SetMerchantAccountCode(v string) { + o.MerchantAccountCode = v +} + +func (o AcceptDisputeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AcceptDisputeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["disputePspReference"] = o.DisputePspReference + toSerialize["merchantAccountCode"] = o.MerchantAccountCode + return toSerialize, nil +} + +type NullableAcceptDisputeRequest struct { + value *AcceptDisputeRequest + isSet bool +} + +func (v NullableAcceptDisputeRequest) Get() *AcceptDisputeRequest { + return v.value +} + +func (v *NullableAcceptDisputeRequest) Set(val *AcceptDisputeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAcceptDisputeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAcceptDisputeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAcceptDisputeRequest(val *AcceptDisputeRequest) *NullableAcceptDisputeRequest { + return &NullableAcceptDisputeRequest{value: val, isSet: true} +} + +func (v NullableAcceptDisputeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAcceptDisputeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_accept_dispute_response.go b/src/disputes/model_accept_dispute_response.go new file mode 100644 index 000000000..7ab497f8d --- /dev/null +++ b/src/disputes/model_accept_dispute_response.go @@ -0,0 +1,115 @@ +/* +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the AcceptDisputeResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &AcceptDisputeResponse{} + +// AcceptDisputeResponse struct for AcceptDisputeResponse +type AcceptDisputeResponse struct { + DisputeServiceResult DisputeServiceResult `json:"disputeServiceResult"` +} + +// NewAcceptDisputeResponse instantiates a new AcceptDisputeResponse 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 NewAcceptDisputeResponse(disputeServiceResult DisputeServiceResult) *AcceptDisputeResponse { + this := AcceptDisputeResponse{} + this.DisputeServiceResult = disputeServiceResult + return &this +} + +// NewAcceptDisputeResponseWithDefaults instantiates a new AcceptDisputeResponse 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 NewAcceptDisputeResponseWithDefaults() *AcceptDisputeResponse { + this := AcceptDisputeResponse{} + return &this +} + +// GetDisputeServiceResult returns the DisputeServiceResult field value +func (o *AcceptDisputeResponse) GetDisputeServiceResult() DisputeServiceResult { + if o == nil { + var ret DisputeServiceResult + return ret + } + + return o.DisputeServiceResult +} + +// GetDisputeServiceResultOk returns a tuple with the DisputeServiceResult field value +// and a boolean to check if the value has been set. +func (o *AcceptDisputeResponse) GetDisputeServiceResultOk() (*DisputeServiceResult, bool) { + if o == nil { + return nil, false + } + return &o.DisputeServiceResult, true +} + +// SetDisputeServiceResult sets field value +func (o *AcceptDisputeResponse) SetDisputeServiceResult(v DisputeServiceResult) { + o.DisputeServiceResult = v +} + +func (o AcceptDisputeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AcceptDisputeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["disputeServiceResult"] = o.DisputeServiceResult + return toSerialize, nil +} + +type NullableAcceptDisputeResponse struct { + value *AcceptDisputeResponse + isSet bool +} + +func (v NullableAcceptDisputeResponse) Get() *AcceptDisputeResponse { + return v.value +} + +func (v *NullableAcceptDisputeResponse) Set(val *AcceptDisputeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAcceptDisputeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAcceptDisputeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAcceptDisputeResponse(val *AcceptDisputeResponse) *NullableAcceptDisputeResponse { + return &NullableAcceptDisputeResponse{value: val, isSet: true} +} + +func (v NullableAcceptDisputeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAcceptDisputeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defend_dispute_request.go b/src/disputes/model_defend_dispute_request.go old mode 100755 new mode 100644 index 853823c4b..373281cf2 --- a/src/disputes/model_defend_dispute_request.go +++ b/src/disputes/model_defend_dispute_request.go @@ -1,20 +1,172 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefendDisputeRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefendDisputeRequest{} + // DefendDisputeRequest struct for DefendDisputeRequest type DefendDisputeRequest struct { - // The reasoncode for this dispute + // The defense reason code that was selected to defend this dispute. DefenseReasonCode string `json:"defenseReasonCode"` - // The psp reference of the dispute + // The PSP reference assigned to the dispute. DisputePspReference string `json:"disputePspReference"` - // The merchant account identifier + // The merchant account identifier, for which you want to process the dispute transaction. MerchantAccountCode string `json:"merchantAccountCode"` } + +// NewDefendDisputeRequest instantiates a new DefendDisputeRequest 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 NewDefendDisputeRequest(defenseReasonCode string, disputePspReference string, merchantAccountCode string) *DefendDisputeRequest { + this := DefendDisputeRequest{} + this.DefenseReasonCode = defenseReasonCode + this.DisputePspReference = disputePspReference + this.MerchantAccountCode = merchantAccountCode + return &this +} + +// NewDefendDisputeRequestWithDefaults instantiates a new DefendDisputeRequest 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 NewDefendDisputeRequestWithDefaults() *DefendDisputeRequest { + this := DefendDisputeRequest{} + return &this +} + +// GetDefenseReasonCode returns the DefenseReasonCode field value +func (o *DefendDisputeRequest) GetDefenseReasonCode() string { + if o == nil { + var ret string + return ret + } + + return o.DefenseReasonCode +} + +// GetDefenseReasonCodeOk returns a tuple with the DefenseReasonCode field value +// and a boolean to check if the value has been set. +func (o *DefendDisputeRequest) GetDefenseReasonCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefenseReasonCode, true +} + +// SetDefenseReasonCode sets field value +func (o *DefendDisputeRequest) SetDefenseReasonCode(v string) { + o.DefenseReasonCode = v +} + +// GetDisputePspReference returns the DisputePspReference field value +func (o *DefendDisputeRequest) GetDisputePspReference() string { + if o == nil { + var ret string + return ret + } + + return o.DisputePspReference +} + +// GetDisputePspReferenceOk returns a tuple with the DisputePspReference field value +// and a boolean to check if the value has been set. +func (o *DefendDisputeRequest) GetDisputePspReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisputePspReference, true +} + +// SetDisputePspReference sets field value +func (o *DefendDisputeRequest) SetDisputePspReference(v string) { + o.DisputePspReference = v +} + +// GetMerchantAccountCode returns the MerchantAccountCode field value +func (o *DefendDisputeRequest) GetMerchantAccountCode() string { + if o == nil { + var ret string + return ret + } + + return o.MerchantAccountCode +} + +// GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value +// and a boolean to check if the value has been set. +func (o *DefendDisputeRequest) GetMerchantAccountCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MerchantAccountCode, true +} + +// SetMerchantAccountCode sets field value +func (o *DefendDisputeRequest) SetMerchantAccountCode(v string) { + o.MerchantAccountCode = v +} + +func (o DefendDisputeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefendDisputeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["defenseReasonCode"] = o.DefenseReasonCode + toSerialize["disputePspReference"] = o.DisputePspReference + toSerialize["merchantAccountCode"] = o.MerchantAccountCode + return toSerialize, nil +} + +type NullableDefendDisputeRequest struct { + value *DefendDisputeRequest + isSet bool +} + +func (v NullableDefendDisputeRequest) Get() *DefendDisputeRequest { + return v.value +} + +func (v *NullableDefendDisputeRequest) Set(val *DefendDisputeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDefendDisputeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDefendDisputeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefendDisputeRequest(val *DefendDisputeRequest) *NullableDefendDisputeRequest { + return &NullableDefendDisputeRequest{value: val, isSet: true} +} + +func (v NullableDefendDisputeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefendDisputeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defend_dispute_response.go b/src/disputes/model_defend_dispute_response.go old mode 100755 new mode 100644 index a6ab42110..e2f0afac4 --- a/src/disputes/model_defend_dispute_response.go +++ b/src/disputes/model_defend_dispute_response.go @@ -1,15 +1,115 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefendDisputeResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefendDisputeResponse{} + // DefendDisputeResponse struct for DefendDisputeResponse type DefendDisputeResponse struct { DisputeServiceResult DisputeServiceResult `json:"disputeServiceResult"` } + +// NewDefendDisputeResponse instantiates a new DefendDisputeResponse 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 NewDefendDisputeResponse(disputeServiceResult DisputeServiceResult) *DefendDisputeResponse { + this := DefendDisputeResponse{} + this.DisputeServiceResult = disputeServiceResult + return &this +} + +// NewDefendDisputeResponseWithDefaults instantiates a new DefendDisputeResponse 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 NewDefendDisputeResponseWithDefaults() *DefendDisputeResponse { + this := DefendDisputeResponse{} + return &this +} + +// GetDisputeServiceResult returns the DisputeServiceResult field value +func (o *DefendDisputeResponse) GetDisputeServiceResult() DisputeServiceResult { + if o == nil { + var ret DisputeServiceResult + return ret + } + + return o.DisputeServiceResult +} + +// GetDisputeServiceResultOk returns a tuple with the DisputeServiceResult field value +// and a boolean to check if the value has been set. +func (o *DefendDisputeResponse) GetDisputeServiceResultOk() (*DisputeServiceResult, bool) { + if o == nil { + return nil, false + } + return &o.DisputeServiceResult, true +} + +// SetDisputeServiceResult sets field value +func (o *DefendDisputeResponse) SetDisputeServiceResult(v DisputeServiceResult) { + o.DisputeServiceResult = v +} + +func (o DefendDisputeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefendDisputeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["disputeServiceResult"] = o.DisputeServiceResult + return toSerialize, nil +} + +type NullableDefendDisputeResponse struct { + value *DefendDisputeResponse + isSet bool +} + +func (v NullableDefendDisputeResponse) Get() *DefendDisputeResponse { + return v.value +} + +func (v *NullableDefendDisputeResponse) Set(val *DefendDisputeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDefendDisputeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDefendDisputeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefendDisputeResponse(val *DefendDisputeResponse) *NullableDefendDisputeResponse { + return &NullableDefendDisputeResponse{value: val, isSet: true} +} + +func (v NullableDefendDisputeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefendDisputeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defense_document.go b/src/disputes/model_defense_document.go old mode 100755 new mode 100644 index cf9479762..78aa87f55 --- a/src/disputes/model_defense_document.go +++ b/src/disputes/model_defense_document.go @@ -1,20 +1,172 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefenseDocument type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefenseDocument{} + // DefenseDocument struct for DefenseDocument type DefenseDocument struct { - // The content of the defense document + // The content of the defense document. Content string `json:"content"` - // The content type of the defense document + // The content type of the defense document. ContentType string `json:"contentType"` - // The typecode for the defense document type + // The document type code of the defense document. DefenseDocumentTypeCode string `json:"defenseDocumentTypeCode"` } + +// NewDefenseDocument instantiates a new DefenseDocument 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 NewDefenseDocument(content string, contentType string, defenseDocumentTypeCode string) *DefenseDocument { + this := DefenseDocument{} + this.Content = content + this.ContentType = contentType + this.DefenseDocumentTypeCode = defenseDocumentTypeCode + return &this +} + +// NewDefenseDocumentWithDefaults instantiates a new DefenseDocument 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 NewDefenseDocumentWithDefaults() *DefenseDocument { + this := DefenseDocument{} + return &this +} + +// GetContent returns the Content field value +func (o *DefenseDocument) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *DefenseDocument) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *DefenseDocument) SetContent(v string) { + o.Content = v +} + +// GetContentType returns the ContentType field value +func (o *DefenseDocument) GetContentType() string { + if o == nil { + var ret string + return ret + } + + return o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value +// and a boolean to check if the value has been set. +func (o *DefenseDocument) GetContentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContentType, true +} + +// SetContentType sets field value +func (o *DefenseDocument) SetContentType(v string) { + o.ContentType = v +} + +// GetDefenseDocumentTypeCode returns the DefenseDocumentTypeCode field value +func (o *DefenseDocument) GetDefenseDocumentTypeCode() string { + if o == nil { + var ret string + return ret + } + + return o.DefenseDocumentTypeCode +} + +// GetDefenseDocumentTypeCodeOk returns a tuple with the DefenseDocumentTypeCode field value +// and a boolean to check if the value has been set. +func (o *DefenseDocument) GetDefenseDocumentTypeCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefenseDocumentTypeCode, true +} + +// SetDefenseDocumentTypeCode sets field value +func (o *DefenseDocument) SetDefenseDocumentTypeCode(v string) { + o.DefenseDocumentTypeCode = v +} + +func (o DefenseDocument) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefenseDocument) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + toSerialize["contentType"] = o.ContentType + toSerialize["defenseDocumentTypeCode"] = o.DefenseDocumentTypeCode + return toSerialize, nil +} + +type NullableDefenseDocument struct { + value *DefenseDocument + isSet bool +} + +func (v NullableDefenseDocument) Get() *DefenseDocument { + return v.value +} + +func (v *NullableDefenseDocument) Set(val *DefenseDocument) { + v.value = val + v.isSet = true +} + +func (v NullableDefenseDocument) IsSet() bool { + return v.isSet +} + +func (v *NullableDefenseDocument) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefenseDocument(val *DefenseDocument) *NullableDefenseDocument { + return &NullableDefenseDocument{value: val, isSet: true} +} + +func (v NullableDefenseDocument) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefenseDocument) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defense_document_type.go b/src/disputes/model_defense_document_type.go old mode 100755 new mode 100644 index 8b5fe5fde..ce0ac22d9 --- a/src/disputes/model_defense_document_type.go +++ b/src/disputes/model_defense_document_type.go @@ -1,20 +1,172 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefenseDocumentType type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefenseDocumentType{} + // DefenseDocumentType struct for DefenseDocumentType type DefenseDocumentType struct { - // Indicates if this document type is available + // When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. Available bool `json:"available"` - // The typecode for the defense document type + // The document type code of the defense document. DefenseDocumentTypeCode string `json:"defenseDocumentTypeCode"` - // The requirement level for the defense document type + // Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. RequirementLevel string `json:"requirementLevel"` } + +// NewDefenseDocumentType instantiates a new DefenseDocumentType 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 NewDefenseDocumentType(available bool, defenseDocumentTypeCode string, requirementLevel string) *DefenseDocumentType { + this := DefenseDocumentType{} + this.Available = available + this.DefenseDocumentTypeCode = defenseDocumentTypeCode + this.RequirementLevel = requirementLevel + return &this +} + +// NewDefenseDocumentTypeWithDefaults instantiates a new DefenseDocumentType 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 NewDefenseDocumentTypeWithDefaults() *DefenseDocumentType { + this := DefenseDocumentType{} + return &this +} + +// GetAvailable returns the Available field value +func (o *DefenseDocumentType) GetAvailable() bool { + if o == nil { + var ret bool + return ret + } + + return o.Available +} + +// GetAvailableOk returns a tuple with the Available field value +// and a boolean to check if the value has been set. +func (o *DefenseDocumentType) GetAvailableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Available, true +} + +// SetAvailable sets field value +func (o *DefenseDocumentType) SetAvailable(v bool) { + o.Available = v +} + +// GetDefenseDocumentTypeCode returns the DefenseDocumentTypeCode field value +func (o *DefenseDocumentType) GetDefenseDocumentTypeCode() string { + if o == nil { + var ret string + return ret + } + + return o.DefenseDocumentTypeCode +} + +// GetDefenseDocumentTypeCodeOk returns a tuple with the DefenseDocumentTypeCode field value +// and a boolean to check if the value has been set. +func (o *DefenseDocumentType) GetDefenseDocumentTypeCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefenseDocumentTypeCode, true +} + +// SetDefenseDocumentTypeCode sets field value +func (o *DefenseDocumentType) SetDefenseDocumentTypeCode(v string) { + o.DefenseDocumentTypeCode = v +} + +// GetRequirementLevel returns the RequirementLevel field value +func (o *DefenseDocumentType) GetRequirementLevel() string { + if o == nil { + var ret string + return ret + } + + return o.RequirementLevel +} + +// GetRequirementLevelOk returns a tuple with the RequirementLevel field value +// and a boolean to check if the value has been set. +func (o *DefenseDocumentType) GetRequirementLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequirementLevel, true +} + +// SetRequirementLevel sets field value +func (o *DefenseDocumentType) SetRequirementLevel(v string) { + o.RequirementLevel = v +} + +func (o DefenseDocumentType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefenseDocumentType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["available"] = o.Available + toSerialize["defenseDocumentTypeCode"] = o.DefenseDocumentTypeCode + toSerialize["requirementLevel"] = o.RequirementLevel + return toSerialize, nil +} + +type NullableDefenseDocumentType struct { + value *DefenseDocumentType + isSet bool +} + +func (v NullableDefenseDocumentType) Get() *DefenseDocumentType { + return v.value +} + +func (v *NullableDefenseDocumentType) Set(val *DefenseDocumentType) { + v.value = val + v.isSet = true +} + +func (v NullableDefenseDocumentType) IsSet() bool { + return v.isSet +} + +func (v *NullableDefenseDocumentType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefenseDocumentType(val *DefenseDocumentType) *NullableDefenseDocumentType { + return &NullableDefenseDocumentType{value: val, isSet: true} +} + +func (v NullableDefenseDocumentType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefenseDocumentType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defense_reason.go b/src/disputes/model_defense_reason.go old mode 100755 new mode 100644 index 4a4248a5c..8b9b9ccab --- a/src/disputes/model_defense_reason.go +++ b/src/disputes/model_defense_reason.go @@ -1,20 +1,181 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefenseReason type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefenseReason{} + // DefenseReason struct for DefenseReason type DefenseReason struct { - // Defense ducoment types - DefenseDocumentTypes *[]DefenseDocumentType `json:"defenseDocumentTypes,omitempty"` - // The reason code for this specific defense + // Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + DefenseDocumentTypes []DefenseDocumentType `json:"defenseDocumentTypes,omitempty"` + // The defense reason code that was selected to defend this dispute. DefenseReasonCode string `json:"defenseReasonCode"` - // Indicates if this defense reason is satisfied + // Indicates if sufficient defense material has been supplied. Satisfied bool `json:"satisfied"` } + +// NewDefenseReason instantiates a new DefenseReason 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 NewDefenseReason(defenseReasonCode string, satisfied bool) *DefenseReason { + this := DefenseReason{} + this.DefenseReasonCode = defenseReasonCode + this.Satisfied = satisfied + return &this +} + +// NewDefenseReasonWithDefaults instantiates a new DefenseReason 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 NewDefenseReasonWithDefaults() *DefenseReason { + this := DefenseReason{} + return &this +} + +// GetDefenseDocumentTypes returns the DefenseDocumentTypes field value if set, zero value otherwise. +func (o *DefenseReason) GetDefenseDocumentTypes() []DefenseDocumentType { + if o == nil || common.IsNil(o.DefenseDocumentTypes) { + var ret []DefenseDocumentType + return ret + } + return o.DefenseDocumentTypes +} + +// GetDefenseDocumentTypesOk returns a tuple with the DefenseDocumentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DefenseReason) GetDefenseDocumentTypesOk() ([]DefenseDocumentType, bool) { + if o == nil || common.IsNil(o.DefenseDocumentTypes) { + return nil, false + } + return o.DefenseDocumentTypes, true +} + +// HasDefenseDocumentTypes returns a boolean if a field has been set. +func (o *DefenseReason) HasDefenseDocumentTypes() bool { + if o != nil && !common.IsNil(o.DefenseDocumentTypes) { + return true + } + + return false +} + +// SetDefenseDocumentTypes gets a reference to the given []DefenseDocumentType and assigns it to the DefenseDocumentTypes field. +func (o *DefenseReason) SetDefenseDocumentTypes(v []DefenseDocumentType) { + o.DefenseDocumentTypes = v +} + +// GetDefenseReasonCode returns the DefenseReasonCode field value +func (o *DefenseReason) GetDefenseReasonCode() string { + if o == nil { + var ret string + return ret + } + + return o.DefenseReasonCode +} + +// GetDefenseReasonCodeOk returns a tuple with the DefenseReasonCode field value +// and a boolean to check if the value has been set. +func (o *DefenseReason) GetDefenseReasonCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefenseReasonCode, true +} + +// SetDefenseReasonCode sets field value +func (o *DefenseReason) SetDefenseReasonCode(v string) { + o.DefenseReasonCode = v +} + +// GetSatisfied returns the Satisfied field value +func (o *DefenseReason) GetSatisfied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Satisfied +} + +// GetSatisfiedOk returns a tuple with the Satisfied field value +// and a boolean to check if the value has been set. +func (o *DefenseReason) GetSatisfiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Satisfied, true +} + +// SetSatisfied sets field value +func (o *DefenseReason) SetSatisfied(v bool) { + o.Satisfied = v +} + +func (o DefenseReason) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefenseReason) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.DefenseDocumentTypes) { + toSerialize["defenseDocumentTypes"] = o.DefenseDocumentTypes + } + toSerialize["defenseReasonCode"] = o.DefenseReasonCode + toSerialize["satisfied"] = o.Satisfied + return toSerialize, nil +} + +type NullableDefenseReason struct { + value *DefenseReason + isSet bool +} + +func (v NullableDefenseReason) Get() *DefenseReason { + return v.value +} + +func (v *NullableDefenseReason) Set(val *DefenseReason) { + v.value = val + v.isSet = true +} + +func (v NullableDefenseReason) IsSet() bool { + return v.isSet +} + +func (v *NullableDefenseReason) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefenseReason(val *DefenseReason) *NullableDefenseReason { + return &NullableDefenseReason{value: val, isSet: true} +} + +func (v NullableDefenseReason) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefenseReason) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defense_reasons_request.go b/src/disputes/model_defense_reasons_request.go old mode 100755 new mode 100644 index 35e5df245..471f86162 --- a/src/disputes/model_defense_reasons_request.go +++ b/src/disputes/model_defense_reasons_request.go @@ -1,18 +1,144 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefenseReasonsRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefenseReasonsRequest{} + // DefenseReasonsRequest struct for DefenseReasonsRequest type DefenseReasonsRequest struct { - // The psp reference of the dispute + // The PSP reference assigned to the dispute. DisputePspReference string `json:"disputePspReference"` - // The merchant account identifier + // The merchant account identifier, for which you want to process the dispute transaction. MerchantAccountCode string `json:"merchantAccountCode"` } + +// NewDefenseReasonsRequest instantiates a new DefenseReasonsRequest 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 NewDefenseReasonsRequest(disputePspReference string, merchantAccountCode string) *DefenseReasonsRequest { + this := DefenseReasonsRequest{} + this.DisputePspReference = disputePspReference + this.MerchantAccountCode = merchantAccountCode + return &this +} + +// NewDefenseReasonsRequestWithDefaults instantiates a new DefenseReasonsRequest 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 NewDefenseReasonsRequestWithDefaults() *DefenseReasonsRequest { + this := DefenseReasonsRequest{} + return &this +} + +// GetDisputePspReference returns the DisputePspReference field value +func (o *DefenseReasonsRequest) GetDisputePspReference() string { + if o == nil { + var ret string + return ret + } + + return o.DisputePspReference +} + +// GetDisputePspReferenceOk returns a tuple with the DisputePspReference field value +// and a boolean to check if the value has been set. +func (o *DefenseReasonsRequest) GetDisputePspReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisputePspReference, true +} + +// SetDisputePspReference sets field value +func (o *DefenseReasonsRequest) SetDisputePspReference(v string) { + o.DisputePspReference = v +} + +// GetMerchantAccountCode returns the MerchantAccountCode field value +func (o *DefenseReasonsRequest) GetMerchantAccountCode() string { + if o == nil { + var ret string + return ret + } + + return o.MerchantAccountCode +} + +// GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value +// and a boolean to check if the value has been set. +func (o *DefenseReasonsRequest) GetMerchantAccountCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MerchantAccountCode, true +} + +// SetMerchantAccountCode sets field value +func (o *DefenseReasonsRequest) SetMerchantAccountCode(v string) { + o.MerchantAccountCode = v +} + +func (o DefenseReasonsRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefenseReasonsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["disputePspReference"] = o.DisputePspReference + toSerialize["merchantAccountCode"] = o.MerchantAccountCode + return toSerialize, nil +} + +type NullableDefenseReasonsRequest struct { + value *DefenseReasonsRequest + isSet bool +} + +func (v NullableDefenseReasonsRequest) Get() *DefenseReasonsRequest { + return v.value +} + +func (v *NullableDefenseReasonsRequest) Set(val *DefenseReasonsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDefenseReasonsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDefenseReasonsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefenseReasonsRequest(val *DefenseReasonsRequest) *NullableDefenseReasonsRequest { + return &NullableDefenseReasonsRequest{value: val, isSet: true} +} + +func (v NullableDefenseReasonsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefenseReasonsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_defense_reasons_response.go b/src/disputes/model_defense_reasons_response.go old mode 100755 new mode 100644 index ffc31d3bf..f88033988 --- a/src/disputes/model_defense_reasons_response.go +++ b/src/disputes/model_defense_reasons_response.go @@ -1,17 +1,152 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DefenseReasonsResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DefenseReasonsResponse{} + // DefenseReasonsResponse struct for DefenseReasonsResponse type DefenseReasonsResponse struct { - // Defense reasons - DefenseReasons *[]DefenseReason `json:"defenseReasons,omitempty"` + // The defense reasons that can be used to defend the dispute. + DefenseReasons []DefenseReason `json:"defenseReasons,omitempty"` DisputeServiceResult DisputeServiceResult `json:"disputeServiceResult"` } + +// NewDefenseReasonsResponse instantiates a new DefenseReasonsResponse 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 NewDefenseReasonsResponse(disputeServiceResult DisputeServiceResult) *DefenseReasonsResponse { + this := DefenseReasonsResponse{} + this.DisputeServiceResult = disputeServiceResult + return &this +} + +// NewDefenseReasonsResponseWithDefaults instantiates a new DefenseReasonsResponse 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 NewDefenseReasonsResponseWithDefaults() *DefenseReasonsResponse { + this := DefenseReasonsResponse{} + return &this +} + +// GetDefenseReasons returns the DefenseReasons field value if set, zero value otherwise. +func (o *DefenseReasonsResponse) GetDefenseReasons() []DefenseReason { + if o == nil || common.IsNil(o.DefenseReasons) { + var ret []DefenseReason + return ret + } + return o.DefenseReasons +} + +// GetDefenseReasonsOk returns a tuple with the DefenseReasons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DefenseReasonsResponse) GetDefenseReasonsOk() ([]DefenseReason, bool) { + if o == nil || common.IsNil(o.DefenseReasons) { + return nil, false + } + return o.DefenseReasons, true +} + +// HasDefenseReasons returns a boolean if a field has been set. +func (o *DefenseReasonsResponse) HasDefenseReasons() bool { + if o != nil && !common.IsNil(o.DefenseReasons) { + return true + } + + return false +} + +// SetDefenseReasons gets a reference to the given []DefenseReason and assigns it to the DefenseReasons field. +func (o *DefenseReasonsResponse) SetDefenseReasons(v []DefenseReason) { + o.DefenseReasons = v +} + +// GetDisputeServiceResult returns the DisputeServiceResult field value +func (o *DefenseReasonsResponse) GetDisputeServiceResult() DisputeServiceResult { + if o == nil { + var ret DisputeServiceResult + return ret + } + + return o.DisputeServiceResult +} + +// GetDisputeServiceResultOk returns a tuple with the DisputeServiceResult field value +// and a boolean to check if the value has been set. +func (o *DefenseReasonsResponse) GetDisputeServiceResultOk() (*DisputeServiceResult, bool) { + if o == nil { + return nil, false + } + return &o.DisputeServiceResult, true +} + +// SetDisputeServiceResult sets field value +func (o *DefenseReasonsResponse) SetDisputeServiceResult(v DisputeServiceResult) { + o.DisputeServiceResult = v +} + +func (o DefenseReasonsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefenseReasonsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.DefenseReasons) { + toSerialize["defenseReasons"] = o.DefenseReasons + } + toSerialize["disputeServiceResult"] = o.DisputeServiceResult + return toSerialize, nil +} + +type NullableDefenseReasonsResponse struct { + value *DefenseReasonsResponse + isSet bool +} + +func (v NullableDefenseReasonsResponse) Get() *DefenseReasonsResponse { + return v.value +} + +func (v *NullableDefenseReasonsResponse) Set(val *DefenseReasonsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDefenseReasonsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDefenseReasonsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefenseReasonsResponse(val *DefenseReasonsResponse) *NullableDefenseReasonsResponse { + return &NullableDefenseReasonsResponse{value: val, isSet: true} +} + +func (v NullableDefenseReasonsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefenseReasonsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_delete_defense_document_request.go b/src/disputes/model_delete_defense_document_request.go old mode 100755 new mode 100644 index f99813da6..0b2557b9c --- a/src/disputes/model_delete_defense_document_request.go +++ b/src/disputes/model_delete_defense_document_request.go @@ -1,20 +1,172 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DeleteDefenseDocumentRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DeleteDefenseDocumentRequest{} + // DeleteDefenseDocumentRequest struct for DeleteDefenseDocumentRequest type DeleteDefenseDocumentRequest struct { - // The specific type of the defense document + // The document type code of the defense document. DefenseDocumentType string `json:"defenseDocumentType"` - // The psp reference of the dispute + // The PSP reference assigned to the dispute. DisputePspReference string `json:"disputePspReference"` - // The merchant account identifier + // The merchant account identifier, for which you want to process the dispute transaction. MerchantAccountCode string `json:"merchantAccountCode"` } + +// NewDeleteDefenseDocumentRequest instantiates a new DeleteDefenseDocumentRequest 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 NewDeleteDefenseDocumentRequest(defenseDocumentType string, disputePspReference string, merchantAccountCode string) *DeleteDefenseDocumentRequest { + this := DeleteDefenseDocumentRequest{} + this.DefenseDocumentType = defenseDocumentType + this.DisputePspReference = disputePspReference + this.MerchantAccountCode = merchantAccountCode + return &this +} + +// NewDeleteDefenseDocumentRequestWithDefaults instantiates a new DeleteDefenseDocumentRequest 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 NewDeleteDefenseDocumentRequestWithDefaults() *DeleteDefenseDocumentRequest { + this := DeleteDefenseDocumentRequest{} + return &this +} + +// GetDefenseDocumentType returns the DefenseDocumentType field value +func (o *DeleteDefenseDocumentRequest) GetDefenseDocumentType() string { + if o == nil { + var ret string + return ret + } + + return o.DefenseDocumentType +} + +// GetDefenseDocumentTypeOk returns a tuple with the DefenseDocumentType field value +// and a boolean to check if the value has been set. +func (o *DeleteDefenseDocumentRequest) GetDefenseDocumentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefenseDocumentType, true +} + +// SetDefenseDocumentType sets field value +func (o *DeleteDefenseDocumentRequest) SetDefenseDocumentType(v string) { + o.DefenseDocumentType = v +} + +// GetDisputePspReference returns the DisputePspReference field value +func (o *DeleteDefenseDocumentRequest) GetDisputePspReference() string { + if o == nil { + var ret string + return ret + } + + return o.DisputePspReference +} + +// GetDisputePspReferenceOk returns a tuple with the DisputePspReference field value +// and a boolean to check if the value has been set. +func (o *DeleteDefenseDocumentRequest) GetDisputePspReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisputePspReference, true +} + +// SetDisputePspReference sets field value +func (o *DeleteDefenseDocumentRequest) SetDisputePspReference(v string) { + o.DisputePspReference = v +} + +// GetMerchantAccountCode returns the MerchantAccountCode field value +func (o *DeleteDefenseDocumentRequest) GetMerchantAccountCode() string { + if o == nil { + var ret string + return ret + } + + return o.MerchantAccountCode +} + +// GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value +// and a boolean to check if the value has been set. +func (o *DeleteDefenseDocumentRequest) GetMerchantAccountCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MerchantAccountCode, true +} + +// SetMerchantAccountCode sets field value +func (o *DeleteDefenseDocumentRequest) SetMerchantAccountCode(v string) { + o.MerchantAccountCode = v +} + +func (o DeleteDefenseDocumentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteDefenseDocumentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["defenseDocumentType"] = o.DefenseDocumentType + toSerialize["disputePspReference"] = o.DisputePspReference + toSerialize["merchantAccountCode"] = o.MerchantAccountCode + return toSerialize, nil +} + +type NullableDeleteDefenseDocumentRequest struct { + value *DeleteDefenseDocumentRequest + isSet bool +} + +func (v NullableDeleteDefenseDocumentRequest) Get() *DeleteDefenseDocumentRequest { + return v.value +} + +func (v *NullableDeleteDefenseDocumentRequest) Set(val *DeleteDefenseDocumentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteDefenseDocumentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteDefenseDocumentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteDefenseDocumentRequest(val *DeleteDefenseDocumentRequest) *NullableDeleteDefenseDocumentRequest { + return &NullableDeleteDefenseDocumentRequest{value: val, isSet: true} +} + +func (v NullableDeleteDefenseDocumentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteDefenseDocumentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_delete_defense_document_response.go b/src/disputes/model_delete_defense_document_response.go old mode 100755 new mode 100644 index 83418c5d0..1cfcd42d2 --- a/src/disputes/model_delete_defense_document_response.go +++ b/src/disputes/model_delete_defense_document_response.go @@ -1,15 +1,115 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DeleteDefenseDocumentResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DeleteDefenseDocumentResponse{} + // DeleteDefenseDocumentResponse struct for DeleteDefenseDocumentResponse type DeleteDefenseDocumentResponse struct { DisputeServiceResult DisputeServiceResult `json:"disputeServiceResult"` } + +// NewDeleteDefenseDocumentResponse instantiates a new DeleteDefenseDocumentResponse 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 NewDeleteDefenseDocumentResponse(disputeServiceResult DisputeServiceResult) *DeleteDefenseDocumentResponse { + this := DeleteDefenseDocumentResponse{} + this.DisputeServiceResult = disputeServiceResult + return &this +} + +// NewDeleteDefenseDocumentResponseWithDefaults instantiates a new DeleteDefenseDocumentResponse 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 NewDeleteDefenseDocumentResponseWithDefaults() *DeleteDefenseDocumentResponse { + this := DeleteDefenseDocumentResponse{} + return &this +} + +// GetDisputeServiceResult returns the DisputeServiceResult field value +func (o *DeleteDefenseDocumentResponse) GetDisputeServiceResult() DisputeServiceResult { + if o == nil { + var ret DisputeServiceResult + return ret + } + + return o.DisputeServiceResult +} + +// GetDisputeServiceResultOk returns a tuple with the DisputeServiceResult field value +// and a boolean to check if the value has been set. +func (o *DeleteDefenseDocumentResponse) GetDisputeServiceResultOk() (*DisputeServiceResult, bool) { + if o == nil { + return nil, false + } + return &o.DisputeServiceResult, true +} + +// SetDisputeServiceResult sets field value +func (o *DeleteDefenseDocumentResponse) SetDisputeServiceResult(v DisputeServiceResult) { + o.DisputeServiceResult = v +} + +func (o DeleteDefenseDocumentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteDefenseDocumentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["disputeServiceResult"] = o.DisputeServiceResult + return toSerialize, nil +} + +type NullableDeleteDefenseDocumentResponse struct { + value *DeleteDefenseDocumentResponse + isSet bool +} + +func (v NullableDeleteDefenseDocumentResponse) Get() *DeleteDefenseDocumentResponse { + return v.value +} + +func (v *NullableDeleteDefenseDocumentResponse) Set(val *DeleteDefenseDocumentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteDefenseDocumentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteDefenseDocumentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteDefenseDocumentResponse(val *DeleteDefenseDocumentResponse) *NullableDeleteDefenseDocumentResponse { + return &NullableDeleteDefenseDocumentResponse{value: val, isSet: true} +} + +func (v NullableDeleteDefenseDocumentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteDefenseDocumentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_dispute_service_result.go b/src/disputes/model_dispute_service_result.go old mode 100755 new mode 100644 index 65b41c059..b1f7f07c0 --- a/src/disputes/model_dispute_service_result.go +++ b/src/disputes/model_dispute_service_result.go @@ -1,18 +1,153 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DisputeServiceResult type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DisputeServiceResult{} + // DisputeServiceResult struct for DisputeServiceResult type DisputeServiceResult struct { - // error message, empty if request was successfull - ErrorMessage string `json:"errorMessage,omitempty"` - // Indicates whether or not the request succeeded + // The general error message. + ErrorMessage *string `json:"errorMessage,omitempty"` + // Indicates whether the request succeeded. Success bool `json:"success"` } + +// NewDisputeServiceResult instantiates a new DisputeServiceResult 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 NewDisputeServiceResult(success bool) *DisputeServiceResult { + this := DisputeServiceResult{} + this.Success = success + return &this +} + +// NewDisputeServiceResultWithDefaults instantiates a new DisputeServiceResult 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 NewDisputeServiceResultWithDefaults() *DisputeServiceResult { + this := DisputeServiceResult{} + return &this +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *DisputeServiceResult) GetErrorMessage() string { + if o == nil || common.IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DisputeServiceResult) GetErrorMessageOk() (*string, bool) { + if o == nil || common.IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *DisputeServiceResult) HasErrorMessage() bool { + if o != nil && !common.IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *DisputeServiceResult) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetSuccess returns the Success field value +func (o *DisputeServiceResult) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *DisputeServiceResult) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *DisputeServiceResult) SetSuccess(v bool) { + o.Success = v +} + +func (o DisputeServiceResult) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DisputeServiceResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + toSerialize["success"] = o.Success + return toSerialize, nil +} + +type NullableDisputeServiceResult struct { + value *DisputeServiceResult + isSet bool +} + +func (v NullableDisputeServiceResult) Get() *DisputeServiceResult { + return v.value +} + +func (v *NullableDisputeServiceResult) Set(val *DisputeServiceResult) { + v.value = val + v.isSet = true +} + +func (v NullableDisputeServiceResult) IsSet() bool { + return v.isSet +} + +func (v *NullableDisputeServiceResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDisputeServiceResult(val *DisputeServiceResult) *NullableDisputeServiceResult { + return &NullableDisputeServiceResult{value: val, isSet: true} +} + +func (v NullableDisputeServiceResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDisputeServiceResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_download_defense_document_request.go b/src/disputes/model_download_defense_document_request.go old mode 100755 new mode 100644 index 94f22b8b6..49f11add7 --- a/src/disputes/model_download_defense_document_request.go +++ b/src/disputes/model_download_defense_document_request.go @@ -1,20 +1,172 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DownloadDefenseDocumentRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DownloadDefenseDocumentRequest{} + // DownloadDefenseDocumentRequest struct for DownloadDefenseDocumentRequest type DownloadDefenseDocumentRequest struct { - // The specific type of the defense document + // The document type code of the defense document. DefenseDocumentType string `json:"defenseDocumentType"` - // The psp reference of the dispute + // The PSP reference assigned to the dispute. DisputePspReference string `json:"disputePspReference"` - // The merchant account identifier + // The merchant account identifier, for which you want to process the dispute transaction. MerchantAccountCode string `json:"merchantAccountCode"` } + +// NewDownloadDefenseDocumentRequest instantiates a new DownloadDefenseDocumentRequest 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 NewDownloadDefenseDocumentRequest(defenseDocumentType string, disputePspReference string, merchantAccountCode string) *DownloadDefenseDocumentRequest { + this := DownloadDefenseDocumentRequest{} + this.DefenseDocumentType = defenseDocumentType + this.DisputePspReference = disputePspReference + this.MerchantAccountCode = merchantAccountCode + return &this +} + +// NewDownloadDefenseDocumentRequestWithDefaults instantiates a new DownloadDefenseDocumentRequest 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 NewDownloadDefenseDocumentRequestWithDefaults() *DownloadDefenseDocumentRequest { + this := DownloadDefenseDocumentRequest{} + return &this +} + +// GetDefenseDocumentType returns the DefenseDocumentType field value +func (o *DownloadDefenseDocumentRequest) GetDefenseDocumentType() string { + if o == nil { + var ret string + return ret + } + + return o.DefenseDocumentType +} + +// GetDefenseDocumentTypeOk returns a tuple with the DefenseDocumentType field value +// and a boolean to check if the value has been set. +func (o *DownloadDefenseDocumentRequest) GetDefenseDocumentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefenseDocumentType, true +} + +// SetDefenseDocumentType sets field value +func (o *DownloadDefenseDocumentRequest) SetDefenseDocumentType(v string) { + o.DefenseDocumentType = v +} + +// GetDisputePspReference returns the DisputePspReference field value +func (o *DownloadDefenseDocumentRequest) GetDisputePspReference() string { + if o == nil { + var ret string + return ret + } + + return o.DisputePspReference +} + +// GetDisputePspReferenceOk returns a tuple with the DisputePspReference field value +// and a boolean to check if the value has been set. +func (o *DownloadDefenseDocumentRequest) GetDisputePspReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisputePspReference, true +} + +// SetDisputePspReference sets field value +func (o *DownloadDefenseDocumentRequest) SetDisputePspReference(v string) { + o.DisputePspReference = v +} + +// GetMerchantAccountCode returns the MerchantAccountCode field value +func (o *DownloadDefenseDocumentRequest) GetMerchantAccountCode() string { + if o == nil { + var ret string + return ret + } + + return o.MerchantAccountCode +} + +// GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value +// and a boolean to check if the value has been set. +func (o *DownloadDefenseDocumentRequest) GetMerchantAccountCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MerchantAccountCode, true +} + +// SetMerchantAccountCode sets field value +func (o *DownloadDefenseDocumentRequest) SetMerchantAccountCode(v string) { + o.MerchantAccountCode = v +} + +func (o DownloadDefenseDocumentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DownloadDefenseDocumentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["defenseDocumentType"] = o.DefenseDocumentType + toSerialize["disputePspReference"] = o.DisputePspReference + toSerialize["merchantAccountCode"] = o.MerchantAccountCode + return toSerialize, nil +} + +type NullableDownloadDefenseDocumentRequest struct { + value *DownloadDefenseDocumentRequest + isSet bool +} + +func (v NullableDownloadDefenseDocumentRequest) Get() *DownloadDefenseDocumentRequest { + return v.value +} + +func (v *NullableDownloadDefenseDocumentRequest) Set(val *DownloadDefenseDocumentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDownloadDefenseDocumentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDownloadDefenseDocumentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDownloadDefenseDocumentRequest(val *DownloadDefenseDocumentRequest) *NullableDownloadDefenseDocumentRequest { + return &NullableDownloadDefenseDocumentRequest{value: val, isSet: true} +} + +func (v NullableDownloadDefenseDocumentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDownloadDefenseDocumentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_download_defense_document_response.go b/src/disputes/model_download_defense_document_response.go old mode 100755 new mode 100644 index adc416faf..8079b6021 --- a/src/disputes/model_download_defense_document_response.go +++ b/src/disputes/model_download_defense_document_response.go @@ -1,19 +1,189 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the DownloadDefenseDocumentResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &DownloadDefenseDocumentResponse{} + // DownloadDefenseDocumentResponse struct for DownloadDefenseDocumentResponse type DownloadDefenseDocumentResponse struct { - // The content of the dispute defense document - Content string `json:"content,omitempty"` - // The content type of the dispute defense document - ContentType string `json:"contentType,omitempty"` + // The content of the defense document in Base64 binary format. Must be encoded in the format that is specified in the `contentType` field. + Content *string `json:"content,omitempty"` + // The content type of the dispute defense document. Possible values: * **image/jpg** * **image/jpeg** * **image/tiff** * **application/pdf** + ContentType *string `json:"contentType,omitempty"` DisputeServiceResult DisputeServiceResult `json:"disputeServiceResult"` } + +// NewDownloadDefenseDocumentResponse instantiates a new DownloadDefenseDocumentResponse 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 NewDownloadDefenseDocumentResponse(disputeServiceResult DisputeServiceResult) *DownloadDefenseDocumentResponse { + this := DownloadDefenseDocumentResponse{} + this.DisputeServiceResult = disputeServiceResult + return &this +} + +// NewDownloadDefenseDocumentResponseWithDefaults instantiates a new DownloadDefenseDocumentResponse 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 NewDownloadDefenseDocumentResponseWithDefaults() *DownloadDefenseDocumentResponse { + this := DownloadDefenseDocumentResponse{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *DownloadDefenseDocumentResponse) GetContent() string { + if o == nil || common.IsNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DownloadDefenseDocumentResponse) GetContentOk() (*string, bool) { + if o == nil || common.IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *DownloadDefenseDocumentResponse) HasContent() bool { + if o != nil && !common.IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *DownloadDefenseDocumentResponse) SetContent(v string) { + o.Content = &v +} + +// GetContentType returns the ContentType field value if set, zero value otherwise. +func (o *DownloadDefenseDocumentResponse) GetContentType() string { + if o == nil || common.IsNil(o.ContentType) { + var ret string + return ret + } + return *o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DownloadDefenseDocumentResponse) GetContentTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.ContentType) { + return nil, false + } + return o.ContentType, true +} + +// HasContentType returns a boolean if a field has been set. +func (o *DownloadDefenseDocumentResponse) HasContentType() bool { + if o != nil && !common.IsNil(o.ContentType) { + return true + } + + return false +} + +// SetContentType gets a reference to the given string and assigns it to the ContentType field. +func (o *DownloadDefenseDocumentResponse) SetContentType(v string) { + o.ContentType = &v +} + +// GetDisputeServiceResult returns the DisputeServiceResult field value +func (o *DownloadDefenseDocumentResponse) GetDisputeServiceResult() DisputeServiceResult { + if o == nil { + var ret DisputeServiceResult + return ret + } + + return o.DisputeServiceResult +} + +// GetDisputeServiceResultOk returns a tuple with the DisputeServiceResult field value +// and a boolean to check if the value has been set. +func (o *DownloadDefenseDocumentResponse) GetDisputeServiceResultOk() (*DisputeServiceResult, bool) { + if o == nil { + return nil, false + } + return &o.DisputeServiceResult, true +} + +// SetDisputeServiceResult sets field value +func (o *DownloadDefenseDocumentResponse) SetDisputeServiceResult(v DisputeServiceResult) { + o.DisputeServiceResult = v +} + +func (o DownloadDefenseDocumentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DownloadDefenseDocumentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !common.IsNil(o.ContentType) { + toSerialize["contentType"] = o.ContentType + } + toSerialize["disputeServiceResult"] = o.DisputeServiceResult + return toSerialize, nil +} + +type NullableDownloadDefenseDocumentResponse struct { + value *DownloadDefenseDocumentResponse + isSet bool +} + +func (v NullableDownloadDefenseDocumentResponse) Get() *DownloadDefenseDocumentResponse { + return v.value +} + +func (v *NullableDownloadDefenseDocumentResponse) Set(val *DownloadDefenseDocumentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDownloadDefenseDocumentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDownloadDefenseDocumentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDownloadDefenseDocumentResponse(val *DownloadDefenseDocumentResponse) *NullableDownloadDefenseDocumentResponse { + return &NullableDownloadDefenseDocumentResponse{value: val, isSet: true} +} + +func (v NullableDownloadDefenseDocumentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDownloadDefenseDocumentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_service_error.go b/src/disputes/model_service_error.go new file mode 100644 index 000000000..59e26dd72 --- /dev/null +++ b/src/disputes/model_service_error.go @@ -0,0 +1,273 @@ +/* +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the ServiceError type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &ServiceError{} + +// ServiceError struct for ServiceError +type ServiceError struct { + // The error code mapped to the error message. + ErrorCode *string `json:"errorCode,omitempty"` + // The category of the error. + ErrorType *string `json:"errorType,omitempty"` + // A short explanation of the issue. + Message *string `json:"message,omitempty"` + // The PSP reference of the payment. + PspReference *string `json:"pspReference,omitempty"` + // The HTTP response status. + Status *int32 `json:"status,omitempty"` +} + +// NewServiceError instantiates a new ServiceError 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 NewServiceError() *ServiceError { + this := ServiceError{} + return &this +} + +// NewServiceErrorWithDefaults instantiates a new ServiceError 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 NewServiceErrorWithDefaults() *ServiceError { + this := ServiceError{} + return &this +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *ServiceError) GetErrorCode() string { + if o == nil || common.IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetErrorCodeOk() (*string, bool) { + if o == nil || common.IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *ServiceError) HasErrorCode() bool { + if o != nil && !common.IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *ServiceError) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorType returns the ErrorType field value if set, zero value otherwise. +func (o *ServiceError) GetErrorType() string { + if o == nil || common.IsNil(o.ErrorType) { + var ret string + return ret + } + return *o.ErrorType +} + +// GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetErrorTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.ErrorType) { + return nil, false + } + return o.ErrorType, true +} + +// HasErrorType returns a boolean if a field has been set. +func (o *ServiceError) HasErrorType() bool { + if o != nil && !common.IsNil(o.ErrorType) { + return true + } + + return false +} + +// SetErrorType gets a reference to the given string and assigns it to the ErrorType field. +func (o *ServiceError) SetErrorType(v string) { + o.ErrorType = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ServiceError) GetMessage() string { + if o == nil || common.IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetMessageOk() (*string, bool) { + if o == nil || common.IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ServiceError) HasMessage() bool { + if o != nil && !common.IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ServiceError) SetMessage(v string) { + o.Message = &v +} + +// GetPspReference returns the PspReference field value if set, zero value otherwise. +func (o *ServiceError) GetPspReference() string { + if o == nil || common.IsNil(o.PspReference) { + var ret string + return ret + } + return *o.PspReference +} + +// GetPspReferenceOk returns a tuple with the PspReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetPspReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.PspReference) { + return nil, false + } + return o.PspReference, true +} + +// HasPspReference returns a boolean if a field has been set. +func (o *ServiceError) HasPspReference() bool { + if o != nil && !common.IsNil(o.PspReference) { + return true + } + + return false +} + +// SetPspReference gets a reference to the given string and assigns it to the PspReference field. +func (o *ServiceError) SetPspReference(v string) { + o.PspReference = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ServiceError) GetStatus() int32 { + if o == nil || common.IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetStatusOk() (*int32, bool) { + if o == nil || common.IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ServiceError) HasStatus() bool { + if o != nil && !common.IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ServiceError) SetStatus(v int32) { + o.Status = &v +} + +func (o ServiceError) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !common.IsNil(o.ErrorType) { + toSerialize["errorType"] = o.ErrorType + } + if !common.IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !common.IsNil(o.PspReference) { + toSerialize["pspReference"] = o.PspReference + } + if !common.IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableServiceError struct { + value *ServiceError + isSet bool +} + +func (v NullableServiceError) Get() *ServiceError { + return v.value +} + +func (v *NullableServiceError) Set(val *ServiceError) { + v.value = val + v.isSet = true +} + +func (v NullableServiceError) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceError(val *ServiceError) *NullableServiceError { + return &NullableServiceError{value: val, isSet: true} +} + +func (v NullableServiceError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_supply_defense_document_request.go b/src/disputes/model_supply_defense_document_request.go old mode 100755 new mode 100644 index e21d768c2..8e85438da --- a/src/disputes/model_supply_defense_document_request.go +++ b/src/disputes/model_supply_defense_document_request.go @@ -1,20 +1,172 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the SupplyDefenseDocumentRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &SupplyDefenseDocumentRequest{} + // SupplyDefenseDocumentRequest struct for SupplyDefenseDocumentRequest type SupplyDefenseDocumentRequest struct { - // The defense documents to be supplied + // An array containing a list of the defense documents. DefenseDocuments []DefenseDocument `json:"defenseDocuments"` - // The psp reference of the dispute + // The PSP reference assigned to the dispute. DisputePspReference string `json:"disputePspReference"` - // The merchant account identifier + // The merchant account identifier, for which you want to process the dispute transaction. MerchantAccountCode string `json:"merchantAccountCode"` } + +// NewSupplyDefenseDocumentRequest instantiates a new SupplyDefenseDocumentRequest 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 NewSupplyDefenseDocumentRequest(defenseDocuments []DefenseDocument, disputePspReference string, merchantAccountCode string) *SupplyDefenseDocumentRequest { + this := SupplyDefenseDocumentRequest{} + this.DefenseDocuments = defenseDocuments + this.DisputePspReference = disputePspReference + this.MerchantAccountCode = merchantAccountCode + return &this +} + +// NewSupplyDefenseDocumentRequestWithDefaults instantiates a new SupplyDefenseDocumentRequest 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 NewSupplyDefenseDocumentRequestWithDefaults() *SupplyDefenseDocumentRequest { + this := SupplyDefenseDocumentRequest{} + return &this +} + +// GetDefenseDocuments returns the DefenseDocuments field value +func (o *SupplyDefenseDocumentRequest) GetDefenseDocuments() []DefenseDocument { + if o == nil { + var ret []DefenseDocument + return ret + } + + return o.DefenseDocuments +} + +// GetDefenseDocumentsOk returns a tuple with the DefenseDocuments field value +// and a boolean to check if the value has been set. +func (o *SupplyDefenseDocumentRequest) GetDefenseDocumentsOk() ([]DefenseDocument, bool) { + if o == nil { + return nil, false + } + return o.DefenseDocuments, true +} + +// SetDefenseDocuments sets field value +func (o *SupplyDefenseDocumentRequest) SetDefenseDocuments(v []DefenseDocument) { + o.DefenseDocuments = v +} + +// GetDisputePspReference returns the DisputePspReference field value +func (o *SupplyDefenseDocumentRequest) GetDisputePspReference() string { + if o == nil { + var ret string + return ret + } + + return o.DisputePspReference +} + +// GetDisputePspReferenceOk returns a tuple with the DisputePspReference field value +// and a boolean to check if the value has been set. +func (o *SupplyDefenseDocumentRequest) GetDisputePspReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisputePspReference, true +} + +// SetDisputePspReference sets field value +func (o *SupplyDefenseDocumentRequest) SetDisputePspReference(v string) { + o.DisputePspReference = v +} + +// GetMerchantAccountCode returns the MerchantAccountCode field value +func (o *SupplyDefenseDocumentRequest) GetMerchantAccountCode() string { + if o == nil { + var ret string + return ret + } + + return o.MerchantAccountCode +} + +// GetMerchantAccountCodeOk returns a tuple with the MerchantAccountCode field value +// and a boolean to check if the value has been set. +func (o *SupplyDefenseDocumentRequest) GetMerchantAccountCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MerchantAccountCode, true +} + +// SetMerchantAccountCode sets field value +func (o *SupplyDefenseDocumentRequest) SetMerchantAccountCode(v string) { + o.MerchantAccountCode = v +} + +func (o SupplyDefenseDocumentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SupplyDefenseDocumentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["defenseDocuments"] = o.DefenseDocuments + toSerialize["disputePspReference"] = o.DisputePspReference + toSerialize["merchantAccountCode"] = o.MerchantAccountCode + return toSerialize, nil +} + +type NullableSupplyDefenseDocumentRequest struct { + value *SupplyDefenseDocumentRequest + isSet bool +} + +func (v NullableSupplyDefenseDocumentRequest) Get() *SupplyDefenseDocumentRequest { + return v.value +} + +func (v *NullableSupplyDefenseDocumentRequest) Set(val *SupplyDefenseDocumentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSupplyDefenseDocumentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSupplyDefenseDocumentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupplyDefenseDocumentRequest(val *SupplyDefenseDocumentRequest) *NullableSupplyDefenseDocumentRequest { + return &NullableSupplyDefenseDocumentRequest{value: val, isSet: true} +} + +func (v NullableSupplyDefenseDocumentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupplyDefenseDocumentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/disputes/model_supply_defense_document_response.go b/src/disputes/model_supply_defense_document_response.go old mode 100755 new mode 100644 index 1d2268647..ab7449578 --- a/src/disputes/model_supply_defense_document_response.go +++ b/src/disputes/model_supply_defense_document_response.go @@ -1,15 +1,115 @@ /* - * Dispute service API - * - * This API provides endpoints for dispute management. You can use the API to retrieve defense reasons, supply defense ducoments, delete defense documents, upload chargebacks or accept disputes. For more information on using the APIs, refer to [Dispute service](https://docs.adyen.com/risk-management/disputes-api). ## Authentication Each request to the Dispute API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ``` - * - * API version: 1 - * Contact: support@adyen.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ +Disputes API + +API version: 30 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package disputes + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the SupplyDefenseDocumentResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &SupplyDefenseDocumentResponse{} + // SupplyDefenseDocumentResponse struct for SupplyDefenseDocumentResponse type SupplyDefenseDocumentResponse struct { DisputeServiceResult DisputeServiceResult `json:"disputeServiceResult"` } + +// NewSupplyDefenseDocumentResponse instantiates a new SupplyDefenseDocumentResponse 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 NewSupplyDefenseDocumentResponse(disputeServiceResult DisputeServiceResult) *SupplyDefenseDocumentResponse { + this := SupplyDefenseDocumentResponse{} + this.DisputeServiceResult = disputeServiceResult + return &this +} + +// NewSupplyDefenseDocumentResponseWithDefaults instantiates a new SupplyDefenseDocumentResponse 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 NewSupplyDefenseDocumentResponseWithDefaults() *SupplyDefenseDocumentResponse { + this := SupplyDefenseDocumentResponse{} + return &this +} + +// GetDisputeServiceResult returns the DisputeServiceResult field value +func (o *SupplyDefenseDocumentResponse) GetDisputeServiceResult() DisputeServiceResult { + if o == nil { + var ret DisputeServiceResult + return ret + } + + return o.DisputeServiceResult +} + +// GetDisputeServiceResultOk returns a tuple with the DisputeServiceResult field value +// and a boolean to check if the value has been set. +func (o *SupplyDefenseDocumentResponse) GetDisputeServiceResultOk() (*DisputeServiceResult, bool) { + if o == nil { + return nil, false + } + return &o.DisputeServiceResult, true +} + +// SetDisputeServiceResult sets field value +func (o *SupplyDefenseDocumentResponse) SetDisputeServiceResult(v DisputeServiceResult) { + o.DisputeServiceResult = v +} + +func (o SupplyDefenseDocumentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SupplyDefenseDocumentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["disputeServiceResult"] = o.DisputeServiceResult + return toSerialize, nil +} + +type NullableSupplyDefenseDocumentResponse struct { + value *SupplyDefenseDocumentResponse + isSet bool +} + +func (v NullableSupplyDefenseDocumentResponse) Get() *SupplyDefenseDocumentResponse { + return v.value +} + +func (v *NullableSupplyDefenseDocumentResponse) Set(val *SupplyDefenseDocumentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSupplyDefenseDocumentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSupplyDefenseDocumentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupplyDefenseDocumentResponse(val *SupplyDefenseDocumentResponse) *NullableSupplyDefenseDocumentResponse { + return &NullableSupplyDefenseDocumentResponse{value: val, isSet: true} +} + +func (v NullableSupplyDefenseDocumentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupplyDefenseDocumentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/hmacvalidator/hmacvalidator.go b/src/hmacvalidator/hmacvalidator.go index bb94bb497..5eeec31ae 100644 --- a/src/hmacvalidator/hmacvalidator.go +++ b/src/hmacvalidator/hmacvalidator.go @@ -6,7 +6,7 @@ import ( "encoding/base64" "encoding/hex" "fmt" - "github.com/adyen/adyen-go-api-library/v7/src/webhook" + "github.com/adyen/adyen-go-api-library/v8/src/webhook" "regexp" "sort" "strconv" diff --git a/src/hmacvalidator/hmacvalidator_test.go b/src/hmacvalidator/hmacvalidator_test.go index db5da86bc..709c2584c 100644 --- a/src/hmacvalidator/hmacvalidator_test.go +++ b/src/hmacvalidator/hmacvalidator_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v7/src/webhook" + "github.com/adyen/adyen-go-api-library/v8/src/webhook" "github.com/stretchr/testify/assert" ) diff --git a/src/legalentity/api_business_lines.go b/src/legalentity/api_business_lines.go index dd0ddd842..eb3c7f37b 100644 --- a/src/legalentity/api_business_lines.go +++ b/src/legalentity/api_business_lines.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // BusinessLinesApi service diff --git a/src/legalentity/api_documents.go b/src/legalentity/api_documents.go index aeaf86ff0..e040092fe 100644 --- a/src/legalentity/api_documents.go +++ b/src/legalentity/api_documents.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // DocumentsApi service diff --git a/src/legalentity/api_hosted_onboarding.go b/src/legalentity/api_hosted_onboarding.go index d62843581..0961d835c 100644 --- a/src/legalentity/api_hosted_onboarding.go +++ b/src/legalentity/api_hosted_onboarding.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // HostedOnboardingApi service diff --git a/src/legalentity/api_legal_entities.go b/src/legalentity/api_legal_entities.go index b19f07809..448b74e98 100644 --- a/src/legalentity/api_legal_entities.go +++ b/src/legalentity/api_legal_entities.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // LegalEntitiesApi service diff --git a/src/legalentity/api_pci_questionnaires.go b/src/legalentity/api_pci_questionnaires.go index 314372646..238ce1faa 100644 --- a/src/legalentity/api_pci_questionnaires.go +++ b/src/legalentity/api_pci_questionnaires.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PCIQuestionnairesApi service diff --git a/src/legalentity/api_terms_of_service.go b/src/legalentity/api_terms_of_service.go index 8b9737f89..df787b600 100644 --- a/src/legalentity/api_terms_of_service.go +++ b/src/legalentity/api_terms_of_service.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TermsOfServiceApi service diff --git a/src/legalentity/api_transfer_instruments.go b/src/legalentity/api_transfer_instruments.go index 794dabd38..a46c35fde 100644 --- a/src/legalentity/api_transfer_instruments.go +++ b/src/legalentity/api_transfer_instruments.go @@ -14,7 +14,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TransferInstrumentsApi service diff --git a/src/legalentity/client.go b/src/legalentity/client.go index 92ace6b09..7a6da1508 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/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Legal Entity Management API API v3 diff --git a/src/legalentity/model_accept_terms_of_service_request.go b/src/legalentity/model_accept_terms_of_service_request.go index eb996c3ab..88ee92570 100644 --- a/src/legalentity/model_accept_terms_of_service_request.go +++ b/src/legalentity/model_accept_terms_of_service_request.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AcceptTermsOfServiceRequest type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_accept_terms_of_service_response.go b/src/legalentity/model_accept_terms_of_service_response.go index 1dc20d196..5d301c62b 100644 --- a/src/legalentity/model_accept_terms_of_service_response.go +++ b/src/legalentity/model_accept_terms_of_service_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AcceptTermsOfServiceResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_additional_bank_identification.go b/src/legalentity/model_additional_bank_identification.go index 209d3ee08..f7ed77205 100644 --- a/src/legalentity/model_additional_bank_identification.go +++ b/src/legalentity/model_additional_bank_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalBankIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_address.go b/src/legalentity/model_address.go index 21a88378e..2ed2a6684 100644 --- a/src/legalentity/model_address.go +++ b/src/legalentity/model_address.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_amount.go b/src/legalentity/model_amount.go index 3a58ec64a..ab19d2045 100644 --- a/src/legalentity/model_amount.go +++ b/src/legalentity/model_amount.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_attachment.go b/src/legalentity/model_attachment.go index 2df2387c4..c89d227eb 100644 --- a/src/legalentity/model_attachment.go +++ b/src/legalentity/model_attachment.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Attachment type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_au_local_account_identification.go b/src/legalentity/model_au_local_account_identification.go index 3066c2d92..494b64386 100644 --- a/src/legalentity/model_au_local_account_identification.go +++ b/src/legalentity/model_au_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_bank_account_info.go b/src/legalentity/model_bank_account_info.go index b043aaa67..49db7668a 100644 --- a/src/legalentity/model_bank_account_info.go +++ b/src/legalentity/model_bank_account_info.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccountInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_birth_data.go b/src/legalentity/model_birth_data.go index ac89f5633..9516dd21a 100644 --- a/src/legalentity/model_birth_data.go +++ b/src/legalentity/model_birth_data.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BirthData type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_business_line.go b/src/legalentity/model_business_line.go index bab73178f..ad63814c5 100644 --- a/src/legalentity/model_business_line.go +++ b/src/legalentity/model_business_line.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BusinessLine type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_business_line_info.go b/src/legalentity/model_business_line_info.go index 2472905c6..ea55d149e 100644 --- a/src/legalentity/model_business_line_info.go +++ b/src/legalentity/model_business_line_info.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BusinessLineInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_business_line_info_update.go b/src/legalentity/model_business_line_info_update.go index 05c992136..790c3c3e7 100644 --- a/src/legalentity/model_business_line_info_update.go +++ b/src/legalentity/model_business_line_info_update.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BusinessLineInfoUpdate type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_business_lines.go b/src/legalentity/model_business_lines.go index f7a629996..9d7fbc185 100644 --- a/src/legalentity/model_business_lines.go +++ b/src/legalentity/model_business_lines.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BusinessLines type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_ca_local_account_identification.go b/src/legalentity/model_ca_local_account_identification.go index 8862ea719..087c30e2b 100644 --- a/src/legalentity/model_ca_local_account_identification.go +++ b/src/legalentity/model_ca_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CALocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_calculate_terms_of_service_status_response.go b/src/legalentity/model_calculate_terms_of_service_status_response.go index 0ca10c956..ededf8b8c 100644 --- a/src/legalentity/model_calculate_terms_of_service_status_response.go +++ b/src/legalentity/model_calculate_terms_of_service_status_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CalculateTermsOfServiceStatusResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_capability_problem.go b/src/legalentity/model_capability_problem.go index fc6904100..af252d49b 100644 --- a/src/legalentity/model_capability_problem.go +++ b/src/legalentity/model_capability_problem.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblem type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_capability_problem_entity.go b/src/legalentity/model_capability_problem_entity.go index 536f7cabd..5ea4935fe 100644 --- a/src/legalentity/model_capability_problem_entity.go +++ b/src/legalentity/model_capability_problem_entity.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntity type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_capability_problem_entity_recursive.go b/src/legalentity/model_capability_problem_entity_recursive.go index efef2899f..964f41ee7 100644 --- a/src/legalentity/model_capability_problem_entity_recursive.go +++ b/src/legalentity/model_capability_problem_entity_recursive.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntityRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_capability_settings.go b/src/legalentity/model_capability_settings.go index 718aac5f3..cd0aed56f 100644 --- a/src/legalentity/model_capability_settings.go +++ b/src/legalentity/model_capability_settings.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilitySettings type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_cz_local_account_identification.go b/src/legalentity/model_cz_local_account_identification.go index a75603566..6d0dd21e7 100644 --- a/src/legalentity/model_cz_local_account_identification.go +++ b/src/legalentity/model_cz_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CZLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_dk_local_account_identification.go b/src/legalentity/model_dk_local_account_identification.go index eb91866e0..cade03b85 100644 --- a/src/legalentity/model_dk_local_account_identification.go +++ b/src/legalentity/model_dk_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_document.go b/src/legalentity/model_document.go index 8aed9938c..d1c45f0e9 100644 --- a/src/legalentity/model_document.go +++ b/src/legalentity/model_document.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Document type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_document_page.go b/src/legalentity/model_document_page.go index cbeed0042..68570e3c1 100644 --- a/src/legalentity/model_document_page.go +++ b/src/legalentity/model_document_page.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DocumentPage type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_document_reference.go b/src/legalentity/model_document_reference.go index 12c23d00c..96707d96a 100644 --- a/src/legalentity/model_document_reference.go +++ b/src/legalentity/model_document_reference.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DocumentReference type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_entity_reference.go b/src/legalentity/model_entity_reference.go index b8a019924..d285bda17 100644 --- a/src/legalentity/model_entity_reference.go +++ b/src/legalentity/model_entity_reference.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the EntityReference type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_generate_pci_description_request.go b/src/legalentity/model_generate_pci_description_request.go index a0683c79f..962c0c2bd 100644 --- a/src/legalentity/model_generate_pci_description_request.go +++ b/src/legalentity/model_generate_pci_description_request.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GeneratePciDescriptionRequest type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_generate_pci_description_response.go b/src/legalentity/model_generate_pci_description_response.go index da4522d65..b8f26c439 100644 --- a/src/legalentity/model_generate_pci_description_response.go +++ b/src/legalentity/model_generate_pci_description_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GeneratePciDescriptionResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_get_pci_questionnaire_infos_response.go b/src/legalentity/model_get_pci_questionnaire_infos_response.go index 48b5a2e44..07dcc7825 100644 --- a/src/legalentity/model_get_pci_questionnaire_infos_response.go +++ b/src/legalentity/model_get_pci_questionnaire_infos_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetPciQuestionnaireInfosResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_get_pci_questionnaire_response.go b/src/legalentity/model_get_pci_questionnaire_response.go index 41780c71b..10eee4f3b 100644 --- a/src/legalentity/model_get_pci_questionnaire_response.go +++ b/src/legalentity/model_get_pci_questionnaire_response.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetPciQuestionnaireResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_get_terms_of_service_acceptance_infos_response.go b/src/legalentity/model_get_terms_of_service_acceptance_infos_response.go index 1708fa41d..e354fef16 100644 --- a/src/legalentity/model_get_terms_of_service_acceptance_infos_response.go +++ b/src/legalentity/model_get_terms_of_service_acceptance_infos_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTermsOfServiceAcceptanceInfosResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_get_terms_of_service_document_request.go b/src/legalentity/model_get_terms_of_service_document_request.go index b8b8dd28c..f7dc763e8 100644 --- a/src/legalentity/model_get_terms_of_service_document_request.go +++ b/src/legalentity/model_get_terms_of_service_document_request.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTermsOfServiceDocumentRequest type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_get_terms_of_service_document_response.go b/src/legalentity/model_get_terms_of_service_document_response.go index be9c91002..4ef64ce62 100644 --- a/src/legalentity/model_get_terms_of_service_document_response.go +++ b/src/legalentity/model_get_terms_of_service_document_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTermsOfServiceDocumentResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_hk_local_account_identification.go b/src/legalentity/model_hk_local_account_identification.go index da6196a1f..cc5234fe1 100644 --- a/src/legalentity/model_hk_local_account_identification.go +++ b/src/legalentity/model_hk_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_hu_local_account_identification.go b/src/legalentity/model_hu_local_account_identification.go index 39fa93472..f685e3908 100644 --- a/src/legalentity/model_hu_local_account_identification.go +++ b/src/legalentity/model_hu_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_iban_account_identification.go b/src/legalentity/model_iban_account_identification.go index 2c2126d59..5d4b944f0 100644 --- a/src/legalentity/model_iban_account_identification.go +++ b/src/legalentity/model_iban_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IbanAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_identification_data.go b/src/legalentity/model_identification_data.go index b77ccc581..06b376179 100644 --- a/src/legalentity/model_identification_data.go +++ b/src/legalentity/model_identification_data.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IdentificationData type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_individual.go b/src/legalentity/model_individual.go index dbdf37a12..b94132f77 100644 --- a/src/legalentity/model_individual.go +++ b/src/legalentity/model_individual.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Individual type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_legal_entity.go b/src/legalentity/model_legal_entity.go index 0d2bf6ef6..4d866cfb0 100644 --- a/src/legalentity/model_legal_entity.go +++ b/src/legalentity/model_legal_entity.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LegalEntity type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_legal_entity_association.go b/src/legalentity/model_legal_entity_association.go index c9eb1cc31..e2706750a 100644 --- a/src/legalentity/model_legal_entity_association.go +++ b/src/legalentity/model_legal_entity_association.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LegalEntityAssociation type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_legal_entity_capability.go b/src/legalentity/model_legal_entity_capability.go index a988221b9..2d59edb3d 100644 --- a/src/legalentity/model_legal_entity_capability.go +++ b/src/legalentity/model_legal_entity_capability.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LegalEntityCapability type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_legal_entity_info.go b/src/legalentity/model_legal_entity_info.go index def9ddebf..af613e0aa 100644 --- a/src/legalentity/model_legal_entity_info.go +++ b/src/legalentity/model_legal_entity_info.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LegalEntityInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_legal_entity_info_required_type.go b/src/legalentity/model_legal_entity_info_required_type.go index 5f8b1293e..ef8e156bf 100644 --- a/src/legalentity/model_legal_entity_info_required_type.go +++ b/src/legalentity/model_legal_entity_info_required_type.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LegalEntityInfoRequiredType type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_name.go b/src/legalentity/model_name.go index 6ffa9b16b..f1c69d1a1 100644 --- a/src/legalentity/model_name.go +++ b/src/legalentity/model_name.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_no_local_account_identification.go b/src/legalentity/model_no_local_account_identification.go index 43c37b919..43b0c0e15 100644 --- a/src/legalentity/model_no_local_account_identification.go +++ b/src/legalentity/model_no_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NOLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_number_and_bic_account_identification.go b/src/legalentity/model_number_and_bic_account_identification.go index 7b997f080..5d32fe11a 100644 --- a/src/legalentity/model_number_and_bic_account_identification.go +++ b/src/legalentity/model_number_and_bic_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NumberAndBicAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_onboarding_link.go b/src/legalentity/model_onboarding_link.go index 4302ae69b..9ba70e669 100644 --- a/src/legalentity/model_onboarding_link.go +++ b/src/legalentity/model_onboarding_link.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OnboardingLink type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_onboarding_link_info.go b/src/legalentity/model_onboarding_link_info.go index bcd7eb358..604f9d9e1 100644 --- a/src/legalentity/model_onboarding_link_info.go +++ b/src/legalentity/model_onboarding_link_info.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OnboardingLinkInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_onboarding_theme.go b/src/legalentity/model_onboarding_theme.go index 9bbd18c0b..f273940d6 100644 --- a/src/legalentity/model_onboarding_theme.go +++ b/src/legalentity/model_onboarding_theme.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OnboardingTheme type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_onboarding_themes.go b/src/legalentity/model_onboarding_themes.go index d0a9e0bef..fb578a8c4 100644 --- a/src/legalentity/model_onboarding_themes.go +++ b/src/legalentity/model_onboarding_themes.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OnboardingThemes type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_organization.go b/src/legalentity/model_organization.go index bedd070de..b01b8a234 100644 --- a/src/legalentity/model_organization.go +++ b/src/legalentity/model_organization.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Organization type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_owner_entity.go b/src/legalentity/model_owner_entity.go index eec21ef67..8a9276082 100644 --- a/src/legalentity/model_owner_entity.go +++ b/src/legalentity/model_owner_entity.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OwnerEntity type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_pci_document_info.go b/src/legalentity/model_pci_document_info.go index 38ad7b65a..199037c5e 100644 --- a/src/legalentity/model_pci_document_info.go +++ b/src/legalentity/model_pci_document_info.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PciDocumentInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_pci_signing_request.go b/src/legalentity/model_pci_signing_request.go index 994dc6f80..f000b633b 100644 --- a/src/legalentity/model_pci_signing_request.go +++ b/src/legalentity/model_pci_signing_request.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PciSigningRequest type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_pci_signing_response.go b/src/legalentity/model_pci_signing_response.go index 18148fd47..c7f43b0b3 100644 --- a/src/legalentity/model_pci_signing_response.go +++ b/src/legalentity/model_pci_signing_response.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PciSigningResponse type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_phone_number.go b/src/legalentity/model_phone_number.go index ee6a37686..bd8eeae77 100644 --- a/src/legalentity/model_phone_number.go +++ b/src/legalentity/model_phone_number.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PhoneNumber type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_pl_local_account_identification.go b/src/legalentity/model_pl_local_account_identification.go index 30365b15f..18e455ea0 100644 --- a/src/legalentity/model_pl_local_account_identification.go +++ b/src/legalentity/model_pl_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PLLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_remediating_action.go b/src/legalentity/model_remediating_action.go index 13ccd9de2..bb07a5ea4 100644 --- a/src/legalentity/model_remediating_action.go +++ b/src/legalentity/model_remediating_action.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RemediatingAction type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_se_local_account_identification.go b/src/legalentity/model_se_local_account_identification.go index 0a1d5e836..111bd87c5 100644 --- a/src/legalentity/model_se_local_account_identification.go +++ b/src/legalentity/model_se_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SELocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_service_error.go b/src/legalentity/model_service_error.go index cd7336a21..f8d470855 100644 --- a/src/legalentity/model_service_error.go +++ b/src/legalentity/model_service_error.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_sg_local_account_identification.go b/src/legalentity/model_sg_local_account_identification.go index 30edf4c08..27e213309 100644 --- a/src/legalentity/model_sg_local_account_identification.go +++ b/src/legalentity/model_sg_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SGLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_sole_proprietorship.go b/src/legalentity/model_sole_proprietorship.go index e51117baa..e5db764f9 100644 --- a/src/legalentity/model_sole_proprietorship.go +++ b/src/legalentity/model_sole_proprietorship.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SoleProprietorship type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_source_of_funds.go b/src/legalentity/model_source_of_funds.go index 99d61ea63..f3bc71f32 100644 --- a/src/legalentity/model_source_of_funds.go +++ b/src/legalentity/model_source_of_funds.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SourceOfFunds type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_stock_data.go b/src/legalentity/model_stock_data.go index e234e049a..3fabffc7b 100644 --- a/src/legalentity/model_stock_data.go +++ b/src/legalentity/model_stock_data.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StockData type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_supporting_entity_capability.go b/src/legalentity/model_supporting_entity_capability.go index c0bd5fef3..7267ffdb2 100644 --- a/src/legalentity/model_supporting_entity_capability.go +++ b/src/legalentity/model_supporting_entity_capability.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SupportingEntityCapability type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_tax_information.go b/src/legalentity/model_tax_information.go index 6a139a06c..01c8eca47 100644 --- a/src/legalentity/model_tax_information.go +++ b/src/legalentity/model_tax_information.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TaxInformation type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_tax_reporting_classification.go b/src/legalentity/model_tax_reporting_classification.go index 789938a76..6ba64371a 100644 --- a/src/legalentity/model_tax_reporting_classification.go +++ b/src/legalentity/model_tax_reporting_classification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TaxReportingClassification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_terms_of_service_acceptance_info.go b/src/legalentity/model_terms_of_service_acceptance_info.go index 1d649533a..426ef6d8e 100644 --- a/src/legalentity/model_terms_of_service_acceptance_info.go +++ b/src/legalentity/model_terms_of_service_acceptance_info.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TermsOfServiceAcceptanceInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_transfer_instrument.go b/src/legalentity/model_transfer_instrument.go index 950860b9b..eea788f49 100644 --- a/src/legalentity/model_transfer_instrument.go +++ b/src/legalentity/model_transfer_instrument.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferInstrument type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_transfer_instrument_info.go b/src/legalentity/model_transfer_instrument_info.go index bb7e5b88b..b0548dcc2 100644 --- a/src/legalentity/model_transfer_instrument_info.go +++ b/src/legalentity/model_transfer_instrument_info.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferInstrumentInfo type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_transfer_instrument_reference.go b/src/legalentity/model_transfer_instrument_reference.go index 2e9c15a29..06156a2bf 100644 --- a/src/legalentity/model_transfer_instrument_reference.go +++ b/src/legalentity/model_transfer_instrument_reference.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferInstrumentReference type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_uk_local_account_identification.go b/src/legalentity/model_uk_local_account_identification.go index 2ab813828..ed8a3ece5 100644 --- a/src/legalentity/model_uk_local_account_identification.go +++ b/src/legalentity/model_uk_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_us_local_account_identification.go b/src/legalentity/model_us_local_account_identification.go index 18d9e231b..b58c2bca2 100644 --- a/src/legalentity/model_us_local_account_identification.go +++ b/src/legalentity/model_us_local_account_identification.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the USLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_verification_deadline.go b/src/legalentity/model_verification_deadline.go index 4cc1f64e3..35146c696 100644 --- a/src/legalentity/model_verification_deadline.go +++ b/src/legalentity/model_verification_deadline.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationDeadline type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_verification_error.go b/src/legalentity/model_verification_error.go index c5d14878f..4395d0be9 100644 --- a/src/legalentity/model_verification_error.go +++ b/src/legalentity/model_verification_error.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationError type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_verification_error_recursive.go b/src/legalentity/model_verification_error_recursive.go index 8f2f15844..ec6f46184 100644 --- a/src/legalentity/model_verification_error_recursive.go +++ b/src/legalentity/model_verification_error_recursive.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationErrorRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_verification_errors.go b/src/legalentity/model_verification_errors.go index 0d058b4d0..06732bd36 100644 --- a/src/legalentity/model_verification_errors.go +++ b/src/legalentity/model_verification_errors.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationErrors type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_web_data.go b/src/legalentity/model_web_data.go index 11b305bbf..4ccb4a0ea 100644 --- a/src/legalentity/model_web_data.go +++ b/src/legalentity/model_web_data.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the WebData type satisfies the MappedNullable interface at compile time diff --git a/src/legalentity/model_web_data_exemption.go b/src/legalentity/model_web_data_exemption.go index 5d01dc2a3..2174d83f1 100644 --- a/src/legalentity/model_web_data_exemption.go +++ b/src/legalentity/model_web_data_exemption.go @@ -11,7 +11,7 @@ package legalentity import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the WebDataExemption type satisfies the MappedNullable interface at compile time diff --git a/src/management/.openapi-generator/VERSION b/src/management/.openapi-generator/VERSION deleted file mode 100644 index 4be2c727a..000000000 --- a/src/management/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.5.0 \ No newline at end of file diff --git a/src/management/api_account_company_level.go b/src/management/api_account_company_level.go index 59dba2f49..e32317765 100644 --- a/src/management/api_account_company_level.go +++ b/src/management/api_account_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // AccountCompanyLevelApi service diff --git a/src/management/api_account_merchant_level.go b/src/management/api_account_merchant_level.go index 407f2afaa..8027de6f8 100644 --- a/src/management/api_account_merchant_level.go +++ b/src/management/api_account_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // AccountMerchantLevelApi service diff --git a/src/management/api_account_store_level.go b/src/management/api_account_store_level.go index 2cc76de7d..797050a50 100644 --- a/src/management/api_account_store_level.go +++ b/src/management/api_account_store_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // AccountStoreLevelApi service diff --git a/src/management/api_allowed_origins_company_level.go b/src/management/api_allowed_origins_company_level.go index 066731e00..280f0a606 100644 --- a/src/management/api_allowed_origins_company_level.go +++ b/src/management/api_allowed_origins_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // AllowedOriginsCompanyLevelApi service diff --git a/src/management/api_allowed_origins_merchant_level.go b/src/management/api_allowed_origins_merchant_level.go index 39313bd74..8746446a7 100644 --- a/src/management/api_allowed_origins_merchant_level.go +++ b/src/management/api_allowed_origins_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // AllowedOriginsMerchantLevelApi service diff --git a/src/management/api_android_files_company_level.go b/src/management/api_android_files_company_level.go new file mode 100644 index 000000000..afea62701 --- /dev/null +++ b/src/management/api_android_files_company_level.go @@ -0,0 +1,503 @@ +/* +Management API + +API version: 3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package management + +import ( + "context" + "encoding/json" + "io/ioutil" + "net/http" + "net/url" + "strings" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// AndroidFilesCompanyLevelApi service +type AndroidFilesCompanyLevelApi common.Service + +// All parameters accepted by AndroidFilesCompanyLevelApi.GetAndroidApp +type AndroidFilesCompanyLevelApiGetAndroidAppInput struct { + companyId string + id string +} + +/* +Prepare a request for GetAndroidApp +@param companyId The unique identifier of the company account.@param id The unique identifier of the app. +@return AndroidFilesCompanyLevelApiGetAndroidAppInput +*/ +func (a *AndroidFilesCompanyLevelApi) GetAndroidAppInput(companyId string, id string) AndroidFilesCompanyLevelApiGetAndroidAppInput { + return AndroidFilesCompanyLevelApiGetAndroidAppInput{ + companyId: companyId, + id: id, + } +} + +/* +GetAndroidApp Get Android app + +Returns the details of the Android app identified in the path. +These apps have been uploaded to Adyen and can be installed or uninstalled on Android payment terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api). + +To make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): +* Management API—Android files read +* Management API—Android files read and write + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r AndroidFilesCompanyLevelApiGetAndroidAppInput - Request parameters, see GetAndroidAppInput +@return AndroidApp, *http.Response, error +*/ +func (a *AndroidFilesCompanyLevelApi) GetAndroidApp(ctx context.Context, r AndroidFilesCompanyLevelApiGetAndroidAppInput) (AndroidApp, *http.Response, error) { + res := &AndroidApp{} + path := "/companies/{companyId}/androidApps/{id}" + path = strings.Replace(path, "{"+"companyId"+"}", url.PathEscape(common.ParameterValueToString(r.companyId, "companyId")), -1) + 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.MethodGet, + a.BasePath()+path, + queryParams, + headerParams, + ) + + if httpRes == nil { + return *res, httpRes, err + } + + var serviceError common.RestServiceError + + if httpRes.StatusCode == 400 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + return *res, httpRes, err +} + +// All parameters accepted by AndroidFilesCompanyLevelApi.ListAndroidApps +type AndroidFilesCompanyLevelApiListAndroidAppsInput struct { + companyId string + pageNumber *int32 + pageSize *int32 + packageName *string + versionCode *int32 +} + +// The number of the page to fetch. +func (r AndroidFilesCompanyLevelApiListAndroidAppsInput) PageNumber(pageNumber int32) AndroidFilesCompanyLevelApiListAndroidAppsInput { + r.pageNumber = &pageNumber + return r +} + +// The number of items to have on a page, maximum 100. The default is 20 items on a page. +func (r AndroidFilesCompanyLevelApiListAndroidAppsInput) PageSize(pageSize int32) AndroidFilesCompanyLevelApiListAndroidAppsInput { + r.pageSize = &pageSize + return r +} + +// The package name that uniquely identifies the Android app. +func (r AndroidFilesCompanyLevelApiListAndroidAppsInput) PackageName(packageName string) AndroidFilesCompanyLevelApiListAndroidAppsInput { + r.packageName = &packageName + return r +} + +// The version number of the app. +func (r AndroidFilesCompanyLevelApiListAndroidAppsInput) VersionCode(versionCode int32) AndroidFilesCompanyLevelApiListAndroidAppsInput { + r.versionCode = &versionCode + return r +} + +/* +Prepare a request for ListAndroidApps +@param companyId The unique identifier of the company account. +@return AndroidFilesCompanyLevelApiListAndroidAppsInput +*/ +func (a *AndroidFilesCompanyLevelApi) ListAndroidAppsInput(companyId string) AndroidFilesCompanyLevelApiListAndroidAppsInput { + return AndroidFilesCompanyLevelApiListAndroidAppsInput{ + companyId: companyId, + } +} + +/* +ListAndroidApps Get a list of Android apps + +Returns a list of the Android apps that are available for the company identified in the path. +These apps have been uploaded to Adyen and can be installed or uninstalled on Android payment terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api). + +To make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): +* Management API—Android files read +* Management API—Android files read and write +* Management API—Terminal actions read +* Management API—Terminal actions read and write + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r AndroidFilesCompanyLevelApiListAndroidAppsInput - Request parameters, see ListAndroidAppsInput +@return AndroidAppsResponse, *http.Response, error +*/ +func (a *AndroidFilesCompanyLevelApi) ListAndroidApps(ctx context.Context, r AndroidFilesCompanyLevelApiListAndroidAppsInput) (AndroidAppsResponse, *http.Response, error) { + res := &AndroidAppsResponse{} + path := "/companies/{companyId}/androidApps" + path = strings.Replace(path, "{"+"companyId"+"}", url.PathEscape(common.ParameterValueToString(r.companyId, "companyId")), -1) + queryParams := url.Values{} + headerParams := make(map[string]string) + if r.pageNumber != nil { + common.ParameterAddToQuery(queryParams, "pageNumber", r.pageNumber, "") + } + if r.pageSize != nil { + common.ParameterAddToQuery(queryParams, "pageSize", r.pageSize, "") + } + if r.packageName != nil { + common.ParameterAddToQuery(queryParams, "packageName", r.packageName, "") + } + if r.versionCode != nil { + common.ParameterAddToQuery(queryParams, "versionCode", r.versionCode, "") + } + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + nil, + res, + http.MethodGet, + a.BasePath()+path, + queryParams, + headerParams, + ) + + if httpRes == nil { + return *res, httpRes, err + } + + var serviceError common.RestServiceError + + if httpRes.StatusCode == 400 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + return *res, httpRes, err +} + +// All parameters accepted by AndroidFilesCompanyLevelApi.ListAndroidCertificates +type AndroidFilesCompanyLevelApiListAndroidCertificatesInput struct { + companyId string + pageNumber *int32 + pageSize *int32 + certificateName *string +} + +// The number of the page to fetch. +func (r AndroidFilesCompanyLevelApiListAndroidCertificatesInput) PageNumber(pageNumber int32) AndroidFilesCompanyLevelApiListAndroidCertificatesInput { + r.pageNumber = &pageNumber + return r +} + +// The number of items to have on a page, maximum 100. The default is 20 items on a page. +func (r AndroidFilesCompanyLevelApiListAndroidCertificatesInput) PageSize(pageSize int32) AndroidFilesCompanyLevelApiListAndroidCertificatesInput { + r.pageSize = &pageSize + return r +} + +// The name of the certificate. +func (r AndroidFilesCompanyLevelApiListAndroidCertificatesInput) CertificateName(certificateName string) AndroidFilesCompanyLevelApiListAndroidCertificatesInput { + r.certificateName = &certificateName + return r +} + +/* +Prepare a request for ListAndroidCertificates +@param companyId The unique identifier of the company account. +@return AndroidFilesCompanyLevelApiListAndroidCertificatesInput +*/ +func (a *AndroidFilesCompanyLevelApi) ListAndroidCertificatesInput(companyId string) AndroidFilesCompanyLevelApiListAndroidCertificatesInput { + return AndroidFilesCompanyLevelApiListAndroidCertificatesInput{ + companyId: companyId, + } +} + +/* +ListAndroidCertificates Get a list of Android certificates + +Returns a list of the Android certificates that are available for the company identified in the path. +Typically, these certificates enable running apps on Android payment terminals. The certifcates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api). + +To make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): +* Management API—Android files read +* Management API—Android files read and write +* Management API—Terminal actions read +* Management API—Terminal actions read and write + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r AndroidFilesCompanyLevelApiListAndroidCertificatesInput - Request parameters, see ListAndroidCertificatesInput +@return AndroidCertificatesResponse, *http.Response, error +*/ +func (a *AndroidFilesCompanyLevelApi) ListAndroidCertificates(ctx context.Context, r AndroidFilesCompanyLevelApiListAndroidCertificatesInput) (AndroidCertificatesResponse, *http.Response, error) { + res := &AndroidCertificatesResponse{} + path := "/companies/{companyId}/androidCertificates" + path = strings.Replace(path, "{"+"companyId"+"}", url.PathEscape(common.ParameterValueToString(r.companyId, "companyId")), -1) + queryParams := url.Values{} + headerParams := make(map[string]string) + if r.pageNumber != nil { + common.ParameterAddToQuery(queryParams, "pageNumber", r.pageNumber, "") + } + if r.pageSize != nil { + common.ParameterAddToQuery(queryParams, "pageSize", r.pageSize, "") + } + if r.certificateName != nil { + common.ParameterAddToQuery(queryParams, "certificateName", r.certificateName, "") + } + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + nil, + res, + http.MethodGet, + a.BasePath()+path, + queryParams, + headerParams, + ) + + if httpRes == nil { + return *res, httpRes, err + } + + var serviceError common.RestServiceError + + if httpRes.StatusCode == 400 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + return *res, httpRes, err +} + +// All parameters accepted by AndroidFilesCompanyLevelApi.UploadAndroidApp +type AndroidFilesCompanyLevelApiUploadAndroidAppInput struct { + companyId string +} + +/* +Prepare a request for UploadAndroidApp +@param companyId The unique identifier of the company account. +@return AndroidFilesCompanyLevelApiUploadAndroidAppInput +*/ +func (a *AndroidFilesCompanyLevelApi) UploadAndroidAppInput(companyId string) AndroidFilesCompanyLevelApiUploadAndroidAppInput { + return AndroidFilesCompanyLevelApiUploadAndroidAppInput{ + companyId: companyId, + } +} + +/* +UploadAndroidApp Upload Android App + +Uploads an Android APK file to Adyen. +The maximum APK file size is 200 MB. +To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): +* Management API—Android files read and write + +>By choosing to upload, install, or run any third-party applications on an Adyen payment terminal, you accept full responsibility and liability for any consequences of uploading, installing, or running any such applications. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r AndroidFilesCompanyLevelApiUploadAndroidAppInput - Request parameters, see UploadAndroidAppInput +@return *http.Response, error +*/ +func (a *AndroidFilesCompanyLevelApi) UploadAndroidApp(ctx context.Context, r AndroidFilesCompanyLevelApiUploadAndroidAppInput) (*http.Response, error) { + var res interface{} + path := "/companies/{companyId}/androidApps" + path = strings.Replace(path, "{"+"companyId"+"}", url.PathEscape(common.ParameterValueToString(r.companyId, "companyId")), -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, + ) + + if httpRes == nil { + return httpRes, err + } + + var serviceError common.RestServiceError + if httpRes.StatusCode == 400 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + return httpRes, err +} diff --git a/src/management/api_api_credentials_company_level.go b/src/management/api_api_credentials_company_level.go index 41d1162c0..0f08de577 100644 --- a/src/management/api_api_credentials_company_level.go +++ b/src/management/api_api_credentials_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APICredentialsCompanyLevelApi service diff --git a/src/management/api_api_credentials_merchant_level.go b/src/management/api_api_credentials_merchant_level.go index 8ee7d1f47..9a246084f 100644 --- a/src/management/api_api_credentials_merchant_level.go +++ b/src/management/api_api_credentials_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APICredentialsMerchantLevelApi service diff --git a/src/management/api_api_key_company_level.go b/src/management/api_api_key_company_level.go index c16a8931f..297d771f6 100644 --- a/src/management/api_api_key_company_level.go +++ b/src/management/api_api_key_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIKeyCompanyLevelApi service diff --git a/src/management/api_api_key_merchant_level.go b/src/management/api_api_key_merchant_level.go index 1f5739bf7..610efc8e3 100644 --- a/src/management/api_api_key_merchant_level.go +++ b/src/management/api_api_key_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIKeyMerchantLevelApi service diff --git a/src/management/api_client_key_company_level.go b/src/management/api_client_key_company_level.go index 007305caf..de246ded7 100644 --- a/src/management/api_client_key_company_level.go +++ b/src/management/api_client_key_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // ClientKeyCompanyLevelApi service diff --git a/src/management/api_client_key_merchant_level.go b/src/management/api_client_key_merchant_level.go index 77756daf6..24171eb06 100644 --- a/src/management/api_client_key_merchant_level.go +++ b/src/management/api_client_key_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // ClientKeyMerchantLevelApi service diff --git a/src/management/api_my_api_credential.go b/src/management/api_my_api_credential.go index 809849574..5b58f4c9e 100644 --- a/src/management/api_my_api_credential.go +++ b/src/management/api_my_api_credential.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // MyAPICredentialApi service @@ -123,6 +123,99 @@ func (a *MyAPICredentialApi) AddAllowedOrigin(ctx context.Context, r MyAPICreden return *res, httpRes, err } +// All parameters accepted by MyAPICredentialApi.GenerateNewClientKeyForSelf +type MyAPICredentialApiGenerateNewClientKeyForSelfInput struct { +} + +/* +Prepare a request for GenerateNewClientKeyForSelf + +@return MyAPICredentialApiGenerateNewClientKeyForSelfInput +*/ +func (a *MyAPICredentialApi) GenerateNewClientKeyForSelfInput() MyAPICredentialApiGenerateNewClientKeyForSelfInput { + return MyAPICredentialApiGenerateNewClientKeyForSelfInput{} +} + +/* +GenerateNewClientKeyForSelf Generate new client key for self + +Returns a new [client key](https://docs.adyen.com/development-resources/client-side-authentication#how-it-works) for the caller - API Credential or OAuth Access Token. You can use the new client key a few minutes after generating it. The old client key stops working 24 hours after generating a new one.To make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): +* Management API—API credentials read and write + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r MyAPICredentialApiGenerateNewClientKeyForSelfInput - Request parameters, see GenerateNewClientKeyForSelfInput +@return GenerateClientKeyResponse, *http.Response, error +*/ +func (a *MyAPICredentialApi) GenerateNewClientKeyForSelf(ctx context.Context, r MyAPICredentialApiGenerateNewClientKeyForSelfInput) (GenerateClientKeyResponse, *http.Response, error) { + res := &GenerateClientKeyResponse{} + path := "/me/generateClientKey" + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + nil, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + if httpRes == nil { + return *res, httpRes, err + } + + var serviceError common.RestServiceError + + if httpRes.StatusCode == 400 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + return *res, httpRes, err +} + // All parameters accepted by MyAPICredentialApi.GetAllowedOriginDetails type MyAPICredentialApiGetAllowedOriginDetailsInput struct { originId string diff --git a/src/management/api_payment_methods_merchant_level.go b/src/management/api_payment_methods_merchant_level.go index de65b63f6..4efb0e502 100644 --- a/src/management/api_payment_methods_merchant_level.go +++ b/src/management/api_payment_methods_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PaymentMethodsMerchantLevelApi service diff --git a/src/management/api_payout_settings_merchant_level.go b/src/management/api_payout_settings_merchant_level.go index 85cb5863b..315d5002c 100644 --- a/src/management/api_payout_settings_merchant_level.go +++ b/src/management/api_payout_settings_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PayoutSettingsMerchantLevelApi service diff --git a/src/management/api_split_configuration_merchant_level.go b/src/management/api_split_configuration_merchant_level.go index 69fa74644..4f0f11a09 100644 --- a/src/management/api_split_configuration_merchant_level.go +++ b/src/management/api_split_configuration_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // SplitConfigurationMerchantLevelApi service diff --git a/src/management/api_terminal_actions_company_level.go b/src/management/api_terminal_actions_company_level.go index 021334e29..aaf3099c1 100644 --- a/src/management/api_terminal_actions_company_level.go +++ b/src/management/api_terminal_actions_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalActionsCompanyLevelApi service @@ -124,278 +124,6 @@ func (a *TerminalActionsCompanyLevelApi) GetTerminalAction(ctx context.Context, return *res, httpRes, err } -// All parameters accepted by TerminalActionsCompanyLevelApi.ListAndroidApps -type TerminalActionsCompanyLevelApiListAndroidAppsInput struct { - companyId string - pageNumber *int32 - pageSize *int32 - packageName *string - versionCode *int32 -} - -// The number of the page to fetch. -func (r TerminalActionsCompanyLevelApiListAndroidAppsInput) PageNumber(pageNumber int32) TerminalActionsCompanyLevelApiListAndroidAppsInput { - r.pageNumber = &pageNumber - return r -} - -// The number of items to have on a page, maximum 100. The default is 20 items on a page. -func (r TerminalActionsCompanyLevelApiListAndroidAppsInput) PageSize(pageSize int32) TerminalActionsCompanyLevelApiListAndroidAppsInput { - r.pageSize = &pageSize - return r -} - -// The package name that uniquely identifies the Android app. -func (r TerminalActionsCompanyLevelApiListAndroidAppsInput) PackageName(packageName string) TerminalActionsCompanyLevelApiListAndroidAppsInput { - r.packageName = &packageName - return r -} - -// The version number of the app. -func (r TerminalActionsCompanyLevelApiListAndroidAppsInput) VersionCode(versionCode int32) TerminalActionsCompanyLevelApiListAndroidAppsInput { - r.versionCode = &versionCode - return r -} - -/* -Prepare a request for ListAndroidApps -@param companyId The unique identifier of the company account. -@return TerminalActionsCompanyLevelApiListAndroidAppsInput -*/ -func (a *TerminalActionsCompanyLevelApi) ListAndroidAppsInput(companyId string) TerminalActionsCompanyLevelApiListAndroidAppsInput { - return TerminalActionsCompanyLevelApiListAndroidAppsInput{ - companyId: companyId, - } -} - -/* -ListAndroidApps Get a list of Android apps - -Returns a list of the Android apps that are available for the company identified in the path. -These apps have been uploaded to Adyen and can be installed or uninstalled on Android payment terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api). - -To make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): -* Management API—Terminal actions read -* Management API—Terminal actions read and write - -@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@param r TerminalActionsCompanyLevelApiListAndroidAppsInput - Request parameters, see ListAndroidAppsInput -@return AndroidAppsResponse, *http.Response, error -*/ -func (a *TerminalActionsCompanyLevelApi) ListAndroidApps(ctx context.Context, r TerminalActionsCompanyLevelApiListAndroidAppsInput) (AndroidAppsResponse, *http.Response, error) { - res := &AndroidAppsResponse{} - path := "/companies/{companyId}/androidApps" - path = strings.Replace(path, "{"+"companyId"+"}", url.PathEscape(common.ParameterValueToString(r.companyId, "companyId")), -1) - queryParams := url.Values{} - headerParams := make(map[string]string) - if r.pageNumber != nil { - common.ParameterAddToQuery(queryParams, "pageNumber", r.pageNumber, "") - } - if r.pageSize != nil { - common.ParameterAddToQuery(queryParams, "pageSize", r.pageSize, "") - } - if r.packageName != nil { - common.ParameterAddToQuery(queryParams, "packageName", r.packageName, "") - } - if r.versionCode != nil { - common.ParameterAddToQuery(queryParams, "versionCode", r.versionCode, "") - } - httpRes, err := common.SendAPIRequest( - ctx, - a.Client, - nil, - res, - http.MethodGet, - a.BasePath()+path, - queryParams, - headerParams, - ) - - if httpRes == nil { - return *res, httpRes, err - } - - var serviceError common.RestServiceError - - if httpRes.StatusCode == 400 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 401 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 403 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 422 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 500 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - return *res, httpRes, err -} - -// All parameters accepted by TerminalActionsCompanyLevelApi.ListAndroidCertificates -type TerminalActionsCompanyLevelApiListAndroidCertificatesInput struct { - companyId string - pageNumber *int32 - pageSize *int32 - certificateName *string -} - -// The number of the page to fetch. -func (r TerminalActionsCompanyLevelApiListAndroidCertificatesInput) PageNumber(pageNumber int32) TerminalActionsCompanyLevelApiListAndroidCertificatesInput { - r.pageNumber = &pageNumber - return r -} - -// The number of items to have on a page, maximum 100. The default is 20 items on a page. -func (r TerminalActionsCompanyLevelApiListAndroidCertificatesInput) PageSize(pageSize int32) TerminalActionsCompanyLevelApiListAndroidCertificatesInput { - r.pageSize = &pageSize - return r -} - -// The name of the certificate. -func (r TerminalActionsCompanyLevelApiListAndroidCertificatesInput) CertificateName(certificateName string) TerminalActionsCompanyLevelApiListAndroidCertificatesInput { - r.certificateName = &certificateName - return r -} - -/* -Prepare a request for ListAndroidCertificates -@param companyId The unique identifier of the company account. -@return TerminalActionsCompanyLevelApiListAndroidCertificatesInput -*/ -func (a *TerminalActionsCompanyLevelApi) ListAndroidCertificatesInput(companyId string) TerminalActionsCompanyLevelApiListAndroidCertificatesInput { - return TerminalActionsCompanyLevelApiListAndroidCertificatesInput{ - companyId: companyId, - } -} - -/* -ListAndroidCertificates Get a list of Android certificates - -Returns a list of the Android certificates that are available for the company identified in the path. -Typically, these certificates enable running apps on Android payment terminals. The certifcates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api). - -To make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions): -* Management API—Terminal actions read -* Management API—Terminal actions read and write - -@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@param r TerminalActionsCompanyLevelApiListAndroidCertificatesInput - Request parameters, see ListAndroidCertificatesInput -@return AndroidCertificatesResponse, *http.Response, error -*/ -func (a *TerminalActionsCompanyLevelApi) ListAndroidCertificates(ctx context.Context, r TerminalActionsCompanyLevelApiListAndroidCertificatesInput) (AndroidCertificatesResponse, *http.Response, error) { - res := &AndroidCertificatesResponse{} - path := "/companies/{companyId}/androidCertificates" - path = strings.Replace(path, "{"+"companyId"+"}", url.PathEscape(common.ParameterValueToString(r.companyId, "companyId")), -1) - queryParams := url.Values{} - headerParams := make(map[string]string) - if r.pageNumber != nil { - common.ParameterAddToQuery(queryParams, "pageNumber", r.pageNumber, "") - } - if r.pageSize != nil { - common.ParameterAddToQuery(queryParams, "pageSize", r.pageSize, "") - } - if r.certificateName != nil { - common.ParameterAddToQuery(queryParams, "certificateName", r.certificateName, "") - } - httpRes, err := common.SendAPIRequest( - ctx, - a.Client, - nil, - res, - http.MethodGet, - a.BasePath()+path, - queryParams, - headerParams, - ) - - if httpRes == nil { - return *res, httpRes, err - } - - var serviceError common.RestServiceError - - if httpRes.StatusCode == 400 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 401 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 403 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 422 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - if httpRes.StatusCode == 500 { - body, _ := ioutil.ReadAll(httpRes.Body) - decodeError := json.Unmarshal([]byte(body), &serviceError) - if decodeError != nil { - return *res, httpRes, decodeError - } - return *res, httpRes, serviceError - } - - return *res, httpRes, err -} - // All parameters accepted by TerminalActionsCompanyLevelApi.ListTerminalActions type TerminalActionsCompanyLevelApiListTerminalActionsInput struct { companyId string diff --git a/src/management/api_terminal_actions_terminal_level.go b/src/management/api_terminal_actions_terminal_level.go index cee981e56..de2514a95 100644 --- a/src/management/api_terminal_actions_terminal_level.go +++ b/src/management/api_terminal_actions_terminal_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalActionsTerminalLevelApi service diff --git a/src/management/api_terminal_orders_company_level.go b/src/management/api_terminal_orders_company_level.go index a99552a20..b74ccfb1b 100644 --- a/src/management/api_terminal_orders_company_level.go +++ b/src/management/api_terminal_orders_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalOrdersCompanyLevelApi service diff --git a/src/management/api_terminal_orders_merchant_level.go b/src/management/api_terminal_orders_merchant_level.go index 97f0de105..77afeaf9b 100644 --- a/src/management/api_terminal_orders_merchant_level.go +++ b/src/management/api_terminal_orders_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalOrdersMerchantLevelApi service diff --git a/src/management/api_terminal_settings_company_level.go b/src/management/api_terminal_settings_company_level.go index 1e50cda00..13e09bbba 100644 --- a/src/management/api_terminal_settings_company_level.go +++ b/src/management/api_terminal_settings_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalSettingsCompanyLevelApi service diff --git a/src/management/api_terminal_settings_merchant_level.go b/src/management/api_terminal_settings_merchant_level.go index ed55ff9b0..25ad83133 100644 --- a/src/management/api_terminal_settings_merchant_level.go +++ b/src/management/api_terminal_settings_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalSettingsMerchantLevelApi service diff --git a/src/management/api_terminal_settings_store_level.go b/src/management/api_terminal_settings_store_level.go index 0988c1c82..364af1d9e 100644 --- a/src/management/api_terminal_settings_store_level.go +++ b/src/management/api_terminal_settings_store_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalSettingsStoreLevelApi service diff --git a/src/management/api_terminal_settings_terminal_level.go b/src/management/api_terminal_settings_terminal_level.go index 52c09d708..d8f476422 100644 --- a/src/management/api_terminal_settings_terminal_level.go +++ b/src/management/api_terminal_settings_terminal_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalSettingsTerminalLevelApi service diff --git a/src/management/api_terminals_terminal_level.go b/src/management/api_terminals_terminal_level.go index d346975a7..8703540b2 100644 --- a/src/management/api_terminals_terminal_level.go +++ b/src/management/api_terminals_terminal_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,8 +14,9 @@ import ( "io/ioutil" "net/http" "net/url" + "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TerminalsTerminalLevelApi service @@ -194,3 +195,108 @@ func (a *TerminalsTerminalLevelApi) ListTerminals(ctx context.Context, r Termina return *res, httpRes, err } + +// All parameters accepted by TerminalsTerminalLevelApi.ReassignTerminal +type TerminalsTerminalLevelApiReassignTerminalInput struct { + terminalId string + terminalReassignmentRequest *TerminalReassignmentRequest +} + +func (r TerminalsTerminalLevelApiReassignTerminalInput) TerminalReassignmentRequest(terminalReassignmentRequest TerminalReassignmentRequest) TerminalsTerminalLevelApiReassignTerminalInput { + r.terminalReassignmentRequest = &terminalReassignmentRequest + return r +} + +/* +Prepare a request for ReassignTerminal +@param terminalId The unique identifier of the payment terminal. +@return TerminalsTerminalLevelApiReassignTerminalInput +*/ +func (a *TerminalsTerminalLevelApi) ReassignTerminalInput(terminalId string) TerminalsTerminalLevelApiReassignTerminalInput { + return TerminalsTerminalLevelApiReassignTerminalInput{ + terminalId: terminalId, + } +} + +/* +ReassignTerminal Reassign a terminal + +Reassigns a payment terminal to a company account, merchant account, merchant account inventory, or a store. + +To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions): +* Management API—Assign Terminal + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r TerminalsTerminalLevelApiReassignTerminalInput - Request parameters, see ReassignTerminalInput +@return *http.Response, error +*/ +func (a *TerminalsTerminalLevelApi) ReassignTerminal(ctx context.Context, r TerminalsTerminalLevelApiReassignTerminalInput) (*http.Response, error) { + var res interface{} + path := "/terminals/{terminalId}/reassign" + path = strings.Replace(path, "{"+"terminalId"+"}", url.PathEscape(common.ParameterValueToString(r.terminalId, "terminalId")), -1) + queryParams := url.Values{} + headerParams := make(map[string]string) + httpRes, err := common.SendAPIRequest( + ctx, + a.Client, + r.terminalReassignmentRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + if httpRes == nil { + return httpRes, err + } + + var serviceError common.RestServiceError + + if httpRes.StatusCode == 400 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return httpRes, decodeError + } + return httpRes, serviceError + } + + return httpRes, err +} diff --git a/src/management/api_users_company_level.go b/src/management/api_users_company_level.go index 35da7465e..da36f198b 100644 --- a/src/management/api_users_company_level.go +++ b/src/management/api_users_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // UsersCompanyLevelApi service diff --git a/src/management/api_users_merchant_level.go b/src/management/api_users_merchant_level.go index 46e6a1340..69ca71fe2 100644 --- a/src/management/api_users_merchant_level.go +++ b/src/management/api_users_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // UsersMerchantLevelApi service diff --git a/src/management/api_webhooks_company_level.go b/src/management/api_webhooks_company_level.go index 34d59af9d..76356b2a0 100644 --- a/src/management/api_webhooks_company_level.go +++ b/src/management/api_webhooks_company_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // WebhooksCompanyLevelApi service diff --git a/src/management/api_webhooks_merchant_level.go b/src/management/api_webhooks_merchant_level.go index 44de9fb29..f3748756d 100644 --- a/src/management/api_webhooks_merchant_level.go +++ b/src/management/api_webhooks_merchant_level.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // WebhooksMerchantLevelApi service diff --git a/src/management/client.go b/src/management/client.go index 7463855c3..adfd87beb 100644 --- a/src/management/client.go +++ b/src/management/client.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -9,10 +9,10 @@ API version: 1 package management import ( - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// APIClient manages communication with the Management API API v1 +// APIClient manages communication with the Management API API v3 // In most cases there should be only one, shared, APIClient. type APIClient struct { common common.Service // Reuse a single struct instead of allocating one for each service on the heap. @@ -37,6 +37,8 @@ type APIClient struct { AllowedOriginsMerchantLevelApi *AllowedOriginsMerchantLevelApi + AndroidFilesCompanyLevelApi *AndroidFilesCompanyLevelApi + ClientKeyCompanyLevelApi *ClientKeyCompanyLevelApi ClientKeyMerchantLevelApi *ClientKeyMerchantLevelApi @@ -94,6 +96,7 @@ func NewAPIClient(client *common.Client) *APIClient { c.AccountStoreLevelApi = (*AccountStoreLevelApi)(&c.common) c.AllowedOriginsCompanyLevelApi = (*AllowedOriginsCompanyLevelApi)(&c.common) c.AllowedOriginsMerchantLevelApi = (*AllowedOriginsMerchantLevelApi)(&c.common) + c.AndroidFilesCompanyLevelApi = (*AndroidFilesCompanyLevelApi)(&c.common) c.ClientKeyCompanyLevelApi = (*ClientKeyCompanyLevelApi)(&c.common) c.ClientKeyMerchantLevelApi = (*ClientKeyMerchantLevelApi)(&c.common) c.MyAPICredentialApi = (*MyAPICredentialApi)(&c.common) diff --git a/src/management/model_additional_commission.go b/src/management/model_additional_commission.go index 296fefc6a..811392cce 100644 --- a/src/management/model_additional_commission.go +++ b/src/management/model_additional_commission.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalCommission type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_additional_settings.go b/src/management/model_additional_settings.go index 03dcb58fa..2e215155f 100644 --- a/src/management/model_additional_settings.go +++ b/src/management/model_additional_settings.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalSettings type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_additional_settings_response.go b/src/management/model_additional_settings_response.go index 0bdcd4c05..91b44797d 100644 --- a/src/management/model_additional_settings_response.go +++ b/src/management/model_additional_settings_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalSettingsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_address.go b/src/management/model_address.go index b954f26d9..d968763f2 100644 --- a/src/management/model_address.go +++ b/src/management/model_address.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_afterpay_touch_info.go b/src/management/model_afterpay_touch_info.go index 8f2251aa4..e6fcee01a 100644 --- a/src/management/model_afterpay_touch_info.go +++ b/src/management/model_afterpay_touch_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AfterpayTouchInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_allowed_origin.go b/src/management/model_allowed_origin.go index d3cddef40..4fc9fe433 100644 --- a/src/management/model_allowed_origin.go +++ b/src/management/model_allowed_origin.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AllowedOrigin type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_allowed_origins_response.go b/src/management/model_allowed_origins_response.go index c38c3c9aa..c839eca1c 100644 --- a/src/management/model_allowed_origins_response.go +++ b/src/management/model_allowed_origins_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AllowedOriginsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_amount.go b/src/management/model_amount.go index eedb31577..810d94bcd 100644 --- a/src/management/model_amount.go +++ b/src/management/model_amount.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_android_app.go b/src/management/model_android_app.go index 67f84b5b7..85f92e4b1 100644 --- a/src/management/model_android_app.go +++ b/src/management/model_android_app.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AndroidApp type satisfies the MappedNullable interface at compile time @@ -21,13 +21,15 @@ var _ common.MappedNullable = &AndroidApp{} type AndroidApp struct { // The description that was provided when uploading the app. The description is not shown on the terminal. Description *string `json:"description,omitempty"` + // The error code of the app. It exists if the status is error or invalid. + ErrorCode *string `json:"errorCode,omitempty"` // The unique identifier of the app. Id string `json:"id"` // The app name that is shown on the terminal. Label *string `json:"label,omitempty"` // The package name that uniquely identifies the Android app. PackageName *string `json:"packageName,omitempty"` - // The status of the app. Possible values: * `processing`: The app is being signed and converted to a format that the terminal can handle. * `error`: Something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: There is something wrong with the APK file of the app. * `ready`: The app has been signed and converted. * `archived`: The app is no longer available. + // The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. Status string `json:"status"` // The version number of the app. VersionCode *int32 `json:"versionCode,omitempty"` @@ -86,6 +88,38 @@ func (o *AndroidApp) SetDescription(v string) { o.Description = &v } +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *AndroidApp) GetErrorCode() string { + if o == nil || common.IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AndroidApp) GetErrorCodeOk() (*string, bool) { + if o == nil || common.IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *AndroidApp) HasErrorCode() bool { + if o != nil && !common.IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *AndroidApp) SetErrorCode(v string) { + o.ErrorCode = &v +} + // GetId returns the Id field value func (o *AndroidApp) GetId() string { if o == nil { @@ -275,6 +309,9 @@ func (o AndroidApp) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } + if !common.IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } toSerialize["id"] = o.Id if !common.IsNil(o.Label) { toSerialize["label"] = o.Label diff --git a/src/management/model_android_apps_response.go b/src/management/model_android_apps_response.go index 8999afc5b..4cfc25f81 100644 --- a/src/management/model_android_apps_response.go +++ b/src/management/model_android_apps_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AndroidAppsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_android_certificate.go b/src/management/model_android_certificate.go index 7710a6086..cff68137e 100644 --- a/src/management/model_android_certificate.go +++ b/src/management/model_android_certificate.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AndroidCertificate type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_android_certificates_response.go b/src/management/model_android_certificates_response.go index ff4e71ce5..48d921831 100644 --- a/src/management/model_android_certificates_response.go +++ b/src/management/model_android_certificates_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AndroidCertificatesResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_api_credential.go b/src/management/model_api_credential.go index 5b2226762..44fda19a8 100644 --- a/src/management/model_api_credential.go +++ b/src/management/model_api_credential.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApiCredential type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_api_credential_links.go b/src/management/model_api_credential_links.go index 3291e998d..cad6c5d94 100644 --- a/src/management/model_api_credential_links.go +++ b/src/management/model_api_credential_links.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApiCredentialLinks type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_apple_pay_info.go b/src/management/model_apple_pay_info.go index 6f4a46db2..562b76467 100644 --- a/src/management/model_apple_pay_info.go +++ b/src/management/model_apple_pay_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApplePayInfo type satisfies the MappedNullable interface at compile time @@ -20,15 +20,16 @@ var _ common.MappedNullable = &ApplePayInfo{} // ApplePayInfo struct for ApplePayInfo type ApplePayInfo struct { // The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). - Domains []string `json:"domains,omitempty"` + Domains []string `json:"domains"` } // NewApplePayInfo instantiates a new ApplePayInfo 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 NewApplePayInfo() *ApplePayInfo { +func NewApplePayInfo(domains []string) *ApplePayInfo { this := ApplePayInfo{} + this.Domains = domains return &this } @@ -40,34 +41,26 @@ func NewApplePayInfoWithDefaults() *ApplePayInfo { return &this } -// GetDomains returns the Domains field value if set, zero value otherwise. +// GetDomains returns the Domains field value func (o *ApplePayInfo) GetDomains() []string { - if o == nil || common.IsNil(o.Domains) { + if o == nil { var ret []string return ret } + return o.Domains } -// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// GetDomainsOk returns a tuple with the Domains field value // and a boolean to check if the value has been set. func (o *ApplePayInfo) GetDomainsOk() ([]string, bool) { - if o == nil || common.IsNil(o.Domains) { + if o == nil { return nil, false } return o.Domains, true } -// HasDomains returns a boolean if a field has been set. -func (o *ApplePayInfo) HasDomains() bool { - if o != nil && !common.IsNil(o.Domains) { - return true - } - - return false -} - -// SetDomains gets a reference to the given []string and assigns it to the Domains field. +// SetDomains sets field value func (o *ApplePayInfo) SetDomains(v []string) { o.Domains = v } @@ -82,9 +75,7 @@ func (o ApplePayInfo) MarshalJSON() ([]byte, error) { func (o ApplePayInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !common.IsNil(o.Domains) { - toSerialize["domains"] = o.Domains - } + toSerialize["domains"] = o.Domains return toSerialize, nil } diff --git a/src/management/model_bcmc_info.go b/src/management/model_bcmc_info.go index 68f211fb4..879750f2f 100644 --- a/src/management/model_bcmc_info.go +++ b/src/management/model_bcmc_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BcmcInfo type satisfies the MappedNullable interface at compile time @@ -20,7 +20,8 @@ var _ common.MappedNullable = &BcmcInfo{} // BcmcInfo struct for BcmcInfo type BcmcInfo struct { // Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. - EnableBcmcMobile *bool `json:"enableBcmcMobile,omitempty"` + EnableBcmcMobile *bool `json:"enableBcmcMobile,omitempty"` + TransactionDescription *TransactionDescriptionInfo `json:"transactionDescription,omitempty"` } // NewBcmcInfo instantiates a new BcmcInfo object @@ -72,6 +73,38 @@ func (o *BcmcInfo) SetEnableBcmcMobile(v bool) { o.EnableBcmcMobile = &v } +// GetTransactionDescription returns the TransactionDescription field value if set, zero value otherwise. +func (o *BcmcInfo) GetTransactionDescription() TransactionDescriptionInfo { + if o == nil || common.IsNil(o.TransactionDescription) { + var ret TransactionDescriptionInfo + return ret + } + return *o.TransactionDescription +} + +// GetTransactionDescriptionOk returns a tuple with the TransactionDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BcmcInfo) GetTransactionDescriptionOk() (*TransactionDescriptionInfo, bool) { + if o == nil || common.IsNil(o.TransactionDescription) { + return nil, false + } + return o.TransactionDescription, true +} + +// HasTransactionDescription returns a boolean if a field has been set. +func (o *BcmcInfo) HasTransactionDescription() bool { + if o != nil && !common.IsNil(o.TransactionDescription) { + return true + } + + return false +} + +// SetTransactionDescription gets a reference to the given TransactionDescriptionInfo and assigns it to the TransactionDescription field. +func (o *BcmcInfo) SetTransactionDescription(v TransactionDescriptionInfo) { + o.TransactionDescription = &v +} + func (o BcmcInfo) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o BcmcInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.EnableBcmcMobile) { toSerialize["enableBcmcMobile"] = o.EnableBcmcMobile } + if !common.IsNil(o.TransactionDescription) { + toSerialize["transactionDescription"] = o.TransactionDescription + } return toSerialize, nil } diff --git a/src/management/model_billing_entities_response.go b/src/management/model_billing_entities_response.go index 0e0a5397a..196b1a16c 100644 --- a/src/management/model_billing_entities_response.go +++ b/src/management/model_billing_entities_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BillingEntitiesResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_billing_entity.go b/src/management/model_billing_entity.go index 94eaa976c..e69812891 100644 --- a/src/management/model_billing_entity.go +++ b/src/management/model_billing_entity.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BillingEntity type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_cardholder_receipt.go b/src/management/model_cardholder_receipt.go index e2a6db14b..507fb5e55 100644 --- a/src/management/model_cardholder_receipt.go +++ b/src/management/model_cardholder_receipt.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CardholderReceipt type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_cartes_bancaires_info.go b/src/management/model_cartes_bancaires_info.go index dbb303bbd..420656775 100644 --- a/src/management/model_cartes_bancaires_info.go +++ b/src/management/model_cartes_bancaires_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CartesBancairesInfo type satisfies the MappedNullable interface at compile time @@ -20,7 +20,8 @@ var _ common.MappedNullable = &CartesBancairesInfo{} // CartesBancairesInfo struct for CartesBancairesInfo type CartesBancairesInfo struct { // Cartes Bancaires SIRET. Format: 14 digits. - Siret string `json:"siret"` + Siret string `json:"siret"` + TransactionDescription *TransactionDescriptionInfo `json:"transactionDescription,omitempty"` } // NewCartesBancairesInfo instantiates a new CartesBancairesInfo object @@ -65,6 +66,38 @@ func (o *CartesBancairesInfo) SetSiret(v string) { o.Siret = v } +// GetTransactionDescription returns the TransactionDescription field value if set, zero value otherwise. +func (o *CartesBancairesInfo) GetTransactionDescription() TransactionDescriptionInfo { + if o == nil || common.IsNil(o.TransactionDescription) { + var ret TransactionDescriptionInfo + return ret + } + return *o.TransactionDescription +} + +// GetTransactionDescriptionOk returns a tuple with the TransactionDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CartesBancairesInfo) GetTransactionDescriptionOk() (*TransactionDescriptionInfo, bool) { + if o == nil || common.IsNil(o.TransactionDescription) { + return nil, false + } + return o.TransactionDescription, true +} + +// HasTransactionDescription returns a boolean if a field has been set. +func (o *CartesBancairesInfo) HasTransactionDescription() bool { + if o != nil && !common.IsNil(o.TransactionDescription) { + return true + } + + return false +} + +// SetTransactionDescription gets a reference to the given TransactionDescriptionInfo and assigns it to the TransactionDescription field. +func (o *CartesBancairesInfo) SetTransactionDescription(v TransactionDescriptionInfo) { + o.TransactionDescription = &v +} + func (o CartesBancairesInfo) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -76,6 +109,9 @@ func (o CartesBancairesInfo) MarshalJSON() ([]byte, error) { func (o CartesBancairesInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["siret"] = o.Siret + if !common.IsNil(o.TransactionDescription) { + toSerialize["transactionDescription"] = o.TransactionDescription + } return toSerialize, nil } diff --git a/src/management/model_clearpay_info.go b/src/management/model_clearpay_info.go index 14458f49d..cc9d7fe39 100644 --- a/src/management/model_clearpay_info.go +++ b/src/management/model_clearpay_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ClearpayInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_commission.go b/src/management/model_commission.go index 09034fc95..f85c595d1 100644 --- a/src/management/model_commission.go +++ b/src/management/model_commission.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Commission type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_company.go b/src/management/model_company.go index 26206d869..a2d6f8a57 100644 --- a/src/management/model_company.go +++ b/src/management/model_company.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Company type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_company_api_credential.go b/src/management/model_company_api_credential.go index e4d31460f..08051493f 100644 --- a/src/management/model_company_api_credential.go +++ b/src/management/model_company_api_credential.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CompanyApiCredential type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_company_links.go b/src/management/model_company_links.go index 277c43183..e2506be7e 100644 --- a/src/management/model_company_links.go +++ b/src/management/model_company_links.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CompanyLinks type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_company_user.go b/src/management/model_company_user.go index ec6dc78f8..11fd41180 100644 --- a/src/management/model_company_user.go +++ b/src/management/model_company_user.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CompanyUser type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_configuration.go b/src/management/model_configuration.go index 04601e660..b95117afb 100644 --- a/src/management/model_configuration.go +++ b/src/management/model_configuration.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Configuration type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_connectivity.go b/src/management/model_connectivity.go index 8f5bdece6..c443e9b79 100644 --- a/src/management/model_connectivity.go +++ b/src/management/model_connectivity.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Connectivity type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_contact.go b/src/management/model_contact.go index 315d232f5..bb161b1fa 100644 --- a/src/management/model_contact.go +++ b/src/management/model_contact.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Contact type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_allowed_origin_request.go b/src/management/model_create_allowed_origin_request.go index 4644bc416..57f15d713 100644 --- a/src/management/model_create_allowed_origin_request.go +++ b/src/management/model_create_allowed_origin_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateAllowedOriginRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_api_credential_response.go b/src/management/model_create_api_credential_response.go index 4ff5e7766..82018384a 100644 --- a/src/management/model_create_api_credential_response.go +++ b/src/management/model_create_api_credential_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateApiCredentialResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_company_api_credential_request.go b/src/management/model_create_company_api_credential_request.go index 59601dd11..5e16fc3bc 100644 --- a/src/management/model_create_company_api_credential_request.go +++ b/src/management/model_create_company_api_credential_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCompanyApiCredentialRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_company_api_credential_response.go b/src/management/model_create_company_api_credential_response.go index 5d221a886..029484271 100644 --- a/src/management/model_create_company_api_credential_response.go +++ b/src/management/model_create_company_api_credential_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCompanyApiCredentialResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_company_user_request.go b/src/management/model_create_company_user_request.go index ceb030748..e33f905df 100644 --- a/src/management/model_create_company_user_request.go +++ b/src/management/model_create_company_user_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCompanyUserRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_company_user_response.go b/src/management/model_create_company_user_response.go index c8a66ea88..8f9068c64 100644 --- a/src/management/model_create_company_user_response.go +++ b/src/management/model_create_company_user_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCompanyUserResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_company_webhook_request.go b/src/management/model_create_company_webhook_request.go index 58d6b2eab..1c778bb0b 100644 --- a/src/management/model_create_company_webhook_request.go +++ b/src/management/model_create_company_webhook_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateCompanyWebhookRequest type satisfies the MappedNullable interface at compile time @@ -32,7 +32,9 @@ type CreateCompanyWebhookRequest struct { CommunicationFormat string `json:"communicationFormat"` // Your description for this webhook configuration. Description *string `json:"description,omitempty"` - // Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + EncryptionProtocol *string `json:"encryptionProtocol,omitempty"` + // Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. FilterMerchantAccountType string `json:"filterMerchantAccountType"` // A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. FilterMerchantAccounts []string `json:"filterMerchantAccounts"` @@ -42,9 +44,7 @@ type CreateCompanyWebhookRequest struct { Password *string `json:"password,omitempty"` // Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. PopulateSoapActionHeader *bool `json:"populateSoapActionHeader,omitempty"` - // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - SslVersion *string `json:"sslVersion,omitempty"` - // The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + // The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). Type string `json:"type"` // Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. Url string `json:"url"` @@ -283,6 +283,38 @@ func (o *CreateCompanyWebhookRequest) SetDescription(v string) { o.Description = &v } +// GetEncryptionProtocol returns the EncryptionProtocol field value if set, zero value otherwise. +func (o *CreateCompanyWebhookRequest) GetEncryptionProtocol() string { + if o == nil || common.IsNil(o.EncryptionProtocol) { + var ret string + return ret + } + return *o.EncryptionProtocol +} + +// GetEncryptionProtocolOk returns a tuple with the EncryptionProtocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCompanyWebhookRequest) GetEncryptionProtocolOk() (*string, bool) { + if o == nil || common.IsNil(o.EncryptionProtocol) { + return nil, false + } + return o.EncryptionProtocol, true +} + +// HasEncryptionProtocol returns a boolean if a field has been set. +func (o *CreateCompanyWebhookRequest) HasEncryptionProtocol() bool { + if o != nil && !common.IsNil(o.EncryptionProtocol) { + return true + } + + return false +} + +// SetEncryptionProtocol gets a reference to the given string and assigns it to the EncryptionProtocol field. +func (o *CreateCompanyWebhookRequest) SetEncryptionProtocol(v string) { + o.EncryptionProtocol = &v +} + // GetFilterMerchantAccountType returns the FilterMerchantAccountType field value func (o *CreateCompanyWebhookRequest) GetFilterMerchantAccountType() string { if o == nil { @@ -427,38 +459,6 @@ func (o *CreateCompanyWebhookRequest) SetPopulateSoapActionHeader(v bool) { o.PopulateSoapActionHeader = &v } -// GetSslVersion returns the SslVersion field value if set, zero value otherwise. -func (o *CreateCompanyWebhookRequest) GetSslVersion() string { - if o == nil || common.IsNil(o.SslVersion) { - var ret string - return ret - } - return *o.SslVersion -} - -// GetSslVersionOk returns a tuple with the SslVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateCompanyWebhookRequest) GetSslVersionOk() (*string, bool) { - if o == nil || common.IsNil(o.SslVersion) { - return nil, false - } - return o.SslVersion, true -} - -// HasSslVersion returns a boolean if a field has been set. -func (o *CreateCompanyWebhookRequest) HasSslVersion() bool { - if o != nil && !common.IsNil(o.SslVersion) { - return true - } - - return false -} - -// SetSslVersion gets a reference to the given string and assigns it to the SslVersion field. -func (o *CreateCompanyWebhookRequest) SetSslVersion(v string) { - o.SslVersion = &v -} - // GetType returns the Type field value func (o *CreateCompanyWebhookRequest) GetType() string { if o == nil { @@ -566,6 +566,9 @@ func (o CreateCompanyWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } + if !common.IsNil(o.EncryptionProtocol) { + toSerialize["encryptionProtocol"] = o.EncryptionProtocol + } toSerialize["filterMerchantAccountType"] = o.FilterMerchantAccountType toSerialize["filterMerchantAccounts"] = o.FilterMerchantAccounts if !common.IsNil(o.NetworkType) { @@ -577,9 +580,6 @@ func (o CreateCompanyWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.PopulateSoapActionHeader) { toSerialize["populateSoapActionHeader"] = o.PopulateSoapActionHeader } - if !common.IsNil(o.SslVersion) { - toSerialize["sslVersion"] = o.SslVersion - } toSerialize["type"] = o.Type toSerialize["url"] = o.Url if !common.IsNil(o.Username) { @@ -633,28 +633,28 @@ func (o *CreateCompanyWebhookRequest) isValidCommunicationFormat() bool { } return false } -func (o *CreateCompanyWebhookRequest) isValidFilterMerchantAccountType() bool { - var allowedEnumValues = []string{"allAccounts", "excludeAccounts", "includeAccounts"} +func (o *CreateCompanyWebhookRequest) isValidEncryptionProtocol() bool { + var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} for _, allowed := range allowedEnumValues { - if o.GetFilterMerchantAccountType() == allowed { + if o.GetEncryptionProtocol() == allowed { return true } } return false } -func (o *CreateCompanyWebhookRequest) isValidNetworkType() bool { - var allowedEnumValues = []string{"local", "public"} +func (o *CreateCompanyWebhookRequest) isValidFilterMerchantAccountType() bool { + var allowedEnumValues = []string{"allAccounts", "excludeAccounts", "includeAccounts"} for _, allowed := range allowedEnumValues { - if o.GetNetworkType() == allowed { + if o.GetFilterMerchantAccountType() == allowed { return true } } return false } -func (o *CreateCompanyWebhookRequest) isValidSslVersion() bool { - var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} +func (o *CreateCompanyWebhookRequest) isValidNetworkType() bool { + var allowedEnumValues = []string{"local", "public"} for _, allowed := range allowedEnumValues { - if o.GetSslVersion() == allowed { + if o.GetNetworkType() == allowed { return true } } diff --git a/src/management/model_create_merchant_api_credential_request.go b/src/management/model_create_merchant_api_credential_request.go index f6979342f..9861c15dd 100644 --- a/src/management/model_create_merchant_api_credential_request.go +++ b/src/management/model_create_merchant_api_credential_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateMerchantApiCredentialRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_merchant_request.go b/src/management/model_create_merchant_request.go index cf49f00c4..cf5c0db7d 100644 --- a/src/management/model_create_merchant_request.go +++ b/src/management/model_create_merchant_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateMerchantRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_merchant_response.go b/src/management/model_create_merchant_response.go index e9f94c4ca..6f0e4706a 100644 --- a/src/management/model_create_merchant_response.go +++ b/src/management/model_create_merchant_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateMerchantResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_merchant_user_request.go b/src/management/model_create_merchant_user_request.go index 4c4e5c9a9..a726be7af 100644 --- a/src/management/model_create_merchant_user_request.go +++ b/src/management/model_create_merchant_user_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateMerchantUserRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_create_merchant_webhook_request.go b/src/management/model_create_merchant_webhook_request.go index e07ec5633..90c5207fb 100644 --- a/src/management/model_create_merchant_webhook_request.go +++ b/src/management/model_create_merchant_webhook_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateMerchantWebhookRequest type satisfies the MappedNullable interface at compile time @@ -32,15 +32,15 @@ type CreateMerchantWebhookRequest struct { CommunicationFormat string `json:"communicationFormat"` // Your description for this webhook configuration. Description *string `json:"description,omitempty"` + // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + EncryptionProtocol *string `json:"encryptionProtocol,omitempty"` // Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. NetworkType *string `json:"networkType,omitempty"` // Password to access the webhook URL. Password *string `json:"password,omitempty"` // Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. PopulateSoapActionHeader *bool `json:"populateSoapActionHeader,omitempty"` - // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - SslVersion *string `json:"sslVersion,omitempty"` - // The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + // The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). Type string `json:"type"` // Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. Url string `json:"url"` @@ -277,6 +277,38 @@ func (o *CreateMerchantWebhookRequest) SetDescription(v string) { o.Description = &v } +// GetEncryptionProtocol returns the EncryptionProtocol field value if set, zero value otherwise. +func (o *CreateMerchantWebhookRequest) GetEncryptionProtocol() string { + if o == nil || common.IsNil(o.EncryptionProtocol) { + var ret string + return ret + } + return *o.EncryptionProtocol +} + +// GetEncryptionProtocolOk returns a tuple with the EncryptionProtocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateMerchantWebhookRequest) GetEncryptionProtocolOk() (*string, bool) { + if o == nil || common.IsNil(o.EncryptionProtocol) { + return nil, false + } + return o.EncryptionProtocol, true +} + +// HasEncryptionProtocol returns a boolean if a field has been set. +func (o *CreateMerchantWebhookRequest) HasEncryptionProtocol() bool { + if o != nil && !common.IsNil(o.EncryptionProtocol) { + return true + } + + return false +} + +// SetEncryptionProtocol gets a reference to the given string and assigns it to the EncryptionProtocol field. +func (o *CreateMerchantWebhookRequest) SetEncryptionProtocol(v string) { + o.EncryptionProtocol = &v +} + // GetNetworkType returns the NetworkType field value if set, zero value otherwise. func (o *CreateMerchantWebhookRequest) GetNetworkType() string { if o == nil || common.IsNil(o.NetworkType) { @@ -373,38 +405,6 @@ func (o *CreateMerchantWebhookRequest) SetPopulateSoapActionHeader(v bool) { o.PopulateSoapActionHeader = &v } -// GetSslVersion returns the SslVersion field value if set, zero value otherwise. -func (o *CreateMerchantWebhookRequest) GetSslVersion() string { - if o == nil || common.IsNil(o.SslVersion) { - var ret string - return ret - } - return *o.SslVersion -} - -// GetSslVersionOk returns a tuple with the SslVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateMerchantWebhookRequest) GetSslVersionOk() (*string, bool) { - if o == nil || common.IsNil(o.SslVersion) { - return nil, false - } - return o.SslVersion, true -} - -// HasSslVersion returns a boolean if a field has been set. -func (o *CreateMerchantWebhookRequest) HasSslVersion() bool { - if o != nil && !common.IsNil(o.SslVersion) { - return true - } - - return false -} - -// SetSslVersion gets a reference to the given string and assigns it to the SslVersion field. -func (o *CreateMerchantWebhookRequest) SetSslVersion(v string) { - o.SslVersion = &v -} - // GetType returns the Type field value func (o *CreateMerchantWebhookRequest) GetType() string { if o == nil { @@ -512,6 +512,9 @@ func (o CreateMerchantWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } + if !common.IsNil(o.EncryptionProtocol) { + toSerialize["encryptionProtocol"] = o.EncryptionProtocol + } if !common.IsNil(o.NetworkType) { toSerialize["networkType"] = o.NetworkType } @@ -521,9 +524,6 @@ func (o CreateMerchantWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.PopulateSoapActionHeader) { toSerialize["populateSoapActionHeader"] = o.PopulateSoapActionHeader } - if !common.IsNil(o.SslVersion) { - toSerialize["sslVersion"] = o.SslVersion - } toSerialize["type"] = o.Type toSerialize["url"] = o.Url if !common.IsNil(o.Username) { @@ -577,19 +577,19 @@ func (o *CreateMerchantWebhookRequest) isValidCommunicationFormat() bool { } return false } -func (o *CreateMerchantWebhookRequest) isValidNetworkType() bool { - var allowedEnumValues = []string{"local", "public"} +func (o *CreateMerchantWebhookRequest) isValidEncryptionProtocol() bool { + var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} for _, allowed := range allowedEnumValues { - if o.GetNetworkType() == allowed { + if o.GetEncryptionProtocol() == allowed { return true } } return false } -func (o *CreateMerchantWebhookRequest) isValidSslVersion() bool { - var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} +func (o *CreateMerchantWebhookRequest) isValidNetworkType() bool { + var allowedEnumValues = []string{"local", "public"} for _, allowed := range allowedEnumValues { - if o.GetSslVersion() == allowed { + if o.GetNetworkType() == allowed { return true } } diff --git a/src/management/model_create_user_response.go b/src/management/model_create_user_response.go index 7da1a31f3..0ef628695 100644 --- a/src/management/model_create_user_response.go +++ b/src/management/model_create_user_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreateUserResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_currency.go b/src/management/model_currency.go index fab2e0ef9..2dd47039c 100644 --- a/src/management/model_currency.go +++ b/src/management/model_currency.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Currency type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_custom_notification.go b/src/management/model_custom_notification.go index 405d2f79d..3ece89bec 100644 --- a/src/management/model_custom_notification.go +++ b/src/management/model_custom_notification.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CustomNotification type satisfies the MappedNullable interface at compile time @@ -21,7 +21,7 @@ var _ common.MappedNullable = &CustomNotification{} // CustomNotification struct for CustomNotification type CustomNotification struct { Amount *Amount `json:"amount,omitempty"` - // The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **DEACTIVATE_RECURRING** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + // The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** EventCode *string `json:"eventCode,omitempty"` // The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. EventDate *time.Time `json:"eventDate,omitempty"` diff --git a/src/management/model_data_center.go b/src/management/model_data_center.go index 5e6572295..efaf16515 100644 --- a/src/management/model_data_center.go +++ b/src/management/model_data_center.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DataCenter type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_event_url.go b/src/management/model_event_url.go index 352408048..586d90515 100644 --- a/src/management/model_event_url.go +++ b/src/management/model_event_url.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the EventUrl type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_external_terminal_action.go b/src/management/model_external_terminal_action.go index ee69edd49..d7bfef437 100644 --- a/src/management/model_external_terminal_action.go +++ b/src/management/model_external_terminal_action.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ExternalTerminalAction type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_file.go b/src/management/model_file.go index ac12f2e74..35982aae8 100644 --- a/src/management/model_file.go +++ b/src/management/model_file.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the File type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_generate_api_key_response.go b/src/management/model_generate_api_key_response.go index 24e8bc120..469010c97 100644 --- a/src/management/model_generate_api_key_response.go +++ b/src/management/model_generate_api_key_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GenerateApiKeyResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_generate_client_key_response.go b/src/management/model_generate_client_key_response.go index 5b5a25e28..7f28ae0b1 100644 --- a/src/management/model_generate_client_key_response.go +++ b/src/management/model_generate_client_key_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GenerateClientKeyResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_generate_hmac_key_response.go b/src/management/model_generate_hmac_key_response.go index 49f74aa93..8e8903b19 100644 --- a/src/management/model_generate_hmac_key_response.go +++ b/src/management/model_generate_hmac_key_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GenerateHmacKeyResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_generic_pm_with_tdi_info.go b/src/management/model_generic_pm_with_tdi_info.go new file mode 100644 index 000000000..d8966a4c9 --- /dev/null +++ b/src/management/model_generic_pm_with_tdi_info.go @@ -0,0 +1,124 @@ +/* +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 GenericPmWithTdiInfo type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &GenericPmWithTdiInfo{} + +// GenericPmWithTdiInfo struct for GenericPmWithTdiInfo +type GenericPmWithTdiInfo struct { + TransactionDescription *TransactionDescriptionInfo `json:"transactionDescription,omitempty"` +} + +// NewGenericPmWithTdiInfo instantiates a new GenericPmWithTdiInfo 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 NewGenericPmWithTdiInfo() *GenericPmWithTdiInfo { + this := GenericPmWithTdiInfo{} + return &this +} + +// NewGenericPmWithTdiInfoWithDefaults instantiates a new GenericPmWithTdiInfo 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 NewGenericPmWithTdiInfoWithDefaults() *GenericPmWithTdiInfo { + this := GenericPmWithTdiInfo{} + return &this +} + +// GetTransactionDescription returns the TransactionDescription field value if set, zero value otherwise. +func (o *GenericPmWithTdiInfo) GetTransactionDescription() TransactionDescriptionInfo { + if o == nil || common.IsNil(o.TransactionDescription) { + var ret TransactionDescriptionInfo + return ret + } + return *o.TransactionDescription +} + +// GetTransactionDescriptionOk returns a tuple with the TransactionDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericPmWithTdiInfo) GetTransactionDescriptionOk() (*TransactionDescriptionInfo, bool) { + if o == nil || common.IsNil(o.TransactionDescription) { + return nil, false + } + return o.TransactionDescription, true +} + +// HasTransactionDescription returns a boolean if a field has been set. +func (o *GenericPmWithTdiInfo) HasTransactionDescription() bool { + if o != nil && !common.IsNil(o.TransactionDescription) { + return true + } + + return false +} + +// SetTransactionDescription gets a reference to the given TransactionDescriptionInfo and assigns it to the TransactionDescription field. +func (o *GenericPmWithTdiInfo) SetTransactionDescription(v TransactionDescriptionInfo) { + o.TransactionDescription = &v +} + +func (o GenericPmWithTdiInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenericPmWithTdiInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.TransactionDescription) { + toSerialize["transactionDescription"] = o.TransactionDescription + } + return toSerialize, nil +} + +type NullableGenericPmWithTdiInfo struct { + value *GenericPmWithTdiInfo + isSet bool +} + +func (v NullableGenericPmWithTdiInfo) Get() *GenericPmWithTdiInfo { + return v.value +} + +func (v *NullableGenericPmWithTdiInfo) Set(val *GenericPmWithTdiInfo) { + v.value = val + v.isSet = true +} + +func (v NullableGenericPmWithTdiInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableGenericPmWithTdiInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenericPmWithTdiInfo(val *GenericPmWithTdiInfo) *NullableGenericPmWithTdiInfo { + return &NullableGenericPmWithTdiInfo{value: val, isSet: true} +} + +func (v NullableGenericPmWithTdiInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenericPmWithTdiInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_giro_pay_info.go b/src/management/model_giro_pay_info.go index 52a1a79fc..ddcc67ef7 100644 --- a/src/management/model_giro_pay_info.go +++ b/src/management/model_giro_pay_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GiroPayInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_google_pay_info.go b/src/management/model_google_pay_info.go index 634e40f56..43df24af0 100644 --- a/src/management/model_google_pay_info.go +++ b/src/management/model_google_pay_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GooglePayInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_gratuity.go b/src/management/model_gratuity.go index 5caa00a88..16a174e30 100644 --- a/src/management/model_gratuity.go +++ b/src/management/model_gratuity.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Gratuity type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_hardware.go b/src/management/model_hardware.go index 63aed16b6..8fa24ffd3 100644 --- a/src/management/model_hardware.go +++ b/src/management/model_hardware.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Hardware type satisfies the MappedNullable interface at compile time @@ -21,7 +21,7 @@ var _ common.MappedNullable = &Hardware{} type Hardware struct { // The brightness of the display when the terminal is being used, expressed as a percentage. DisplayMaximumBackLight *int32 `json:"displayMaximumBackLight,omitempty"` - // The hour (0 - 23) in which the device will reboot, reboot will happen in the timezone of the device + // The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal Minimum vaoue: 0, maximum value: 23. RestartHour *int32 `json:"restartHour,omitempty"` } diff --git a/src/management/model_id_name.go b/src/management/model_id_name.go index dcf25c823..2d5b626a9 100644 --- a/src/management/model_id_name.go +++ b/src/management/model_id_name.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IdName type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_install_android_app_details.go b/src/management/model_install_android_app_details.go index 381ea5d23..9082246ca 100644 --- a/src/management/model_install_android_app_details.go +++ b/src/management/model_install_android_app_details.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InstallAndroidAppDetails type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_install_android_certificate_details.go b/src/management/model_install_android_certificate_details.go index 81708ac3c..283bc37f1 100644 --- a/src/management/model_install_android_certificate_details.go +++ b/src/management/model_install_android_certificate_details.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InstallAndroidCertificateDetails type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_invalid_field.go b/src/management/model_invalid_field.go index bfa24bc57..568646a6b 100644 --- a/src/management/model_invalid_field.go +++ b/src/management/model_invalid_field.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InvalidField type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_invalid_field_wrapper.go b/src/management/model_invalid_field_wrapper.go deleted file mode 100644 index 2362504b2..000000000 --- a/src/management/model_invalid_field_wrapper.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -Management API - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package management - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v7/src/common" -) - -// checks if the InvalidFieldWrapper type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &InvalidFieldWrapper{} - -// InvalidFieldWrapper struct for InvalidFieldWrapper -type InvalidFieldWrapper struct { - InvalidField *InvalidField `json:"InvalidField,omitempty"` -} - -// NewInvalidFieldWrapper instantiates a new InvalidFieldWrapper 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 NewInvalidFieldWrapper() *InvalidFieldWrapper { - this := InvalidFieldWrapper{} - return &this -} - -// NewInvalidFieldWrapperWithDefaults instantiates a new InvalidFieldWrapper 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 NewInvalidFieldWrapperWithDefaults() *InvalidFieldWrapper { - this := InvalidFieldWrapper{} - return &this -} - -// GetInvalidField returns the InvalidField field value if set, zero value otherwise. -func (o *InvalidFieldWrapper) GetInvalidField() InvalidField { - if o == nil || common.IsNil(o.InvalidField) { - var ret InvalidField - return ret - } - return *o.InvalidField -} - -// GetInvalidFieldOk returns a tuple with the InvalidField field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InvalidFieldWrapper) GetInvalidFieldOk() (*InvalidField, bool) { - if o == nil || common.IsNil(o.InvalidField) { - return nil, false - } - return o.InvalidField, true -} - -// HasInvalidField returns a boolean if a field has been set. -func (o *InvalidFieldWrapper) HasInvalidField() bool { - if o != nil && !common.IsNil(o.InvalidField) { - return true - } - - return false -} - -// SetInvalidField gets a reference to the given InvalidField and assigns it to the InvalidField field. -func (o *InvalidFieldWrapper) SetInvalidField(v InvalidField) { - o.InvalidField = &v -} - -func (o InvalidFieldWrapper) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o InvalidFieldWrapper) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.InvalidField) { - toSerialize["InvalidField"] = o.InvalidField - } - return toSerialize, nil -} - -type NullableInvalidFieldWrapper struct { - value *InvalidFieldWrapper - isSet bool -} - -func (v NullableInvalidFieldWrapper) Get() *InvalidFieldWrapper { - return v.value -} - -func (v *NullableInvalidFieldWrapper) Set(val *InvalidFieldWrapper) { - v.value = val - v.isSet = true -} - -func (v NullableInvalidFieldWrapper) IsSet() bool { - return v.isSet -} - -func (v *NullableInvalidFieldWrapper) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInvalidFieldWrapper(val *InvalidFieldWrapper) *NullableInvalidFieldWrapper { - return &NullableInvalidFieldWrapper{value: val, isSet: true} -} - -func (v NullableInvalidFieldWrapper) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInvalidFieldWrapper) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/src/management/model_json_object.go b/src/management/model_json_object.go index 6a9c9f870..cc697e4d9 100644 --- a/src/management/model_json_object.go +++ b/src/management/model_json_object.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the JSONObject type satisfies the MappedNullable interface at compile time @@ -19,8 +19,8 @@ var _ common.MappedNullable = &JSONObject{} // JSONObject struct for JSONObject type JSONObject struct { - Paths []JSONPathWrapper `json:"paths,omitempty"` - RootPath *JSONPath `json:"rootPath,omitempty"` + Paths []JSONPath `json:"paths,omitempty"` + RootPath *JSONPath `json:"rootPath,omitempty"` } // NewJSONObject instantiates a new JSONObject object @@ -41,9 +41,9 @@ func NewJSONObjectWithDefaults() *JSONObject { } // GetPaths returns the Paths field value if set, zero value otherwise. -func (o *JSONObject) GetPaths() []JSONPathWrapper { +func (o *JSONObject) GetPaths() []JSONPath { if o == nil || common.IsNil(o.Paths) { - var ret []JSONPathWrapper + var ret []JSONPath return ret } return o.Paths @@ -51,7 +51,7 @@ func (o *JSONObject) GetPaths() []JSONPathWrapper { // GetPathsOk returns a tuple with the Paths field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *JSONObject) GetPathsOk() ([]JSONPathWrapper, bool) { +func (o *JSONObject) GetPathsOk() ([]JSONPath, bool) { if o == nil || common.IsNil(o.Paths) { return nil, false } @@ -67,8 +67,8 @@ func (o *JSONObject) HasPaths() bool { return false } -// SetPaths gets a reference to the given []JSONPathWrapper and assigns it to the Paths field. -func (o *JSONObject) SetPaths(v []JSONPathWrapper) { +// SetPaths gets a reference to the given []JSONPath and assigns it to the Paths field. +func (o *JSONObject) SetPaths(v []JSONPath) { o.Paths = v } diff --git a/src/management/model_json_path.go b/src/management/model_json_path.go index 7010ef508..118a64f02 100644 --- a/src/management/model_json_path.go +++ b/src/management/model_json_path.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the JSONPath type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_json_path_wrapper.go b/src/management/model_json_path_wrapper.go deleted file mode 100644 index cf529b6cf..000000000 --- a/src/management/model_json_path_wrapper.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -Management API - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package management - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v7/src/common" -) - -// checks if the JSONPathWrapper type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &JSONPathWrapper{} - -// JSONPathWrapper struct for JSONPathWrapper -type JSONPathWrapper struct { - JSONPath *JSONPath `json:"JSONPath,omitempty"` -} - -// NewJSONPathWrapper instantiates a new JSONPathWrapper 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 NewJSONPathWrapper() *JSONPathWrapper { - this := JSONPathWrapper{} - return &this -} - -// NewJSONPathWrapperWithDefaults instantiates a new JSONPathWrapper 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 NewJSONPathWrapperWithDefaults() *JSONPathWrapper { - this := JSONPathWrapper{} - return &this -} - -// GetJSONPath returns the JSONPath field value if set, zero value otherwise. -func (o *JSONPathWrapper) GetJSONPath() JSONPath { - if o == nil || common.IsNil(o.JSONPath) { - var ret JSONPath - return ret - } - return *o.JSONPath -} - -// GetJSONPathOk returns a tuple with the JSONPath field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *JSONPathWrapper) GetJSONPathOk() (*JSONPath, bool) { - if o == nil || common.IsNil(o.JSONPath) { - return nil, false - } - return o.JSONPath, true -} - -// HasJSONPath returns a boolean if a field has been set. -func (o *JSONPathWrapper) HasJSONPath() bool { - if o != nil && !common.IsNil(o.JSONPath) { - return true - } - - return false -} - -// SetJSONPath gets a reference to the given JSONPath and assigns it to the JSONPath field. -func (o *JSONPathWrapper) SetJSONPath(v JSONPath) { - o.JSONPath = &v -} - -func (o JSONPathWrapper) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o JSONPathWrapper) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.JSONPath) { - toSerialize["JSONPath"] = o.JSONPath - } - return toSerialize, nil -} - -type NullableJSONPathWrapper struct { - value *JSONPathWrapper - isSet bool -} - -func (v NullableJSONPathWrapper) Get() *JSONPathWrapper { - return v.value -} - -func (v *NullableJSONPathWrapper) Set(val *JSONPathWrapper) { - v.value = val - v.isSet = true -} - -func (v NullableJSONPathWrapper) IsSet() bool { - return v.isSet -} - -func (v *NullableJSONPathWrapper) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableJSONPathWrapper(val *JSONPathWrapper) *NullableJSONPathWrapper { - return &NullableJSONPathWrapper{value: val, isSet: true} -} - -func (v NullableJSONPathWrapper) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableJSONPathWrapper) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/src/management/model_key.go b/src/management/model_key.go index 52d72a7ac..9d576c691 100644 --- a/src/management/model_key.go +++ b/src/management/model_key.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Key type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_klarna_info.go b/src/management/model_klarna_info.go index 1b03d25ca..75d4ebed0 100644 --- a/src/management/model_klarna_info.go +++ b/src/management/model_klarna_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the KlarnaInfo type satisfies the MappedNullable interface at compile time @@ -24,7 +24,7 @@ type KlarnaInfo struct { // The email address for disputes. DisputeEmail string `json:"disputeEmail"` // The region of operation. For example, **NA**, **EU**, **CH**, **AU**. - Region *string `json:"region,omitempty"` + Region string `json:"region"` // The email address of merchant support. SupportEmail string `json:"supportEmail"` } @@ -33,9 +33,10 @@ type KlarnaInfo 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 NewKlarnaInfo(disputeEmail string, supportEmail string) *KlarnaInfo { +func NewKlarnaInfo(disputeEmail string, region string, supportEmail string) *KlarnaInfo { this := KlarnaInfo{} this.DisputeEmail = disputeEmail + this.Region = region this.SupportEmail = supportEmail return &this } @@ -104,36 +105,28 @@ func (o *KlarnaInfo) SetDisputeEmail(v string) { o.DisputeEmail = v } -// GetRegion returns the Region field value if set, zero value otherwise. +// GetRegion returns the Region field value func (o *KlarnaInfo) GetRegion() string { - if o == nil || common.IsNil(o.Region) { + if o == nil { var ret string return ret } - return *o.Region + + return o.Region } -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. func (o *KlarnaInfo) GetRegionOk() (*string, bool) { - if o == nil || common.IsNil(o.Region) { + if o == nil { return nil, false } - return o.Region, true -} - -// HasRegion returns a boolean if a field has been set. -func (o *KlarnaInfo) HasRegion() bool { - if o != nil && !common.IsNil(o.Region) { - return true - } - - return false + return &o.Region, true } -// SetRegion gets a reference to the given string and assigns it to the Region field. +// SetRegion sets field value func (o *KlarnaInfo) SetRegion(v string) { - o.Region = &v + o.Region = v } // GetSupportEmail returns the SupportEmail field value @@ -174,9 +167,7 @@ func (o KlarnaInfo) ToMap() (map[string]interface{}, error) { toSerialize["autoCapture"] = o.AutoCapture } toSerialize["disputeEmail"] = o.DisputeEmail - if !common.IsNil(o.Region) { - toSerialize["region"] = o.Region - } + toSerialize["region"] = o.Region toSerialize["supportEmail"] = o.SupportEmail return toSerialize, nil } diff --git a/src/management/model_links.go b/src/management/model_links.go index a0448f902..5fc757fc9 100644 --- a/src/management/model_links.go +++ b/src/management/model_links.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Links type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_links_element.go b/src/management/model_links_element.go index bbb2175c5..f35d84a54 100644 --- a/src/management/model_links_element.go +++ b/src/management/model_links_element.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the LinksElement type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_company_api_credentials_response.go b/src/management/model_list_company_api_credentials_response.go index cdd5a4b9d..8cfac6aca 100644 --- a/src/management/model_list_company_api_credentials_response.go +++ b/src/management/model_list_company_api_credentials_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListCompanyApiCredentialsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_company_response.go b/src/management/model_list_company_response.go index f272db7ab..a18b2d440 100644 --- a/src/management/model_list_company_response.go +++ b/src/management/model_list_company_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListCompanyResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_company_users_response.go b/src/management/model_list_company_users_response.go index 7b1335998..f0383a94f 100644 --- a/src/management/model_list_company_users_response.go +++ b/src/management/model_list_company_users_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListCompanyUsersResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_external_terminal_actions_response.go b/src/management/model_list_external_terminal_actions_response.go index 3c0940a41..58c4b1c4e 100644 --- a/src/management/model_list_external_terminal_actions_response.go +++ b/src/management/model_list_external_terminal_actions_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListExternalTerminalActionsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_merchant_api_credentials_response.go b/src/management/model_list_merchant_api_credentials_response.go index b9e819de8..6b4a5c177 100644 --- a/src/management/model_list_merchant_api_credentials_response.go +++ b/src/management/model_list_merchant_api_credentials_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListMerchantApiCredentialsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_merchant_response.go b/src/management/model_list_merchant_response.go index 52b6eacdc..7af9b9368 100644 --- a/src/management/model_list_merchant_response.go +++ b/src/management/model_list_merchant_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListMerchantResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_merchant_users_response.go b/src/management/model_list_merchant_users_response.go index c916dbb02..84a683e69 100644 --- a/src/management/model_list_merchant_users_response.go +++ b/src/management/model_list_merchant_users_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListMerchantUsersResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_stores_response.go b/src/management/model_list_stores_response.go index a684369ce..590a84833 100644 --- a/src/management/model_list_stores_response.go +++ b/src/management/model_list_stores_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListStoresResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_list_terminals_response.go b/src/management/model_list_terminals_response.go index 316933217..9e0f2fd4c 100644 --- a/src/management/model_list_terminals_response.go +++ b/src/management/model_list_terminals_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListTerminalsResponse type satisfies the MappedNullable interface at compile time @@ -20,7 +20,7 @@ var _ common.MappedNullable = &ListTerminalsResponse{} // ListTerminalsResponse struct for ListTerminalsResponse type ListTerminalsResponse struct { Links *PaginationLinks `json:"_links,omitempty"` - // The list of terminals. + // The list of terminals and their details. Data []Terminal `json:"data,omitempty"` // Total number of items. ItemsTotal int32 `json:"itemsTotal"` diff --git a/src/management/model_list_webhooks_response.go b/src/management/model_list_webhooks_response.go index 311bf9c57..df9598790 100644 --- a/src/management/model_list_webhooks_response.go +++ b/src/management/model_list_webhooks_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ListWebhooksResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_localization.go b/src/management/model_localization.go new file mode 100644 index 000000000..7b55d9e6a --- /dev/null +++ b/src/management/model_localization.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 Localization type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &Localization{} + +// Localization struct for Localization +type Localization struct { + // Language of the terminal. + Language *string `json:"language,omitempty"` +} + +// NewLocalization instantiates a new Localization 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 NewLocalization() *Localization { + this := Localization{} + return &this +} + +// NewLocalizationWithDefaults instantiates a new Localization 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 NewLocalizationWithDefaults() *Localization { + this := Localization{} + return &this +} + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *Localization) GetLanguage() string { + if o == nil || common.IsNil(o.Language) { + var ret string + return ret + } + return *o.Language +} + +// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Localization) GetLanguageOk() (*string, bool) { + if o == nil || common.IsNil(o.Language) { + return nil, false + } + return o.Language, true +} + +// HasLanguage returns a boolean if a field has been set. +func (o *Localization) HasLanguage() bool { + if o != nil && !common.IsNil(o.Language) { + return true + } + + return false +} + +// SetLanguage gets a reference to the given string and assigns it to the Language field. +func (o *Localization) SetLanguage(v string) { + o.Language = &v +} + +func (o Localization) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Localization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Language) { + toSerialize["language"] = o.Language + } + return toSerialize, nil +} + +type NullableLocalization struct { + value *Localization + isSet bool +} + +func (v NullableLocalization) Get() *Localization { + return v.value +} + +func (v *NullableLocalization) Set(val *Localization) { + v.value = val + v.isSet = true +} + +func (v NullableLocalization) IsSet() bool { + return v.isSet +} + +func (v *NullableLocalization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocalization(val *Localization) *NullableLocalization { + return &NullableLocalization{value: val, isSet: true} +} + +func (v NullableLocalization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocalization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_logo.go b/src/management/model_logo.go index 224430999..daacaa18e 100644 --- a/src/management/model_logo.go +++ b/src/management/model_logo.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Logo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_me_api_credential.go b/src/management/model_me_api_credential.go index 6c7e78145..a69f0431b 100644 --- a/src/management/model_me_api_credential.go +++ b/src/management/model_me_api_credential.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MeApiCredential type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_meal_voucher_fr_info.go b/src/management/model_meal_voucher_fr_info.go index 745edfd65..29a159c12 100644 --- a/src/management/model_meal_voucher_fr_info.go +++ b/src/management/model_meal_voucher_fr_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MealVoucherFRInfo type satisfies the MappedNullable interface at compile time @@ -23,7 +23,7 @@ type MealVoucherFRInfo struct { ConecsId string `json:"conecsId"` // Meal Voucher siret. Format: 14 digits. Siret string `json:"siret"` - // The list of additional payment methods. Allowed values: **mealVoucher_FR_endenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + // The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. SubTypes []string `json:"subTypes"` } diff --git a/src/management/model_merchant.go b/src/management/model_merchant.go index 16ae12bdf..773c69842 100644 --- a/src/management/model_merchant.go +++ b/src/management/model_merchant.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Merchant type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_merchant_links.go b/src/management/model_merchant_links.go index 6eada2b6a..6713f29c9 100644 --- a/src/management/model_merchant_links.go +++ b/src/management/model_merchant_links.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantLinks type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_minor_units_monetary_value.go b/src/management/model_minor_units_monetary_value.go index a1afe3064..2c121263f 100644 --- a/src/management/model_minor_units_monetary_value.go +++ b/src/management/model_minor_units_monetary_value.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MinorUnitsMonetaryValue type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_name.go b/src/management/model_name.go index 7fe34fb64..914062890 100644 --- a/src/management/model_name.go +++ b/src/management/model_name.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_name2.go b/src/management/model_name2.go index f0b5a4817..74c5e6172 100644 --- a/src/management/model_name2.go +++ b/src/management/model_name2.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name2 type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_nexo.go b/src/management/model_nexo.go index 87bff3534..9ab5cd65c 100644 --- a/src/management/model_nexo.go +++ b/src/management/model_nexo.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Nexo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_notification.go b/src/management/model_notification.go index f1ecccc48..0467a9594 100644 --- a/src/management/model_notification.go +++ b/src/management/model_notification.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Notification type satisfies the MappedNullable interface at compile time @@ -19,7 +19,7 @@ var _ common.MappedNullable = &Notification{} // Notification struct for Notification type Notification struct { - // Toggle to show or hide Notification button on the terminal + // Shows or hides the event notification button on the terminal screen. ShowButton *bool `json:"showButton,omitempty"` } diff --git a/src/management/model_notification_url.go b/src/management/model_notification_url.go index ab5dd3113..da84a22c9 100644 --- a/src/management/model_notification_url.go +++ b/src/management/model_notification_url.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NotificationUrl type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_offline_processing.go b/src/management/model_offline_processing.go index 4d9154916..e2ed58cd0 100644 --- a/src/management/model_offline_processing.go +++ b/src/management/model_offline_processing.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OfflineProcessing type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_opi.go b/src/management/model_opi.go index 931a17dee..e487f6a4b 100644 --- a/src/management/model_opi.go +++ b/src/management/model_opi.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Opi type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_order_item.go b/src/management/model_order_item.go index 04e825fa6..44b701f76 100644 --- a/src/management/model_order_item.go +++ b/src/management/model_order_item.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the OrderItem type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_pagination_links.go b/src/management/model_pagination_links.go index bf228c298..e53852838 100644 --- a/src/management/model_pagination_links.go +++ b/src/management/model_pagination_links.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaginationLinks type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_passcodes.go b/src/management/model_passcodes.go index cd894fed2..208010722 100644 --- a/src/management/model_passcodes.go +++ b/src/management/model_passcodes.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Passcodes type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_pay_at_table.go b/src/management/model_pay_at_table.go index 91767d11f..98bee6701 100644 --- a/src/management/model_pay_at_table.go +++ b/src/management/model_pay_at_table.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayAtTable type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_pay_pal_info.go b/src/management/model_pay_pal_info.go index 7c32acbfd..ee4024d56 100644 --- a/src/management/model_pay_pal_info.go +++ b/src/management/model_pay_pal_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayPalInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_payment.go b/src/management/model_payment.go index 1307a5b31..5d4c5b8e6 100644 --- a/src/management/model_payment.go +++ b/src/management/model_payment.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Payment type satisfies the MappedNullable interface at compile time @@ -19,6 +19,8 @@ var _ common.MappedNullable = &Payment{} // Payment struct for Payment type Payment struct { + // The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + ContactlessCurrency *string `json:"contactlessCurrency,omitempty"` // Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). HideMinorUnitsInCurrencies []string `json:"hideMinorUnitsInCurrencies,omitempty"` } @@ -40,6 +42,38 @@ func NewPaymentWithDefaults() *Payment { return &this } +// GetContactlessCurrency returns the ContactlessCurrency field value if set, zero value otherwise. +func (o *Payment) GetContactlessCurrency() string { + if o == nil || common.IsNil(o.ContactlessCurrency) { + var ret string + return ret + } + return *o.ContactlessCurrency +} + +// GetContactlessCurrencyOk returns a tuple with the ContactlessCurrency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Payment) GetContactlessCurrencyOk() (*string, bool) { + if o == nil || common.IsNil(o.ContactlessCurrency) { + return nil, false + } + return o.ContactlessCurrency, true +} + +// HasContactlessCurrency returns a boolean if a field has been set. +func (o *Payment) HasContactlessCurrency() bool { + if o != nil && !common.IsNil(o.ContactlessCurrency) { + return true + } + + return false +} + +// SetContactlessCurrency gets a reference to the given string and assigns it to the ContactlessCurrency field. +func (o *Payment) SetContactlessCurrency(v string) { + o.ContactlessCurrency = &v +} + // GetHideMinorUnitsInCurrencies returns the HideMinorUnitsInCurrencies field value if set, zero value otherwise. func (o *Payment) GetHideMinorUnitsInCurrencies() []string { if o == nil || common.IsNil(o.HideMinorUnitsInCurrencies) { @@ -82,6 +116,9 @@ func (o Payment) MarshalJSON() ([]byte, error) { func (o Payment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !common.IsNil(o.ContactlessCurrency) { + toSerialize["contactlessCurrency"] = o.ContactlessCurrency + } if !common.IsNil(o.HideMinorUnitsInCurrencies) { toSerialize["hideMinorUnitsInCurrencies"] = o.HideMinorUnitsInCurrencies } diff --git a/src/management/model_payment_method.go b/src/management/model_payment_method.go index b179f45c4..034d49774 100644 --- a/src/management/model_payment_method.go +++ b/src/management/model_payment_method.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethod type satisfies the MappedNullable interface at compile time @@ -29,34 +29,45 @@ type PaymentMethod struct { CartesBancaires *CartesBancairesInfo `json:"cartesBancaires,omitempty"` Clearpay *ClearpayInfo `json:"clearpay,omitempty"` // The list of countries where a payment method is available. By default, all countries supported by the payment method. - Countries []string `json:"countries,omitempty"` + Countries []string `json:"countries,omitempty"` + Cup *GenericPmWithTdiInfo `json:"cup,omitempty"` // The list of currencies that a payment method supports. By default, all currencies supported by the payment method. Currencies []string `json:"currencies,omitempty"` // The list of custom routing flags to route payment to the intended acquirer. - CustomRoutingFlags []string `json:"customRoutingFlags,omitempty"` + CustomRoutingFlags []string `json:"customRoutingFlags,omitempty"` + Diners *GenericPmWithTdiInfo `json:"diners,omitempty"` + Discover *GenericPmWithTdiInfo `json:"discover,omitempty"` + EftposAustralia *GenericPmWithTdiInfo `json:"eftpos_australia,omitempty"` // Indicates whether the payment method is enabled (**true**) or disabled (**false**). - Enabled *bool `json:"enabled,omitempty"` - GiroPay *GiroPayInfo `json:"giroPay,omitempty"` - GooglePay *GooglePayInfo `json:"googlePay,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + GiroPay *GiroPayInfo `json:"giroPay,omitempty"` + Girocard *GenericPmWithTdiInfo `json:"girocard,omitempty"` + GooglePay *GooglePayInfo `json:"googlePay,omitempty"` // The identifier of the resource. - Id string `json:"id"` - Klarna *KlarnaInfo `json:"klarna,omitempty"` - MealVoucherFR *MealVoucherFRInfo `json:"mealVoucher_FR,omitempty"` - Paypal *PayPalInfo `json:"paypal,omitempty"` + Id string `json:"id"` + Ideal *GenericPmWithTdiInfo `json:"ideal,omitempty"` + InteracCard *GenericPmWithTdiInfo `json:"interac_card,omitempty"` + Jcb *GenericPmWithTdiInfo `json:"jcb,omitempty"` + Klarna *KlarnaInfo `json:"klarna,omitempty"` + Maestro *GenericPmWithTdiInfo `json:"maestro,omitempty"` + Mc *GenericPmWithTdiInfo `json:"mc,omitempty"` + MealVoucherFR *MealVoucherFRInfo `json:"mealVoucher_FR,omitempty"` + Paypal *PayPalInfo `json:"paypal,omitempty"` // Your reference for the payment method. Supported characters a-z, A-Z, 0-9. Reference *string `json:"reference,omitempty"` // The sales channel. ShopperInteraction *string `json:"shopperInteraction,omitempty"` Sofort *SofortInfo `json:"sofort,omitempty"` - // The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any. - StoreId *string `json:"storeId,omitempty"` - Swish *SwishInfo `json:"swish,omitempty"` - Twint *TwintInfo `json:"twint,omitempty"` + // The unique identifier of the store for which to configure the payment method, if any. + StoreIds []string `json:"storeIds,omitempty"` + Swish *SwishInfo `json:"swish,omitempty"` + Twint *TwintInfo `json:"twint,omitempty"` // Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). Type *string `json:"type,omitempty"` // Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** - VerificationStatus *string `json:"verificationStatus,omitempty"` - Vipps *VippsInfo `json:"vipps,omitempty"` + VerificationStatus *string `json:"verificationStatus,omitempty"` + Vipps *VippsInfo `json:"vipps,omitempty"` + Visa *GenericPmWithTdiInfo `json:"visa,omitempty"` } // NewPaymentMethod instantiates a new PaymentMethod object @@ -333,6 +344,38 @@ func (o *PaymentMethod) SetCountries(v []string) { o.Countries = v } +// GetCup returns the Cup field value if set, zero value otherwise. +func (o *PaymentMethod) GetCup() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Cup) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Cup +} + +// GetCupOk returns a tuple with the Cup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetCupOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Cup) { + return nil, false + } + return o.Cup, true +} + +// HasCup returns a boolean if a field has been set. +func (o *PaymentMethod) HasCup() bool { + if o != nil && !common.IsNil(o.Cup) { + return true + } + + return false +} + +// SetCup gets a reference to the given GenericPmWithTdiInfo and assigns it to the Cup field. +func (o *PaymentMethod) SetCup(v GenericPmWithTdiInfo) { + o.Cup = &v +} + // GetCurrencies returns the Currencies field value if set, zero value otherwise. func (o *PaymentMethod) GetCurrencies() []string { if o == nil || common.IsNil(o.Currencies) { @@ -397,6 +440,102 @@ func (o *PaymentMethod) SetCustomRoutingFlags(v []string) { o.CustomRoutingFlags = v } +// GetDiners returns the Diners field value if set, zero value otherwise. +func (o *PaymentMethod) GetDiners() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Diners) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Diners +} + +// GetDinersOk returns a tuple with the Diners field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetDinersOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Diners) { + return nil, false + } + return o.Diners, true +} + +// HasDiners returns a boolean if a field has been set. +func (o *PaymentMethod) HasDiners() bool { + if o != nil && !common.IsNil(o.Diners) { + return true + } + + return false +} + +// SetDiners gets a reference to the given GenericPmWithTdiInfo and assigns it to the Diners field. +func (o *PaymentMethod) SetDiners(v GenericPmWithTdiInfo) { + o.Diners = &v +} + +// GetDiscover returns the Discover field value if set, zero value otherwise. +func (o *PaymentMethod) GetDiscover() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Discover) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Discover +} + +// GetDiscoverOk returns a tuple with the Discover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetDiscoverOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Discover) { + return nil, false + } + return o.Discover, true +} + +// HasDiscover returns a boolean if a field has been set. +func (o *PaymentMethod) HasDiscover() bool { + if o != nil && !common.IsNil(o.Discover) { + return true + } + + return false +} + +// SetDiscover gets a reference to the given GenericPmWithTdiInfo and assigns it to the Discover field. +func (o *PaymentMethod) SetDiscover(v GenericPmWithTdiInfo) { + o.Discover = &v +} + +// GetEftposAustralia returns the EftposAustralia field value if set, zero value otherwise. +func (o *PaymentMethod) GetEftposAustralia() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.EftposAustralia) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.EftposAustralia +} + +// GetEftposAustraliaOk returns a tuple with the EftposAustralia field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetEftposAustraliaOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.EftposAustralia) { + return nil, false + } + return o.EftposAustralia, true +} + +// HasEftposAustralia returns a boolean if a field has been set. +func (o *PaymentMethod) HasEftposAustralia() bool { + if o != nil && !common.IsNil(o.EftposAustralia) { + return true + } + + return false +} + +// SetEftposAustralia gets a reference to the given GenericPmWithTdiInfo and assigns it to the EftposAustralia field. +func (o *PaymentMethod) SetEftposAustralia(v GenericPmWithTdiInfo) { + o.EftposAustralia = &v +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *PaymentMethod) GetEnabled() bool { if o == nil || common.IsNil(o.Enabled) { @@ -461,6 +600,38 @@ func (o *PaymentMethod) SetGiroPay(v GiroPayInfo) { o.GiroPay = &v } +// GetGirocard returns the Girocard field value if set, zero value otherwise. +func (o *PaymentMethod) GetGirocard() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Girocard) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Girocard +} + +// GetGirocardOk returns a tuple with the Girocard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetGirocardOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Girocard) { + return nil, false + } + return o.Girocard, true +} + +// HasGirocard returns a boolean if a field has been set. +func (o *PaymentMethod) HasGirocard() bool { + if o != nil && !common.IsNil(o.Girocard) { + return true + } + + return false +} + +// SetGirocard gets a reference to the given GenericPmWithTdiInfo and assigns it to the Girocard field. +func (o *PaymentMethod) SetGirocard(v GenericPmWithTdiInfo) { + o.Girocard = &v +} + // GetGooglePay returns the GooglePay field value if set, zero value otherwise. func (o *PaymentMethod) GetGooglePay() GooglePayInfo { if o == nil || common.IsNil(o.GooglePay) { @@ -517,6 +688,102 @@ func (o *PaymentMethod) SetId(v string) { o.Id = v } +// GetIdeal returns the Ideal field value if set, zero value otherwise. +func (o *PaymentMethod) GetIdeal() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Ideal) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Ideal +} + +// GetIdealOk returns a tuple with the Ideal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetIdealOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Ideal) { + return nil, false + } + return o.Ideal, true +} + +// HasIdeal returns a boolean if a field has been set. +func (o *PaymentMethod) HasIdeal() bool { + if o != nil && !common.IsNil(o.Ideal) { + return true + } + + return false +} + +// SetIdeal gets a reference to the given GenericPmWithTdiInfo and assigns it to the Ideal field. +func (o *PaymentMethod) SetIdeal(v GenericPmWithTdiInfo) { + o.Ideal = &v +} + +// GetInteracCard returns the InteracCard field value if set, zero value otherwise. +func (o *PaymentMethod) GetInteracCard() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.InteracCard) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.InteracCard +} + +// GetInteracCardOk returns a tuple with the InteracCard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetInteracCardOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.InteracCard) { + return nil, false + } + return o.InteracCard, true +} + +// HasInteracCard returns a boolean if a field has been set. +func (o *PaymentMethod) HasInteracCard() bool { + if o != nil && !common.IsNil(o.InteracCard) { + return true + } + + return false +} + +// SetInteracCard gets a reference to the given GenericPmWithTdiInfo and assigns it to the InteracCard field. +func (o *PaymentMethod) SetInteracCard(v GenericPmWithTdiInfo) { + o.InteracCard = &v +} + +// GetJcb returns the Jcb field value if set, zero value otherwise. +func (o *PaymentMethod) GetJcb() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Jcb) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Jcb +} + +// GetJcbOk returns a tuple with the Jcb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetJcbOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Jcb) { + return nil, false + } + return o.Jcb, true +} + +// HasJcb returns a boolean if a field has been set. +func (o *PaymentMethod) HasJcb() bool { + if o != nil && !common.IsNil(o.Jcb) { + return true + } + + return false +} + +// SetJcb gets a reference to the given GenericPmWithTdiInfo and assigns it to the Jcb field. +func (o *PaymentMethod) SetJcb(v GenericPmWithTdiInfo) { + o.Jcb = &v +} + // GetKlarna returns the Klarna field value if set, zero value otherwise. func (o *PaymentMethod) GetKlarna() KlarnaInfo { if o == nil || common.IsNil(o.Klarna) { @@ -549,6 +816,70 @@ func (o *PaymentMethod) SetKlarna(v KlarnaInfo) { o.Klarna = &v } +// GetMaestro returns the Maestro field value if set, zero value otherwise. +func (o *PaymentMethod) GetMaestro() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Maestro) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Maestro +} + +// GetMaestroOk returns a tuple with the Maestro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetMaestroOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Maestro) { + return nil, false + } + return o.Maestro, true +} + +// HasMaestro returns a boolean if a field has been set. +func (o *PaymentMethod) HasMaestro() bool { + if o != nil && !common.IsNil(o.Maestro) { + return true + } + + return false +} + +// SetMaestro gets a reference to the given GenericPmWithTdiInfo and assigns it to the Maestro field. +func (o *PaymentMethod) SetMaestro(v GenericPmWithTdiInfo) { + o.Maestro = &v +} + +// GetMc returns the Mc field value if set, zero value otherwise. +func (o *PaymentMethod) GetMc() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Mc) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Mc +} + +// GetMcOk returns a tuple with the Mc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetMcOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Mc) { + return nil, false + } + return o.Mc, true +} + +// HasMc returns a boolean if a field has been set. +func (o *PaymentMethod) HasMc() bool { + if o != nil && !common.IsNil(o.Mc) { + return true + } + + return false +} + +// SetMc gets a reference to the given GenericPmWithTdiInfo and assigns it to the Mc field. +func (o *PaymentMethod) SetMc(v GenericPmWithTdiInfo) { + o.Mc = &v +} + // GetMealVoucherFR returns the MealVoucherFR field value if set, zero value otherwise. func (o *PaymentMethod) GetMealVoucherFR() MealVoucherFRInfo { if o == nil || common.IsNil(o.MealVoucherFR) { @@ -709,36 +1040,36 @@ func (o *PaymentMethod) SetSofort(v SofortInfo) { o.Sofort = &v } -// GetStoreId returns the StoreId field value if set, zero value otherwise. -func (o *PaymentMethod) GetStoreId() string { - if o == nil || common.IsNil(o.StoreId) { - var ret string +// GetStoreIds returns the StoreIds field value if set, zero value otherwise. +func (o *PaymentMethod) GetStoreIds() []string { + if o == nil || common.IsNil(o.StoreIds) { + var ret []string return ret } - return *o.StoreId + return o.StoreIds } -// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// GetStoreIdsOk returns a tuple with the StoreIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentMethod) GetStoreIdOk() (*string, bool) { - if o == nil || common.IsNil(o.StoreId) { +func (o *PaymentMethod) GetStoreIdsOk() ([]string, bool) { + if o == nil || common.IsNil(o.StoreIds) { return nil, false } - return o.StoreId, true + return o.StoreIds, true } -// HasStoreId returns a boolean if a field has been set. -func (o *PaymentMethod) HasStoreId() bool { - if o != nil && !common.IsNil(o.StoreId) { +// HasStoreIds returns a boolean if a field has been set. +func (o *PaymentMethod) HasStoreIds() bool { + if o != nil && !common.IsNil(o.StoreIds) { return true } return false } -// SetStoreId gets a reference to the given string and assigns it to the StoreId field. -func (o *PaymentMethod) SetStoreId(v string) { - o.StoreId = &v +// SetStoreIds gets a reference to the given []string and assigns it to the StoreIds field. +func (o *PaymentMethod) SetStoreIds(v []string) { + o.StoreIds = v } // GetSwish returns the Swish field value if set, zero value otherwise. @@ -901,6 +1232,38 @@ func (o *PaymentMethod) SetVipps(v VippsInfo) { o.Vipps = &v } +// GetVisa returns the Visa field value if set, zero value otherwise. +func (o *PaymentMethod) GetVisa() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Visa) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Visa +} + +// GetVisaOk returns a tuple with the Visa field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethod) GetVisaOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Visa) { + return nil, false + } + return o.Visa, true +} + +// HasVisa returns a boolean if a field has been set. +func (o *PaymentMethod) HasVisa() bool { + if o != nil && !common.IsNil(o.Visa) { + return true + } + + return false +} + +// SetVisa gets a reference to the given GenericPmWithTdiInfo and assigns it to the Visa field. +func (o *PaymentMethod) SetVisa(v GenericPmWithTdiInfo) { + o.Visa = &v +} + func (o PaymentMethod) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -935,25 +1298,55 @@ func (o PaymentMethod) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Countries) { toSerialize["countries"] = o.Countries } + if !common.IsNil(o.Cup) { + toSerialize["cup"] = o.Cup + } if !common.IsNil(o.Currencies) { toSerialize["currencies"] = o.Currencies } if !common.IsNil(o.CustomRoutingFlags) { toSerialize["customRoutingFlags"] = o.CustomRoutingFlags } + if !common.IsNil(o.Diners) { + toSerialize["diners"] = o.Diners + } + if !common.IsNil(o.Discover) { + toSerialize["discover"] = o.Discover + } + if !common.IsNil(o.EftposAustralia) { + toSerialize["eftpos_australia"] = o.EftposAustralia + } if !common.IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } if !common.IsNil(o.GiroPay) { toSerialize["giroPay"] = o.GiroPay } + if !common.IsNil(o.Girocard) { + toSerialize["girocard"] = o.Girocard + } if !common.IsNil(o.GooglePay) { toSerialize["googlePay"] = o.GooglePay } toSerialize["id"] = o.Id + if !common.IsNil(o.Ideal) { + toSerialize["ideal"] = o.Ideal + } + if !common.IsNil(o.InteracCard) { + toSerialize["interac_card"] = o.InteracCard + } + if !common.IsNil(o.Jcb) { + toSerialize["jcb"] = o.Jcb + } if !common.IsNil(o.Klarna) { toSerialize["klarna"] = o.Klarna } + if !common.IsNil(o.Maestro) { + toSerialize["maestro"] = o.Maestro + } + if !common.IsNil(o.Mc) { + toSerialize["mc"] = o.Mc + } if !common.IsNil(o.MealVoucherFR) { toSerialize["mealVoucher_FR"] = o.MealVoucherFR } @@ -969,8 +1362,8 @@ func (o PaymentMethod) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Sofort) { toSerialize["sofort"] = o.Sofort } - if !common.IsNil(o.StoreId) { - toSerialize["storeId"] = o.StoreId + if !common.IsNil(o.StoreIds) { + toSerialize["storeIds"] = o.StoreIds } if !common.IsNil(o.Swish) { toSerialize["swish"] = o.Swish @@ -987,6 +1380,9 @@ func (o PaymentMethod) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Vipps) { toSerialize["vipps"] = o.Vipps } + if !common.IsNil(o.Visa) { + toSerialize["visa"] = o.Visa + } return toSerialize, nil } diff --git a/src/management/model_payment_method_response.go b/src/management/model_payment_method_response.go index 499a26822..219631c4d 100644 --- a/src/management/model_payment_method_response.go +++ b/src/management/model_payment_method_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodResponse type satisfies the MappedNullable interface at compile time @@ -20,8 +20,8 @@ var _ common.MappedNullable = &PaymentMethodResponse{} // PaymentMethodResponse struct for PaymentMethodResponse type PaymentMethodResponse struct { Links *PaginationLinks `json:"_links,omitempty"` - // Payment methods details. - Data []PaymentMethodWrapper `json:"data,omitempty"` + // The list of supported payment methods and their details. + Data []PaymentMethod `json:"data,omitempty"` // Total number of items. ItemsTotal int32 `json:"itemsTotal"` // Total number of pages. @@ -82,9 +82,9 @@ func (o *PaymentMethodResponse) SetLinks(v PaginationLinks) { } // GetData returns the Data field value if set, zero value otherwise. -func (o *PaymentMethodResponse) GetData() []PaymentMethodWrapper { +func (o *PaymentMethodResponse) GetData() []PaymentMethod { if o == nil || common.IsNil(o.Data) { - var ret []PaymentMethodWrapper + var ret []PaymentMethod return ret } return o.Data @@ -92,7 +92,7 @@ func (o *PaymentMethodResponse) GetData() []PaymentMethodWrapper { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentMethodResponse) GetDataOk() ([]PaymentMethodWrapper, bool) { +func (o *PaymentMethodResponse) GetDataOk() ([]PaymentMethod, bool) { if o == nil || common.IsNil(o.Data) { return nil, false } @@ -108,8 +108,8 @@ func (o *PaymentMethodResponse) HasData() bool { return false } -// SetData gets a reference to the given []PaymentMethodWrapper and assigns it to the Data field. -func (o *PaymentMethodResponse) SetData(v []PaymentMethodWrapper) { +// SetData gets a reference to the given []PaymentMethod and assigns it to the Data field. +func (o *PaymentMethodResponse) SetData(v []PaymentMethod) { o.Data = v } diff --git a/src/management/model_payment_method_setup_info.go b/src/management/model_payment_method_setup_info.go index 9f9d3e443..a5ed31fb0 100644 --- a/src/management/model_payment_method_setup_info.go +++ b/src/management/model_payment_method_setup_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodSetupInfo type satisfies the MappedNullable interface at compile time @@ -27,36 +27,48 @@ type PaymentMethodSetupInfo struct { CartesBancaires *CartesBancairesInfo `json:"cartesBancaires,omitempty"` Clearpay *ClearpayInfo `json:"clearpay,omitempty"` // The list of countries where a payment method is available. By default, all countries supported by the payment method. - Countries []string `json:"countries,omitempty"` + Countries []string `json:"countries,omitempty"` + Cup *GenericPmWithTdiInfo `json:"cup,omitempty"` // The list of currencies that a payment method supports. By default, all currencies supported by the payment method. Currencies []string `json:"currencies,omitempty"` // The list of custom routing flags to route payment to the intended acquirer. - CustomRoutingFlags []string `json:"customRoutingFlags,omitempty"` - GiroPay *GiroPayInfo `json:"giroPay,omitempty"` - GooglePay *GooglePayInfo `json:"googlePay,omitempty"` - Klarna *KlarnaInfo `json:"klarna,omitempty"` - MealVoucherFR *MealVoucherFRInfo `json:"mealVoucher_FR,omitempty"` - Paypal *PayPalInfo `json:"paypal,omitempty"` + CustomRoutingFlags []string `json:"customRoutingFlags,omitempty"` + Diners *GenericPmWithTdiInfo `json:"diners,omitempty"` + Discover *GenericPmWithTdiInfo `json:"discover,omitempty"` + EftposAustralia *GenericPmWithTdiInfo `json:"eftpos_australia,omitempty"` + GiroPay *GiroPayInfo `json:"giroPay,omitempty"` + Girocard *GenericPmWithTdiInfo `json:"girocard,omitempty"` + GooglePay *GooglePayInfo `json:"googlePay,omitempty"` + Ideal *GenericPmWithTdiInfo `json:"ideal,omitempty"` + InteracCard *GenericPmWithTdiInfo `json:"interac_card,omitempty"` + Jcb *GenericPmWithTdiInfo `json:"jcb,omitempty"` + Klarna *KlarnaInfo `json:"klarna,omitempty"` + Maestro *GenericPmWithTdiInfo `json:"maestro,omitempty"` + Mc *GenericPmWithTdiInfo `json:"mc,omitempty"` + MealVoucherFR *MealVoucherFRInfo `json:"mealVoucher_FR,omitempty"` + Paypal *PayPalInfo `json:"paypal,omitempty"` // Your reference for the payment method. Supported characters a-z, A-Z, 0-9. Reference *string `json:"reference,omitempty"` // The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. ShopperInteraction *string `json:"shopperInteraction,omitempty"` Sofort *SofortInfo `json:"sofort,omitempty"` - // The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any. - StoreId *string `json:"storeId,omitempty"` - Swish *SwishInfo `json:"swish,omitempty"` - Twint *TwintInfo `json:"twint,omitempty"` + // The unique identifier of the store for which to configure the payment method, if any. + StoreIds []string `json:"storeIds,omitempty"` + Swish *SwishInfo `json:"swish,omitempty"` + Twint *TwintInfo `json:"twint,omitempty"` // Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - Type *string `json:"type,omitempty"` - Vipps *VippsInfo `json:"vipps,omitempty"` + Type string `json:"type"` + Vipps *VippsInfo `json:"vipps,omitempty"` + Visa *GenericPmWithTdiInfo `json:"visa,omitempty"` } // NewPaymentMethodSetupInfo instantiates a new PaymentMethodSetupInfo 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 NewPaymentMethodSetupInfo() *PaymentMethodSetupInfo { +func NewPaymentMethodSetupInfo(type_ string) *PaymentMethodSetupInfo { this := PaymentMethodSetupInfo{} + this.Type = type_ return &this } @@ -292,6 +304,38 @@ func (o *PaymentMethodSetupInfo) SetCountries(v []string) { o.Countries = v } +// GetCup returns the Cup field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetCup() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Cup) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Cup +} + +// GetCupOk returns a tuple with the Cup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetCupOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Cup) { + return nil, false + } + return o.Cup, true +} + +// HasCup returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasCup() bool { + if o != nil && !common.IsNil(o.Cup) { + return true + } + + return false +} + +// SetCup gets a reference to the given GenericPmWithTdiInfo and assigns it to the Cup field. +func (o *PaymentMethodSetupInfo) SetCup(v GenericPmWithTdiInfo) { + o.Cup = &v +} + // GetCurrencies returns the Currencies field value if set, zero value otherwise. func (o *PaymentMethodSetupInfo) GetCurrencies() []string { if o == nil || common.IsNil(o.Currencies) { @@ -356,6 +400,102 @@ func (o *PaymentMethodSetupInfo) SetCustomRoutingFlags(v []string) { o.CustomRoutingFlags = v } +// GetDiners returns the Diners field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetDiners() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Diners) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Diners +} + +// GetDinersOk returns a tuple with the Diners field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetDinersOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Diners) { + return nil, false + } + return o.Diners, true +} + +// HasDiners returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasDiners() bool { + if o != nil && !common.IsNil(o.Diners) { + return true + } + + return false +} + +// SetDiners gets a reference to the given GenericPmWithTdiInfo and assigns it to the Diners field. +func (o *PaymentMethodSetupInfo) SetDiners(v GenericPmWithTdiInfo) { + o.Diners = &v +} + +// GetDiscover returns the Discover field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetDiscover() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Discover) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Discover +} + +// GetDiscoverOk returns a tuple with the Discover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetDiscoverOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Discover) { + return nil, false + } + return o.Discover, true +} + +// HasDiscover returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasDiscover() bool { + if o != nil && !common.IsNil(o.Discover) { + return true + } + + return false +} + +// SetDiscover gets a reference to the given GenericPmWithTdiInfo and assigns it to the Discover field. +func (o *PaymentMethodSetupInfo) SetDiscover(v GenericPmWithTdiInfo) { + o.Discover = &v +} + +// GetEftposAustralia returns the EftposAustralia field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetEftposAustralia() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.EftposAustralia) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.EftposAustralia +} + +// GetEftposAustraliaOk returns a tuple with the EftposAustralia field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetEftposAustraliaOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.EftposAustralia) { + return nil, false + } + return o.EftposAustralia, true +} + +// HasEftposAustralia returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasEftposAustralia() bool { + if o != nil && !common.IsNil(o.EftposAustralia) { + return true + } + + return false +} + +// SetEftposAustralia gets a reference to the given GenericPmWithTdiInfo and assigns it to the EftposAustralia field. +func (o *PaymentMethodSetupInfo) SetEftposAustralia(v GenericPmWithTdiInfo) { + o.EftposAustralia = &v +} + // GetGiroPay returns the GiroPay field value if set, zero value otherwise. func (o *PaymentMethodSetupInfo) GetGiroPay() GiroPayInfo { if o == nil || common.IsNil(o.GiroPay) { @@ -388,6 +528,38 @@ func (o *PaymentMethodSetupInfo) SetGiroPay(v GiroPayInfo) { o.GiroPay = &v } +// GetGirocard returns the Girocard field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetGirocard() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Girocard) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Girocard +} + +// GetGirocardOk returns a tuple with the Girocard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetGirocardOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Girocard) { + return nil, false + } + return o.Girocard, true +} + +// HasGirocard returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasGirocard() bool { + if o != nil && !common.IsNil(o.Girocard) { + return true + } + + return false +} + +// SetGirocard gets a reference to the given GenericPmWithTdiInfo and assigns it to the Girocard field. +func (o *PaymentMethodSetupInfo) SetGirocard(v GenericPmWithTdiInfo) { + o.Girocard = &v +} + // GetGooglePay returns the GooglePay field value if set, zero value otherwise. func (o *PaymentMethodSetupInfo) GetGooglePay() GooglePayInfo { if o == nil || common.IsNil(o.GooglePay) { @@ -420,6 +592,102 @@ func (o *PaymentMethodSetupInfo) SetGooglePay(v GooglePayInfo) { o.GooglePay = &v } +// GetIdeal returns the Ideal field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetIdeal() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Ideal) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Ideal +} + +// GetIdealOk returns a tuple with the Ideal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetIdealOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Ideal) { + return nil, false + } + return o.Ideal, true +} + +// HasIdeal returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasIdeal() bool { + if o != nil && !common.IsNil(o.Ideal) { + return true + } + + return false +} + +// SetIdeal gets a reference to the given GenericPmWithTdiInfo and assigns it to the Ideal field. +func (o *PaymentMethodSetupInfo) SetIdeal(v GenericPmWithTdiInfo) { + o.Ideal = &v +} + +// GetInteracCard returns the InteracCard field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetInteracCard() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.InteracCard) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.InteracCard +} + +// GetInteracCardOk returns a tuple with the InteracCard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetInteracCardOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.InteracCard) { + return nil, false + } + return o.InteracCard, true +} + +// HasInteracCard returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasInteracCard() bool { + if o != nil && !common.IsNil(o.InteracCard) { + return true + } + + return false +} + +// SetInteracCard gets a reference to the given GenericPmWithTdiInfo and assigns it to the InteracCard field. +func (o *PaymentMethodSetupInfo) SetInteracCard(v GenericPmWithTdiInfo) { + o.InteracCard = &v +} + +// GetJcb returns the Jcb field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetJcb() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Jcb) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Jcb +} + +// GetJcbOk returns a tuple with the Jcb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetJcbOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Jcb) { + return nil, false + } + return o.Jcb, true +} + +// HasJcb returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasJcb() bool { + if o != nil && !common.IsNil(o.Jcb) { + return true + } + + return false +} + +// SetJcb gets a reference to the given GenericPmWithTdiInfo and assigns it to the Jcb field. +func (o *PaymentMethodSetupInfo) SetJcb(v GenericPmWithTdiInfo) { + o.Jcb = &v +} + // GetKlarna returns the Klarna field value if set, zero value otherwise. func (o *PaymentMethodSetupInfo) GetKlarna() KlarnaInfo { if o == nil || common.IsNil(o.Klarna) { @@ -452,6 +720,70 @@ func (o *PaymentMethodSetupInfo) SetKlarna(v KlarnaInfo) { o.Klarna = &v } +// GetMaestro returns the Maestro field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetMaestro() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Maestro) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Maestro +} + +// GetMaestroOk returns a tuple with the Maestro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetMaestroOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Maestro) { + return nil, false + } + return o.Maestro, true +} + +// HasMaestro returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasMaestro() bool { + if o != nil && !common.IsNil(o.Maestro) { + return true + } + + return false +} + +// SetMaestro gets a reference to the given GenericPmWithTdiInfo and assigns it to the Maestro field. +func (o *PaymentMethodSetupInfo) SetMaestro(v GenericPmWithTdiInfo) { + o.Maestro = &v +} + +// GetMc returns the Mc field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetMc() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Mc) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Mc +} + +// GetMcOk returns a tuple with the Mc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetMcOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Mc) { + return nil, false + } + return o.Mc, true +} + +// HasMc returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasMc() bool { + if o != nil && !common.IsNil(o.Mc) { + return true + } + + return false +} + +// SetMc gets a reference to the given GenericPmWithTdiInfo and assigns it to the Mc field. +func (o *PaymentMethodSetupInfo) SetMc(v GenericPmWithTdiInfo) { + o.Mc = &v +} + // GetMealVoucherFR returns the MealVoucherFR field value if set, zero value otherwise. func (o *PaymentMethodSetupInfo) GetMealVoucherFR() MealVoucherFRInfo { if o == nil || common.IsNil(o.MealVoucherFR) { @@ -612,36 +944,36 @@ func (o *PaymentMethodSetupInfo) SetSofort(v SofortInfo) { o.Sofort = &v } -// GetStoreId returns the StoreId field value if set, zero value otherwise. -func (o *PaymentMethodSetupInfo) GetStoreId() string { - if o == nil || common.IsNil(o.StoreId) { - var ret string +// GetStoreIds returns the StoreIds field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetStoreIds() []string { + if o == nil || common.IsNil(o.StoreIds) { + var ret []string return ret } - return *o.StoreId + return o.StoreIds } -// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// GetStoreIdsOk returns a tuple with the StoreIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentMethodSetupInfo) GetStoreIdOk() (*string, bool) { - if o == nil || common.IsNil(o.StoreId) { +func (o *PaymentMethodSetupInfo) GetStoreIdsOk() ([]string, bool) { + if o == nil || common.IsNil(o.StoreIds) { return nil, false } - return o.StoreId, true + return o.StoreIds, true } -// HasStoreId returns a boolean if a field has been set. -func (o *PaymentMethodSetupInfo) HasStoreId() bool { - if o != nil && !common.IsNil(o.StoreId) { +// HasStoreIds returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasStoreIds() bool { + if o != nil && !common.IsNil(o.StoreIds) { return true } return false } -// SetStoreId gets a reference to the given string and assigns it to the StoreId field. -func (o *PaymentMethodSetupInfo) SetStoreId(v string) { - o.StoreId = &v +// SetStoreIds gets a reference to the given []string and assigns it to the StoreIds field. +func (o *PaymentMethodSetupInfo) SetStoreIds(v []string) { + o.StoreIds = v } // GetSwish returns the Swish field value if set, zero value otherwise. @@ -708,36 +1040,28 @@ func (o *PaymentMethodSetupInfo) SetTwint(v TwintInfo) { o.Twint = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *PaymentMethodSetupInfo) GetType() string { - if o == nil || common.IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *PaymentMethodSetupInfo) GetTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return &o.Type, true } -// HasType returns a boolean if a field has been set. -func (o *PaymentMethodSetupInfo) HasType() bool { - if o != nil && !common.IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *PaymentMethodSetupInfo) SetType(v string) { - o.Type = &v + o.Type = v } // GetVipps returns the Vipps field value if set, zero value otherwise. @@ -772,6 +1096,38 @@ func (o *PaymentMethodSetupInfo) SetVipps(v VippsInfo) { o.Vipps = &v } +// GetVisa returns the Visa field value if set, zero value otherwise. +func (o *PaymentMethodSetupInfo) GetVisa() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Visa) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Visa +} + +// GetVisaOk returns a tuple with the Visa field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodSetupInfo) GetVisaOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Visa) { + return nil, false + } + return o.Visa, true +} + +// HasVisa returns a boolean if a field has been set. +func (o *PaymentMethodSetupInfo) HasVisa() bool { + if o != nil && !common.IsNil(o.Visa) { + return true + } + + return false +} + +// SetVisa gets a reference to the given GenericPmWithTdiInfo and assigns it to the Visa field. +func (o *PaymentMethodSetupInfo) SetVisa(v GenericPmWithTdiInfo) { + o.Visa = &v +} + func (o PaymentMethodSetupInfo) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -803,21 +1159,51 @@ func (o PaymentMethodSetupInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Countries) { toSerialize["countries"] = o.Countries } + if !common.IsNil(o.Cup) { + toSerialize["cup"] = o.Cup + } if !common.IsNil(o.Currencies) { toSerialize["currencies"] = o.Currencies } if !common.IsNil(o.CustomRoutingFlags) { toSerialize["customRoutingFlags"] = o.CustomRoutingFlags } + if !common.IsNil(o.Diners) { + toSerialize["diners"] = o.Diners + } + if !common.IsNil(o.Discover) { + toSerialize["discover"] = o.Discover + } + if !common.IsNil(o.EftposAustralia) { + toSerialize["eftpos_australia"] = o.EftposAustralia + } if !common.IsNil(o.GiroPay) { toSerialize["giroPay"] = o.GiroPay } + if !common.IsNil(o.Girocard) { + toSerialize["girocard"] = o.Girocard + } if !common.IsNil(o.GooglePay) { toSerialize["googlePay"] = o.GooglePay } + if !common.IsNil(o.Ideal) { + toSerialize["ideal"] = o.Ideal + } + if !common.IsNil(o.InteracCard) { + toSerialize["interac_card"] = o.InteracCard + } + if !common.IsNil(o.Jcb) { + toSerialize["jcb"] = o.Jcb + } if !common.IsNil(o.Klarna) { toSerialize["klarna"] = o.Klarna } + if !common.IsNil(o.Maestro) { + toSerialize["maestro"] = o.Maestro + } + if !common.IsNil(o.Mc) { + toSerialize["mc"] = o.Mc + } if !common.IsNil(o.MealVoucherFR) { toSerialize["mealVoucher_FR"] = o.MealVoucherFR } @@ -833,8 +1219,8 @@ func (o PaymentMethodSetupInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Sofort) { toSerialize["sofort"] = o.Sofort } - if !common.IsNil(o.StoreId) { - toSerialize["storeId"] = o.StoreId + if !common.IsNil(o.StoreIds) { + toSerialize["storeIds"] = o.StoreIds } if !common.IsNil(o.Swish) { toSerialize["swish"] = o.Swish @@ -842,12 +1228,13 @@ func (o PaymentMethodSetupInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Twint) { toSerialize["twint"] = o.Twint } - if !common.IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type if !common.IsNil(o.Vipps) { toSerialize["vipps"] = o.Vipps } + if !common.IsNil(o.Visa) { + toSerialize["visa"] = o.Visa + } return toSerialize, nil } @@ -897,7 +1284,7 @@ func (o *PaymentMethodSetupInfo) isValidShopperInteraction() bool { return false } func (o *PaymentMethodSetupInfo) isValidType() bool { - var allowedEnumValues = []string{"afterpaytouch", "alipay", "alipay_hk", "amex", "applepay", "bcmc", "blik", "cartebancaire", "clearpay", "cup", "diners", "directEbanking", "directdebit_GB", "discover", "ebanking_FI", "eftpos_australia", "elo", "elocredit", "elodebit", "girocard", "googlepay", "hiper", "hipercard", "ideal", "interac_card", "jcb", "klarna", "klarna_account", "klarna_paynow", "maestro", "mbway", "mc", "mcdebit", "mealVoucher_FR", "mobilepay", "multibanco", "onlineBanking_PL", "paybybank", "paypal", "payshop", "swish", "trustly", "twint", "twint_pos", "vipps", "visa", "visadebit", "vpay", "wechatpay", "wechatpay_pos"} + var allowedEnumValues = []string{"afterpaytouch", "alipay", "alipay_hk", "amex", "applepay", "bcmc", "blik", "cartebancaire", "clearpay", "cup", "diners", "directdebit_GB", "discover", "ebanking_FI", "eftpos_australia", "elo", "elocredit", "elodebit", "girocard", "googlepay", "hiper", "hipercard", "ideal", "interac_card", "jcb", "klarna", "klarna_account", "klarna_paynow", "maestro", "mbway", "mc", "mcdebit", "mealVoucher_FR", "mobilepay", "multibanco", "onlineBanking_PL", "paybybank", "paypal", "payshop", "swish", "trustly", "twint", "twint_pos", "vipps", "visa", "visadebit", "vpay", "wechatpay", "wechatpay_pos"} for _, allowed := range allowedEnumValues { if o.GetType() == allowed { return true diff --git a/src/management/model_payment_method_wrapper.go b/src/management/model_payment_method_wrapper.go deleted file mode 100644 index e3b3361ba..000000000 --- a/src/management/model_payment_method_wrapper.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -Management API - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package management - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v7/src/common" -) - -// checks if the PaymentMethodWrapper type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &PaymentMethodWrapper{} - -// PaymentMethodWrapper struct for PaymentMethodWrapper -type PaymentMethodWrapper struct { - PaymentMethod *PaymentMethod `json:"PaymentMethod,omitempty"` -} - -// NewPaymentMethodWrapper instantiates a new PaymentMethodWrapper 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 NewPaymentMethodWrapper() *PaymentMethodWrapper { - this := PaymentMethodWrapper{} - return &this -} - -// NewPaymentMethodWrapperWithDefaults instantiates a new PaymentMethodWrapper 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 NewPaymentMethodWrapperWithDefaults() *PaymentMethodWrapper { - this := PaymentMethodWrapper{} - return &this -} - -// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. -func (o *PaymentMethodWrapper) GetPaymentMethod() PaymentMethod { - if o == nil || common.IsNil(o.PaymentMethod) { - var ret PaymentMethod - return ret - } - return *o.PaymentMethod -} - -// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PaymentMethodWrapper) GetPaymentMethodOk() (*PaymentMethod, bool) { - if o == nil || common.IsNil(o.PaymentMethod) { - return nil, false - } - return o.PaymentMethod, true -} - -// HasPaymentMethod returns a boolean if a field has been set. -func (o *PaymentMethodWrapper) HasPaymentMethod() bool { - if o != nil && !common.IsNil(o.PaymentMethod) { - return true - } - - return false -} - -// SetPaymentMethod gets a reference to the given PaymentMethod and assigns it to the PaymentMethod field. -func (o *PaymentMethodWrapper) SetPaymentMethod(v PaymentMethod) { - o.PaymentMethod = &v -} - -func (o PaymentMethodWrapper) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PaymentMethodWrapper) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.PaymentMethod) { - toSerialize["PaymentMethod"] = o.PaymentMethod - } - return toSerialize, nil -} - -type NullablePaymentMethodWrapper struct { - value *PaymentMethodWrapper - isSet bool -} - -func (v NullablePaymentMethodWrapper) Get() *PaymentMethodWrapper { - return v.value -} - -func (v *NullablePaymentMethodWrapper) Set(val *PaymentMethodWrapper) { - v.value = val - v.isSet = true -} - -func (v NullablePaymentMethodWrapper) IsSet() bool { - return v.isSet -} - -func (v *NullablePaymentMethodWrapper) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePaymentMethodWrapper(val *PaymentMethodWrapper) *NullablePaymentMethodWrapper { - return &NullablePaymentMethodWrapper{value: val, isSet: true} -} - -func (v NullablePaymentMethodWrapper) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePaymentMethodWrapper) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/src/management/model_payout_settings.go b/src/management/model_payout_settings.go index c7065171b..7b52731c9 100644 --- a/src/management/model_payout_settings.go +++ b/src/management/model_payout_settings.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayoutSettings type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_payout_settings_request.go b/src/management/model_payout_settings_request.go index ab9ce5c26..46db05efc 100644 --- a/src/management/model_payout_settings_request.go +++ b/src/management/model_payout_settings_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayoutSettingsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_payout_settings_response.go b/src/management/model_payout_settings_response.go index 8b65bcaf0..183598b2e 100644 --- a/src/management/model_payout_settings_response.go +++ b/src/management/model_payout_settings_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayoutSettingsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_profile.go b/src/management/model_profile.go index ce1d42796..15ae48853 100644 --- a/src/management/model_profile.go +++ b/src/management/model_profile.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Profile type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_receipt_options.go b/src/management/model_receipt_options.go index 4a19f1291..089e6ef52 100644 --- a/src/management/model_receipt_options.go +++ b/src/management/model_receipt_options.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ReceiptOptions type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_receipt_printing.go b/src/management/model_receipt_printing.go index 61def9d14..f232ade81 100644 --- a/src/management/model_receipt_printing.go +++ b/src/management/model_receipt_printing.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ReceiptPrinting type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_release_update_details.go b/src/management/model_release_update_details.go index 2c98d1329..07f7986f7 100644 --- a/src/management/model_release_update_details.go +++ b/src/management/model_release_update_details.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ReleaseUpdateDetails type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_request_activation_response.go b/src/management/model_request_activation_response.go index f41abc171..7bcd76d59 100644 --- a/src/management/model_request_activation_response.go +++ b/src/management/model_request_activation_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RequestActivationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_rest_service_error.go b/src/management/model_rest_service_error.go index 645860fff..c5982dbad 100644 --- a/src/management/model_rest_service_error.go +++ b/src/management/model_rest_service_error.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RestServiceError type satisfies the MappedNullable interface at compile time @@ -26,7 +26,7 @@ type RestServiceError struct { // A unique URI that identifies the specific occurrence of the problem. Instance *string `json:"instance,omitempty"` // Detailed explanation of each validation error, when applicable. - InvalidFields []InvalidFieldWrapper `json:"invalidFields,omitempty"` + InvalidFields []InvalidField `json:"invalidFields,omitempty"` // A unique reference for the request, essentially the same as `pspReference`. RequestId *string `json:"requestId,omitempty"` Response *JSONObject `json:"response,omitempty"` @@ -141,9 +141,9 @@ func (o *RestServiceError) SetInstance(v string) { } // GetInvalidFields returns the InvalidFields field value if set, zero value otherwise. -func (o *RestServiceError) GetInvalidFields() []InvalidFieldWrapper { +func (o *RestServiceError) GetInvalidFields() []InvalidField { if o == nil || common.IsNil(o.InvalidFields) { - var ret []InvalidFieldWrapper + var ret []InvalidField return ret } return o.InvalidFields @@ -151,7 +151,7 @@ func (o *RestServiceError) GetInvalidFields() []InvalidFieldWrapper { // GetInvalidFieldsOk returns a tuple with the InvalidFields field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RestServiceError) GetInvalidFieldsOk() ([]InvalidFieldWrapper, bool) { +func (o *RestServiceError) GetInvalidFieldsOk() ([]InvalidField, bool) { if o == nil || common.IsNil(o.InvalidFields) { return nil, false } @@ -167,8 +167,8 @@ func (o *RestServiceError) HasInvalidFields() bool { return false } -// SetInvalidFields gets a reference to the given []InvalidFieldWrapper and assigns it to the InvalidFields field. -func (o *RestServiceError) SetInvalidFields(v []InvalidFieldWrapper) { +// SetInvalidFields gets a reference to the given []InvalidField and assigns it to the InvalidFields field. +func (o *RestServiceError) SetInvalidFields(v []InvalidField) { o.InvalidFields = v } diff --git a/src/management/model_schedule_terminal_actions_request.go b/src/management/model_schedule_terminal_actions_request.go index 27bb3d8ce..846822ffd 100644 --- a/src/management/model_schedule_terminal_actions_request.go +++ b/src/management/model_schedule_terminal_actions_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ScheduleTerminalActionsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_schedule_terminal_actions_request_action_details.go b/src/management/model_schedule_terminal_actions_request_action_details.go index 65582a125..aefc52294 100644 --- a/src/management/model_schedule_terminal_actions_request_action_details.go +++ b/src/management/model_schedule_terminal_actions_request_action_details.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/management/model_schedule_terminal_actions_response.go b/src/management/model_schedule_terminal_actions_response.go index 5cb0590be..157a8014e 100644 --- a/src/management/model_schedule_terminal_actions_response.go +++ b/src/management/model_schedule_terminal_actions_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ScheduleTerminalActionsResponse type satisfies the MappedNullable interface at compile time @@ -26,9 +26,6 @@ type ScheduleTerminalActionsResponse struct { ScheduledAt *string `json:"scheduledAt,omitempty"` // The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. StoreId *string `json:"storeId,omitempty"` - // A list of unique IDs of the terminals that the action applies to. - // Deprecated - TerminalIds []string `json:"terminalIds,omitempty"` // The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. TerminalsWithErrors *map[string][]string `json:"terminalsWithErrors,omitempty"` // The number of terminals for which scheduling the action failed. @@ -182,41 +179,6 @@ func (o *ScheduleTerminalActionsResponse) SetStoreId(v string) { o.StoreId = &v } -// GetTerminalIds returns the TerminalIds field value if set, zero value otherwise. -// Deprecated -func (o *ScheduleTerminalActionsResponse) GetTerminalIds() []string { - if o == nil || common.IsNil(o.TerminalIds) { - var ret []string - return ret - } - return o.TerminalIds -} - -// GetTerminalIdsOk returns a tuple with the TerminalIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *ScheduleTerminalActionsResponse) GetTerminalIdsOk() ([]string, bool) { - if o == nil || common.IsNil(o.TerminalIds) { - return nil, false - } - return o.TerminalIds, true -} - -// HasTerminalIds returns a boolean if a field has been set. -func (o *ScheduleTerminalActionsResponse) HasTerminalIds() bool { - if o != nil && !common.IsNil(o.TerminalIds) { - return true - } - - return false -} - -// SetTerminalIds gets a reference to the given []string and assigns it to the TerminalIds field. -// Deprecated -func (o *ScheduleTerminalActionsResponse) SetTerminalIds(v []string) { - o.TerminalIds = v -} - // GetTerminalsWithErrors returns the TerminalsWithErrors field value if set, zero value otherwise. func (o *ScheduleTerminalActionsResponse) GetTerminalsWithErrors() map[string][]string { if o == nil || common.IsNil(o.TerminalsWithErrors) { @@ -335,9 +297,6 @@ func (o ScheduleTerminalActionsResponse) ToMap() (map[string]interface{}, error) if !common.IsNil(o.StoreId) { toSerialize["storeId"] = o.StoreId } - if !common.IsNil(o.TerminalIds) { - toSerialize["terminalIds"] = o.TerminalIds - } if !common.IsNil(o.TerminalsWithErrors) { toSerialize["terminalsWithErrors"] = o.TerminalsWithErrors } diff --git a/src/management/model_settings.go b/src/management/model_settings.go index e0f93984d..6dda6c775 100644 --- a/src/management/model_settings.go +++ b/src/management/model_settings.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Settings type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_shipping_location.go b/src/management/model_shipping_location.go index f8085e1f9..ca8dd1ab2 100644 --- a/src/management/model_shipping_location.go +++ b/src/management/model_shipping_location.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ShippingLocation type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_shipping_locations_response.go b/src/management/model_shipping_locations_response.go index 5b737c692..a8b8a60c9 100644 --- a/src/management/model_shipping_locations_response.go +++ b/src/management/model_shipping_locations_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ShippingLocationsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_shopper_statement.go b/src/management/model_shopper_statement.go deleted file mode 100644 index b6a59618d..000000000 --- a/src/management/model_shopper_statement.go +++ /dev/null @@ -1,176 +0,0 @@ -/* -Management API - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package management - -import ( - "encoding/json" - - "github.com/adyen/adyen-go-api-library/v7/src/common" -) - -// checks if the ShopperStatement type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &ShopperStatement{} - -// ShopperStatement struct for ShopperStatement -type ShopperStatement struct { - // The name you want to be shown on the shopper's bank or credit card statement. Can't be all numbers. If a shopper statement is present, this field is required. - DoingBusinessAsName *string `json:"doingBusinessAsName,omitempty"` - // The type of shopperstatement you want to use: fixed, append or dynamic - Type *string `json:"type,omitempty"` -} - -// NewShopperStatement instantiates a new ShopperStatement 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 NewShopperStatement() *ShopperStatement { - this := ShopperStatement{} - var type_ string = "dynamic" - this.Type = &type_ - return &this -} - -// NewShopperStatementWithDefaults instantiates a new ShopperStatement 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 NewShopperStatementWithDefaults() *ShopperStatement { - this := ShopperStatement{} - var type_ string = "dynamic" - this.Type = &type_ - return &this -} - -// GetDoingBusinessAsName returns the DoingBusinessAsName field value if set, zero value otherwise. -func (o *ShopperStatement) GetDoingBusinessAsName() string { - if o == nil || common.IsNil(o.DoingBusinessAsName) { - var ret string - return ret - } - return *o.DoingBusinessAsName -} - -// GetDoingBusinessAsNameOk returns a tuple with the DoingBusinessAsName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ShopperStatement) GetDoingBusinessAsNameOk() (*string, bool) { - if o == nil || common.IsNil(o.DoingBusinessAsName) { - return nil, false - } - return o.DoingBusinessAsName, true -} - -// HasDoingBusinessAsName returns a boolean if a field has been set. -func (o *ShopperStatement) HasDoingBusinessAsName() bool { - if o != nil && !common.IsNil(o.DoingBusinessAsName) { - return true - } - - return false -} - -// SetDoingBusinessAsName gets a reference to the given string and assigns it to the DoingBusinessAsName field. -func (o *ShopperStatement) SetDoingBusinessAsName(v string) { - o.DoingBusinessAsName = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *ShopperStatement) GetType() string { - if o == nil || common.IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ShopperStatement) GetTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *ShopperStatement) HasType() bool { - if o != nil && !common.IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *ShopperStatement) SetType(v string) { - o.Type = &v -} - -func (o ShopperStatement) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ShopperStatement) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !common.IsNil(o.DoingBusinessAsName) { - toSerialize["doingBusinessAsName"] = o.DoingBusinessAsName - } - if !common.IsNil(o.Type) { - toSerialize["type"] = o.Type - } - return toSerialize, nil -} - -type NullableShopperStatement struct { - value *ShopperStatement - isSet bool -} - -func (v NullableShopperStatement) Get() *ShopperStatement { - return v.value -} - -func (v *NullableShopperStatement) Set(val *ShopperStatement) { - v.value = val - v.isSet = true -} - -func (v NullableShopperStatement) IsSet() bool { - return v.isSet -} - -func (v *NullableShopperStatement) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableShopperStatement(val *ShopperStatement) *NullableShopperStatement { - return &NullableShopperStatement{value: val, isSet: true} -} - -func (v NullableShopperStatement) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableShopperStatement) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -func (o *ShopperStatement) isValidType() bool { - var allowedEnumValues = []string{"append", "dynamic", "fixed"} - for _, allowed := range allowedEnumValues { - if o.GetType() == allowed { - return true - } - } - return false -} diff --git a/src/management/model_signature.go b/src/management/model_signature.go index b543e362a..b6d8aaae3 100644 --- a/src/management/model_signature.go +++ b/src/management/model_signature.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Signature type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_sofort_info.go b/src/management/model_sofort_info.go index 5ed430ffc..b80581a30 100644 --- a/src/management/model_sofort_info.go +++ b/src/management/model_sofort_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SofortInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_split_configuration.go b/src/management/model_split_configuration.go index b625b7d35..1b39ff815 100644 --- a/src/management/model_split_configuration.go +++ b/src/management/model_split_configuration.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SplitConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_split_configuration_list.go b/src/management/model_split_configuration_list.go index 221be2af4..4d7e95cd9 100644 --- a/src/management/model_split_configuration_list.go +++ b/src/management/model_split_configuration_list.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SplitConfigurationList type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_split_configuration_logic.go b/src/management/model_split_configuration_logic.go index 6b153010c..f60899512 100644 --- a/src/management/model_split_configuration_logic.go +++ b/src/management/model_split_configuration_logic.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SplitConfigurationLogic type satisfies the MappedNullable interface at compile time @@ -19,14 +19,28 @@ var _ common.MappedNullable = &SplitConfigurationLogic{} // SplitConfigurationLogic struct for SplitConfigurationLogic type SplitConfigurationLogic struct { + // Specifies the logic to apply when booking the transaction fees. Should be combined with adyenFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AcquiringFees *string `json:"acquiringFees,omitempty"` AdditionalCommission *AdditionalCommission `json:"additionalCommission,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, interchange & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AdyenCommission *string `json:"adyenCommission,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with acquiringFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AdyenFees *string `json:"adyenFees,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & interchange. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AdyenMarkup *string `json:"adyenMarkup,omitempty"` // Specifies the logic to apply when booking the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - Chargeback *string `json:"chargeback,omitempty"` - Commission Commission `json:"commission"` - // Specifies the logic to apply when booking the transaction fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - PaymentFee string `json:"paymentFee"` + Chargeback *string `json:"chargeback,omitempty"` + // Specifies the logic to apply when allocating the chargeback costs. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + ChargebackCostAllocation *string `json:"chargebackCostAllocation,omitempty"` + Commission Commission `json:"commission"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + Interchange *string `json:"interchange,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Cannot be combined with other fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + PaymentFee *string `json:"paymentFee,omitempty"` // Specifies the logic to apply when booking the amount left over after currency conversion. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. Remainder *string `json:"remainder,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with interchange, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + SchemeFee *string `json:"schemeFee,omitempty"` // Unique identifier of the split logic that is applied when the split configuration conditions are met. SplitLogicId *string `json:"splitLogicId,omitempty"` // Specifies the logic to apply when booking the surcharge amount. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** @@ -39,10 +53,9 @@ type SplitConfigurationLogic 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 NewSplitConfigurationLogic(commission Commission, paymentFee string) *SplitConfigurationLogic { +func NewSplitConfigurationLogic(commission Commission) *SplitConfigurationLogic { this := SplitConfigurationLogic{} this.Commission = commission - this.PaymentFee = paymentFee return &this } @@ -54,6 +67,38 @@ func NewSplitConfigurationLogicWithDefaults() *SplitConfigurationLogic { return &this } +// GetAcquiringFees returns the AcquiringFees field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetAcquiringFees() string { + if o == nil || common.IsNil(o.AcquiringFees) { + var ret string + return ret + } + return *o.AcquiringFees +} + +// GetAcquiringFeesOk returns a tuple with the AcquiringFees field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetAcquiringFeesOk() (*string, bool) { + if o == nil || common.IsNil(o.AcquiringFees) { + return nil, false + } + return o.AcquiringFees, true +} + +// HasAcquiringFees returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasAcquiringFees() bool { + if o != nil && !common.IsNil(o.AcquiringFees) { + return true + } + + return false +} + +// SetAcquiringFees gets a reference to the given string and assigns it to the AcquiringFees field. +func (o *SplitConfigurationLogic) SetAcquiringFees(v string) { + o.AcquiringFees = &v +} + // GetAdditionalCommission returns the AdditionalCommission field value if set, zero value otherwise. func (o *SplitConfigurationLogic) GetAdditionalCommission() AdditionalCommission { if o == nil || common.IsNil(o.AdditionalCommission) { @@ -86,6 +131,102 @@ func (o *SplitConfigurationLogic) SetAdditionalCommission(v AdditionalCommission o.AdditionalCommission = &v } +// GetAdyenCommission returns the AdyenCommission field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetAdyenCommission() string { + if o == nil || common.IsNil(o.AdyenCommission) { + var ret string + return ret + } + return *o.AdyenCommission +} + +// GetAdyenCommissionOk returns a tuple with the AdyenCommission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetAdyenCommissionOk() (*string, bool) { + if o == nil || common.IsNil(o.AdyenCommission) { + return nil, false + } + return o.AdyenCommission, true +} + +// HasAdyenCommission returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasAdyenCommission() bool { + if o != nil && !common.IsNil(o.AdyenCommission) { + return true + } + + return false +} + +// SetAdyenCommission gets a reference to the given string and assigns it to the AdyenCommission field. +func (o *SplitConfigurationLogic) SetAdyenCommission(v string) { + o.AdyenCommission = &v +} + +// GetAdyenFees returns the AdyenFees field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetAdyenFees() string { + if o == nil || common.IsNil(o.AdyenFees) { + var ret string + return ret + } + return *o.AdyenFees +} + +// GetAdyenFeesOk returns a tuple with the AdyenFees field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetAdyenFeesOk() (*string, bool) { + if o == nil || common.IsNil(o.AdyenFees) { + return nil, false + } + return o.AdyenFees, true +} + +// HasAdyenFees returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasAdyenFees() bool { + if o != nil && !common.IsNil(o.AdyenFees) { + return true + } + + return false +} + +// SetAdyenFees gets a reference to the given string and assigns it to the AdyenFees field. +func (o *SplitConfigurationLogic) SetAdyenFees(v string) { + o.AdyenFees = &v +} + +// GetAdyenMarkup returns the AdyenMarkup field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetAdyenMarkup() string { + if o == nil || common.IsNil(o.AdyenMarkup) { + var ret string + return ret + } + return *o.AdyenMarkup +} + +// GetAdyenMarkupOk returns a tuple with the AdyenMarkup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetAdyenMarkupOk() (*string, bool) { + if o == nil || common.IsNil(o.AdyenMarkup) { + return nil, false + } + return o.AdyenMarkup, true +} + +// HasAdyenMarkup returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasAdyenMarkup() bool { + if o != nil && !common.IsNil(o.AdyenMarkup) { + return true + } + + return false +} + +// SetAdyenMarkup gets a reference to the given string and assigns it to the AdyenMarkup field. +func (o *SplitConfigurationLogic) SetAdyenMarkup(v string) { + o.AdyenMarkup = &v +} + // GetChargeback returns the Chargeback field value if set, zero value otherwise. func (o *SplitConfigurationLogic) GetChargeback() string { if o == nil || common.IsNil(o.Chargeback) { @@ -118,6 +259,38 @@ func (o *SplitConfigurationLogic) SetChargeback(v string) { o.Chargeback = &v } +// GetChargebackCostAllocation returns the ChargebackCostAllocation field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetChargebackCostAllocation() string { + if o == nil || common.IsNil(o.ChargebackCostAllocation) { + var ret string + return ret + } + return *o.ChargebackCostAllocation +} + +// GetChargebackCostAllocationOk returns a tuple with the ChargebackCostAllocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetChargebackCostAllocationOk() (*string, bool) { + if o == nil || common.IsNil(o.ChargebackCostAllocation) { + return nil, false + } + return o.ChargebackCostAllocation, true +} + +// HasChargebackCostAllocation returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasChargebackCostAllocation() bool { + if o != nil && !common.IsNil(o.ChargebackCostAllocation) { + return true + } + + return false +} + +// SetChargebackCostAllocation gets a reference to the given string and assigns it to the ChargebackCostAllocation field. +func (o *SplitConfigurationLogic) SetChargebackCostAllocation(v string) { + o.ChargebackCostAllocation = &v +} + // GetCommission returns the Commission field value func (o *SplitConfigurationLogic) GetCommission() Commission { if o == nil { @@ -142,28 +315,68 @@ func (o *SplitConfigurationLogic) SetCommission(v Commission) { o.Commission = v } -// GetPaymentFee returns the PaymentFee field value -func (o *SplitConfigurationLogic) GetPaymentFee() string { - if o == nil { +// GetInterchange returns the Interchange field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetInterchange() string { + if o == nil || common.IsNil(o.Interchange) { var ret string return ret } + return *o.Interchange +} + +// GetInterchangeOk returns a tuple with the Interchange field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetInterchangeOk() (*string, bool) { + if o == nil || common.IsNil(o.Interchange) { + return nil, false + } + return o.Interchange, true +} + +// HasInterchange returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasInterchange() bool { + if o != nil && !common.IsNil(o.Interchange) { + return true + } + + return false +} + +// SetInterchange gets a reference to the given string and assigns it to the Interchange field. +func (o *SplitConfigurationLogic) SetInterchange(v string) { + o.Interchange = &v +} - return o.PaymentFee +// GetPaymentFee returns the PaymentFee field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetPaymentFee() string { + if o == nil || common.IsNil(o.PaymentFee) { + var ret string + return ret + } + return *o.PaymentFee } -// GetPaymentFeeOk returns a tuple with the PaymentFee field value +// GetPaymentFeeOk returns a tuple with the PaymentFee field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SplitConfigurationLogic) GetPaymentFeeOk() (*string, bool) { - if o == nil { + if o == nil || common.IsNil(o.PaymentFee) { return nil, false } - return &o.PaymentFee, true + return o.PaymentFee, true +} + +// HasPaymentFee returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasPaymentFee() bool { + if o != nil && !common.IsNil(o.PaymentFee) { + return true + } + + return false } -// SetPaymentFee sets field value +// SetPaymentFee gets a reference to the given string and assigns it to the PaymentFee field. func (o *SplitConfigurationLogic) SetPaymentFee(v string) { - o.PaymentFee = v + o.PaymentFee = &v } // GetRemainder returns the Remainder field value if set, zero value otherwise. @@ -198,6 +411,38 @@ func (o *SplitConfigurationLogic) SetRemainder(v string) { o.Remainder = &v } +// GetSchemeFee returns the SchemeFee field value if set, zero value otherwise. +func (o *SplitConfigurationLogic) GetSchemeFee() string { + if o == nil || common.IsNil(o.SchemeFee) { + var ret string + return ret + } + return *o.SchemeFee +} + +// GetSchemeFeeOk returns a tuple with the SchemeFee field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SplitConfigurationLogic) GetSchemeFeeOk() (*string, bool) { + if o == nil || common.IsNil(o.SchemeFee) { + return nil, false + } + return o.SchemeFee, true +} + +// HasSchemeFee returns a boolean if a field has been set. +func (o *SplitConfigurationLogic) HasSchemeFee() bool { + if o != nil && !common.IsNil(o.SchemeFee) { + return true + } + + return false +} + +// SetSchemeFee gets a reference to the given string and assigns it to the SchemeFee field. +func (o *SplitConfigurationLogic) SetSchemeFee(v string) { + o.SchemeFee = &v +} + // GetSplitLogicId returns the SplitLogicId field value if set, zero value otherwise. func (o *SplitConfigurationLogic) GetSplitLogicId() string { if o == nil || common.IsNil(o.SplitLogicId) { @@ -304,17 +549,40 @@ func (o SplitConfigurationLogic) MarshalJSON() ([]byte, error) { func (o SplitConfigurationLogic) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !common.IsNil(o.AcquiringFees) { + toSerialize["acquiringFees"] = o.AcquiringFees + } if !common.IsNil(o.AdditionalCommission) { toSerialize["additionalCommission"] = o.AdditionalCommission } + if !common.IsNil(o.AdyenCommission) { + toSerialize["adyenCommission"] = o.AdyenCommission + } + if !common.IsNil(o.AdyenFees) { + toSerialize["adyenFees"] = o.AdyenFees + } + if !common.IsNil(o.AdyenMarkup) { + toSerialize["adyenMarkup"] = o.AdyenMarkup + } if !common.IsNil(o.Chargeback) { toSerialize["chargeback"] = o.Chargeback } + if !common.IsNil(o.ChargebackCostAllocation) { + toSerialize["chargebackCostAllocation"] = o.ChargebackCostAllocation + } toSerialize["commission"] = o.Commission - toSerialize["paymentFee"] = o.PaymentFee + if !common.IsNil(o.Interchange) { + toSerialize["interchange"] = o.Interchange + } + if !common.IsNil(o.PaymentFee) { + toSerialize["paymentFee"] = o.PaymentFee + } if !common.IsNil(o.Remainder) { toSerialize["remainder"] = o.Remainder } + if !common.IsNil(o.SchemeFee) { + toSerialize["schemeFee"] = o.SchemeFee + } if !common.IsNil(o.SplitLogicId) { toSerialize["splitLogicId"] = o.SplitLogicId } @@ -363,6 +631,42 @@ func (v *NullableSplitConfigurationLogic) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } +func (o *SplitConfigurationLogic) isValidAcquiringFees() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAcquiringFees() == allowed { + return true + } + } + return false +} +func (o *SplitConfigurationLogic) isValidAdyenCommission() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAdyenCommission() == allowed { + return true + } + } + return false +} +func (o *SplitConfigurationLogic) isValidAdyenFees() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAdyenFees() == allowed { + return true + } + } + return false +} +func (o *SplitConfigurationLogic) isValidAdyenMarkup() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAdyenMarkup() == allowed { + return true + } + } + return false +} func (o *SplitConfigurationLogic) isValidChargeback() bool { var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount", "deductAccordingToSplitRatio"} for _, allowed := range allowedEnumValues { @@ -372,6 +676,24 @@ func (o *SplitConfigurationLogic) isValidChargeback() bool { } return false } +func (o *SplitConfigurationLogic) isValidChargebackCostAllocation() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetChargebackCostAllocation() == allowed { + return true + } + } + return false +} +func (o *SplitConfigurationLogic) isValidInterchange() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetInterchange() == allowed { + return true + } + } + return false +} func (o *SplitConfigurationLogic) isValidPaymentFee() bool { var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} for _, allowed := range allowedEnumValues { @@ -390,6 +712,15 @@ func (o *SplitConfigurationLogic) isValidRemainder() bool { } return false } +func (o *SplitConfigurationLogic) isValidSchemeFee() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetSchemeFee() == allowed { + return true + } + } + return false +} func (o *SplitConfigurationLogic) isValidSurcharge() bool { var allowedEnumValues = []string{"addToLiableAccount", "addToOneBalanceAccount"} for _, allowed := range allowedEnumValues { diff --git a/src/management/model_split_configuration_rule.go b/src/management/model_split_configuration_rule.go index 9870c95c7..c43f32bc9 100644 --- a/src/management/model_split_configuration_rule.go +++ b/src/management/model_split_configuration_rule.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SplitConfigurationRule type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_standalone.go b/src/management/model_standalone.go index 8f8a28b99..a59ca01a1 100644 --- a/src/management/model_standalone.go +++ b/src/management/model_standalone.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Standalone type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_store.go b/src/management/model_store.go index 50fdc7484..fd6e4eb9c 100644 --- a/src/management/model_store.go +++ b/src/management/model_store.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Store type satisfies the MappedNullable interface at compile time @@ -31,9 +31,9 @@ type Store struct { Id *string `json:"id,omitempty"` // The unique identifier of the merchant account that the store belongs to. MerchantId *string `json:"merchantId,omitempty"` - // The phone number of the store, including '+' and country code. + // The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. PhoneNumber *string `json:"phoneNumber,omitempty"` - // A reference to recognize the store by. Also known as the store code. Allowed characters: Lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + // A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) Reference *string `json:"reference,omitempty"` // The store name shown on the shopper's bank or credit card statement and on the shopper receipt. ShopperStatement *string `json:"shopperStatement,omitempty"` diff --git a/src/management/model_store_creation_request.go b/src/management/model_store_creation_request.go index b3cc54c44..3d625aa91 100644 --- a/src/management/model_store_creation_request.go +++ b/src/management/model_store_creation_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreCreationRequest type satisfies the MappedNullable interface at compile time @@ -24,9 +24,9 @@ type StoreCreationRequest struct { BusinessLineIds []string `json:"businessLineIds,omitempty"` // Your description of the store. Description string `json:"description"` - // Used by certain payment methods and tax authorities to uniquely identify the store. For CNPJ in Brazil, ZIP in Australia and SIRET in France. This field is conditionally required if the store is in Brazil, Australia or France. For CNPJ the format is 00.000.000/0000-00, can be submitted as just digits, or with dots, slash & hyphen. For Australian stores ZIP an optional field used by the Zip payment method. For SIRET the format is 14 digits. + // The unique identifier of the store, used by certain payment methods and tax authorities. Accepts up to 14 digits. Required for CNPJ in Brazil, in the format 00.000.000/00git00-00 separated by dots, slashes, hyphens, or without separators. Optional for Zip in Australia and SIRET in France, required except for nonprofit organizations and incorporated associations. ExternalReferenceId *string `json:"externalReferenceId,omitempty"` - // The phone number of the store, including '+' and country code. + // The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. PhoneNumber string `json:"phoneNumber"` // Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). Reference *string `json:"reference,omitempty"` diff --git a/src/management/model_store_creation_with_merchant_code_request.go b/src/management/model_store_creation_with_merchant_code_request.go index 52d42346c..f503b333c 100644 --- a/src/management/model_store_creation_with_merchant_code_request.go +++ b/src/management/model_store_creation_with_merchant_code_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreCreationWithMerchantCodeRequest type satisfies the MappedNullable interface at compile time @@ -24,11 +24,11 @@ type StoreCreationWithMerchantCodeRequest struct { BusinessLineIds []string `json:"businessLineIds,omitempty"` // Your description of the store. Description string `json:"description"` - // Used by certain payment methods and tax authorities to uniquely identify the store. For CNPJ in Brazil, ZIP in Australia and SIRET in France. This field is conditionally required if the store is in Brazil, Australia or France. For CNPJ the format is 00.000.000/0000-00, can be submitted as just digits, or with dots, slash & hyphen. For Australian stores ZIP an optional field used by the Zip payment method. For SIRET the format is 14 digits. + // The unique identifier of the store, used by certain payment methods and tax authorities. Accepts up to 14 digits. Required for CNPJ in Brazil, in the format 00.000.000/00git00-00 separated by dots, slashes, hyphens, or without separators. Optional for Zip in Australia and SIRET in France, required except for nonprofit organizations and incorporated associations. ExternalReferenceId *string `json:"externalReferenceId,omitempty"` // The unique identifier of the merchant account that the store belongs to. MerchantId string `json:"merchantId"` - // The phone number of the store, including '+' and country code. + // The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. PhoneNumber string `json:"phoneNumber"` // Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). Reference *string `json:"reference,omitempty"` diff --git a/src/management/model_store_location.go b/src/management/model_store_location.go index eb0c11731..961763a44 100644 --- a/src/management/model_store_location.go +++ b/src/management/model_store_location.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreLocation type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_store_split_configuration.go b/src/management/model_store_split_configuration.go index 9acf28132..c19747da3 100644 --- a/src/management/model_store_split_configuration.go +++ b/src/management/model_store_split_configuration.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreSplitConfiguration type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_surcharge.go b/src/management/model_surcharge.go index 78298630d..a4b626f4f 100644 --- a/src/management/model_surcharge.go +++ b/src/management/model_surcharge.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Surcharge type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_swish_info.go b/src/management/model_swish_info.go index d2a7d95d9..e137eb6f3 100644 --- a/src/management/model_swish_info.go +++ b/src/management/model_swish_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SwishInfo type satisfies the MappedNullable interface at compile time @@ -20,15 +20,16 @@ var _ common.MappedNullable = &SwishInfo{} // SwishInfo struct for SwishInfo type SwishInfo struct { // Swish number. Format: 10 digits without spaces. For example, **1231111111**. - SwishNumber *string `json:"swishNumber,omitempty"` + SwishNumber string `json:"swishNumber"` } // NewSwishInfo instantiates a new SwishInfo 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 NewSwishInfo() *SwishInfo { +func NewSwishInfo(swishNumber string) *SwishInfo { this := SwishInfo{} + this.SwishNumber = swishNumber return &this } @@ -40,36 +41,28 @@ func NewSwishInfoWithDefaults() *SwishInfo { return &this } -// GetSwishNumber returns the SwishNumber field value if set, zero value otherwise. +// GetSwishNumber returns the SwishNumber field value func (o *SwishInfo) GetSwishNumber() string { - if o == nil || common.IsNil(o.SwishNumber) { + if o == nil { var ret string return ret } - return *o.SwishNumber + + return o.SwishNumber } -// GetSwishNumberOk returns a tuple with the SwishNumber field value if set, nil otherwise +// GetSwishNumberOk returns a tuple with the SwishNumber field value // and a boolean to check if the value has been set. func (o *SwishInfo) GetSwishNumberOk() (*string, bool) { - if o == nil || common.IsNil(o.SwishNumber) { + if o == nil { return nil, false } - return o.SwishNumber, true -} - -// HasSwishNumber returns a boolean if a field has been set. -func (o *SwishInfo) HasSwishNumber() bool { - if o != nil && !common.IsNil(o.SwishNumber) { - return true - } - - return false + return &o.SwishNumber, true } -// SetSwishNumber gets a reference to the given string and assigns it to the SwishNumber field. +// SetSwishNumber sets field value func (o *SwishInfo) SetSwishNumber(v string) { - o.SwishNumber = &v + o.SwishNumber = v } func (o SwishInfo) MarshalJSON() ([]byte, error) { @@ -82,9 +75,7 @@ func (o SwishInfo) MarshalJSON() ([]byte, error) { func (o SwishInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !common.IsNil(o.SwishNumber) { - toSerialize["swishNumber"] = o.SwishNumber - } + toSerialize["swishNumber"] = o.SwishNumber return toSerialize, nil } diff --git a/src/management/model_terminal.go b/src/management/model_terminal.go index 6567d399c..126c42146 100644 --- a/src/management/model_terminal.go +++ b/src/management/model_terminal.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Terminal type satisfies the MappedNullable interface at compile time @@ -20,50 +20,20 @@ var _ common.MappedNullable = &Terminal{} // Terminal struct for Terminal type Terminal struct { - // The [assignment status](https://docs.adyen.com/point-of-sale/automating-terminal-management/assign-terminals-api) of the terminal. If true, the terminal is assigned. If false, the terminal is in inventory and can't be boarded. - Assigned *bool `json:"assigned,omitempty"` - // The Bluetooth IP address of the terminal. - BluetoothIp *string `json:"bluetoothIp,omitempty"` - // The Bluetooth MAC address of the terminal. - BluetoothMac *string `json:"bluetoothMac,omitempty"` - // The city where the terminal is located. - City *string `json:"city,omitempty"` - // The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account. - CompanyAccount *string `json:"companyAccount,omitempty"` - // The country code of the country where the terminal is located. - CountryCode *string `json:"countryCode,omitempty"` - // The model name of the terminal. - DeviceModel *string `json:"deviceModel,omitempty"` - // The ethernet IP address of the terminal. - EthernetIp *string `json:"ethernetIp,omitempty"` - // The ethernet MAC address of the terminal. - EthernetMac *string `json:"ethernetMac,omitempty"` + Assignment *TerminalAssignment `json:"assignment,omitempty"` + Connectivity *TerminalConnectivity `json:"connectivity,omitempty"` // The software release currently in use on the terminal. FirmwareVersion *string `json:"firmwareVersion,omitempty"` - // The integrated circuit card identifier (ICCID) of the SIM card in the terminal. - Iccid *string `json:"iccid,omitempty"` // The unique identifier of the terminal. Id *string `json:"id,omitempty"` // Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. - LastActivityDateTime *time.Time `json:"lastActivityDateTime,omitempty"` + LastActivityAt *time.Time `json:"lastActivityAt,omitempty"` // Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. - LastTransactionDateTime *time.Time `json:"lastTransactionDateTime,omitempty"` - // The Ethernet link negotiation that the terminal uses: - `auto`: Auto-negotiation - `100full`: 100 Mbps full duplex - LinkNegotiation *string `json:"linkNegotiation,omitempty"` + LastTransactionAt *time.Time `json:"lastTransactionAt,omitempty"` + // The model name of the terminal. + Model *string `json:"model,omitempty"` // The serial number of the terminal. SerialNumber *string `json:"serialNumber,omitempty"` - // On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY. - SimStatus *string `json:"simStatus,omitempty"` - // Indicates when the terminal was last online, whether the terminal is being reassigned, or whether the terminal is turned off. If the terminal was last online more that a week ago, it is also shown as turned off. - Status *string `json:"status,omitempty"` - // The status of the store that the terminal is assigned to. - StoreStatus *string `json:"storeStatus,omitempty"` - // The terminal's IP address in your Wi-Fi network. - WifiIp *string `json:"wifiIp,omitempty"` - // The terminal's MAC address in your Wi-Fi network. - WifiMac *string `json:"wifiMac,omitempty"` - // The SSID of the Wi-Fi network that your terminal is connected to. - WifiSsid *string `json:"wifiSsid,omitempty"` } // NewTerminal instantiates a new Terminal object @@ -83,292 +53,68 @@ func NewTerminalWithDefaults() *Terminal { return &this } -// GetAssigned returns the Assigned field value if set, zero value otherwise. -func (o *Terminal) GetAssigned() bool { - if o == nil || common.IsNil(o.Assigned) { - var ret bool - return ret - } - return *o.Assigned -} - -// GetAssignedOk returns a tuple with the Assigned field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetAssignedOk() (*bool, bool) { - if o == nil || common.IsNil(o.Assigned) { - return nil, false - } - return o.Assigned, true -} - -// HasAssigned returns a boolean if a field has been set. -func (o *Terminal) HasAssigned() bool { - if o != nil && !common.IsNil(o.Assigned) { - return true - } - - return false -} - -// SetAssigned gets a reference to the given bool and assigns it to the Assigned field. -func (o *Terminal) SetAssigned(v bool) { - o.Assigned = &v -} - -// GetBluetoothIp returns the BluetoothIp field value if set, zero value otherwise. -func (o *Terminal) GetBluetoothIp() string { - if o == nil || common.IsNil(o.BluetoothIp) { - var ret string - return ret - } - return *o.BluetoothIp -} - -// GetBluetoothIpOk returns a tuple with the BluetoothIp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetBluetoothIpOk() (*string, bool) { - if o == nil || common.IsNil(o.BluetoothIp) { - return nil, false - } - return o.BluetoothIp, true -} - -// HasBluetoothIp returns a boolean if a field has been set. -func (o *Terminal) HasBluetoothIp() bool { - if o != nil && !common.IsNil(o.BluetoothIp) { - return true - } - - return false -} - -// SetBluetoothIp gets a reference to the given string and assigns it to the BluetoothIp field. -func (o *Terminal) SetBluetoothIp(v string) { - o.BluetoothIp = &v -} - -// GetBluetoothMac returns the BluetoothMac field value if set, zero value otherwise. -func (o *Terminal) GetBluetoothMac() string { - if o == nil || common.IsNil(o.BluetoothMac) { - var ret string - return ret - } - return *o.BluetoothMac -} - -// GetBluetoothMacOk returns a tuple with the BluetoothMac field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetBluetoothMacOk() (*string, bool) { - if o == nil || common.IsNil(o.BluetoothMac) { - return nil, false - } - return o.BluetoothMac, true -} - -// HasBluetoothMac returns a boolean if a field has been set. -func (o *Terminal) HasBluetoothMac() bool { - if o != nil && !common.IsNil(o.BluetoothMac) { - return true - } - - return false -} - -// SetBluetoothMac gets a reference to the given string and assigns it to the BluetoothMac field. -func (o *Terminal) SetBluetoothMac(v string) { - o.BluetoothMac = &v -} - -// GetCity returns the City field value if set, zero value otherwise. -func (o *Terminal) GetCity() string { - if o == nil || common.IsNil(o.City) { - var ret string +// GetAssignment returns the Assignment field value if set, zero value otherwise. +func (o *Terminal) GetAssignment() TerminalAssignment { + if o == nil || common.IsNil(o.Assignment) { + var ret TerminalAssignment return ret } - return *o.City + return *o.Assignment } -// GetCityOk returns a tuple with the City field value if set, nil otherwise +// GetAssignmentOk returns a tuple with the Assignment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Terminal) GetCityOk() (*string, bool) { - if o == nil || common.IsNil(o.City) { +func (o *Terminal) GetAssignmentOk() (*TerminalAssignment, bool) { + if o == nil || common.IsNil(o.Assignment) { return nil, false } - return o.City, true + return o.Assignment, true } -// HasCity returns a boolean if a field has been set. -func (o *Terminal) HasCity() bool { - if o != nil && !common.IsNil(o.City) { +// HasAssignment returns a boolean if a field has been set. +func (o *Terminal) HasAssignment() bool { + if o != nil && !common.IsNil(o.Assignment) { return true } return false } -// SetCity gets a reference to the given string and assigns it to the City field. -func (o *Terminal) SetCity(v string) { - o.City = &v +// SetAssignment gets a reference to the given TerminalAssignment and assigns it to the Assignment field. +func (o *Terminal) SetAssignment(v TerminalAssignment) { + o.Assignment = &v } -// GetCompanyAccount returns the CompanyAccount field value if set, zero value otherwise. -func (o *Terminal) GetCompanyAccount() string { - if o == nil || common.IsNil(o.CompanyAccount) { - var ret string +// GetConnectivity returns the Connectivity field value if set, zero value otherwise. +func (o *Terminal) GetConnectivity() TerminalConnectivity { + if o == nil || common.IsNil(o.Connectivity) { + var ret TerminalConnectivity return ret } - return *o.CompanyAccount + return *o.Connectivity } -// GetCompanyAccountOk returns a tuple with the CompanyAccount field value if set, nil otherwise +// GetConnectivityOk returns a tuple with the Connectivity field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Terminal) GetCompanyAccountOk() (*string, bool) { - if o == nil || common.IsNil(o.CompanyAccount) { +func (o *Terminal) GetConnectivityOk() (*TerminalConnectivity, bool) { + if o == nil || common.IsNil(o.Connectivity) { return nil, false } - return o.CompanyAccount, true + return o.Connectivity, true } -// HasCompanyAccount returns a boolean if a field has been set. -func (o *Terminal) HasCompanyAccount() bool { - if o != nil && !common.IsNil(o.CompanyAccount) { +// HasConnectivity returns a boolean if a field has been set. +func (o *Terminal) HasConnectivity() bool { + if o != nil && !common.IsNil(o.Connectivity) { return true } return false } -// SetCompanyAccount gets a reference to the given string and assigns it to the CompanyAccount field. -func (o *Terminal) SetCompanyAccount(v string) { - o.CompanyAccount = &v -} - -// GetCountryCode returns the CountryCode field value if set, zero value otherwise. -func (o *Terminal) GetCountryCode() string { - if o == nil || common.IsNil(o.CountryCode) { - var ret string - return ret - } - return *o.CountryCode -} - -// GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetCountryCodeOk() (*string, bool) { - if o == nil || common.IsNil(o.CountryCode) { - return nil, false - } - return o.CountryCode, true -} - -// HasCountryCode returns a boolean if a field has been set. -func (o *Terminal) HasCountryCode() bool { - if o != nil && !common.IsNil(o.CountryCode) { - return true - } - - return false -} - -// SetCountryCode gets a reference to the given string and assigns it to the CountryCode field. -func (o *Terminal) SetCountryCode(v string) { - o.CountryCode = &v -} - -// GetDeviceModel returns the DeviceModel field value if set, zero value otherwise. -func (o *Terminal) GetDeviceModel() string { - if o == nil || common.IsNil(o.DeviceModel) { - var ret string - return ret - } - return *o.DeviceModel -} - -// GetDeviceModelOk returns a tuple with the DeviceModel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetDeviceModelOk() (*string, bool) { - if o == nil || common.IsNil(o.DeviceModel) { - return nil, false - } - return o.DeviceModel, true -} - -// HasDeviceModel returns a boolean if a field has been set. -func (o *Terminal) HasDeviceModel() bool { - if o != nil && !common.IsNil(o.DeviceModel) { - return true - } - - return false -} - -// SetDeviceModel gets a reference to the given string and assigns it to the DeviceModel field. -func (o *Terminal) SetDeviceModel(v string) { - o.DeviceModel = &v -} - -// GetEthernetIp returns the EthernetIp field value if set, zero value otherwise. -func (o *Terminal) GetEthernetIp() string { - if o == nil || common.IsNil(o.EthernetIp) { - var ret string - return ret - } - return *o.EthernetIp -} - -// GetEthernetIpOk returns a tuple with the EthernetIp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetEthernetIpOk() (*string, bool) { - if o == nil || common.IsNil(o.EthernetIp) { - return nil, false - } - return o.EthernetIp, true -} - -// HasEthernetIp returns a boolean if a field has been set. -func (o *Terminal) HasEthernetIp() bool { - if o != nil && !common.IsNil(o.EthernetIp) { - return true - } - - return false -} - -// SetEthernetIp gets a reference to the given string and assigns it to the EthernetIp field. -func (o *Terminal) SetEthernetIp(v string) { - o.EthernetIp = &v -} - -// GetEthernetMac returns the EthernetMac field value if set, zero value otherwise. -func (o *Terminal) GetEthernetMac() string { - if o == nil || common.IsNil(o.EthernetMac) { - var ret string - return ret - } - return *o.EthernetMac -} - -// GetEthernetMacOk returns a tuple with the EthernetMac field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetEthernetMacOk() (*string, bool) { - if o == nil || common.IsNil(o.EthernetMac) { - return nil, false - } - return o.EthernetMac, true -} - -// HasEthernetMac returns a boolean if a field has been set. -func (o *Terminal) HasEthernetMac() bool { - if o != nil && !common.IsNil(o.EthernetMac) { - return true - } - - return false -} - -// SetEthernetMac gets a reference to the given string and assigns it to the EthernetMac field. -func (o *Terminal) SetEthernetMac(v string) { - o.EthernetMac = &v +// SetConnectivity gets a reference to the given TerminalConnectivity and assigns it to the Connectivity field. +func (o *Terminal) SetConnectivity(v TerminalConnectivity) { + o.Connectivity = &v } // GetFirmwareVersion returns the FirmwareVersion field value if set, zero value otherwise. @@ -403,38 +149,6 @@ func (o *Terminal) SetFirmwareVersion(v string) { o.FirmwareVersion = &v } -// GetIccid returns the Iccid field value if set, zero value otherwise. -func (o *Terminal) GetIccid() string { - if o == nil || common.IsNil(o.Iccid) { - var ret string - return ret - } - return *o.Iccid -} - -// GetIccidOk returns a tuple with the Iccid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetIccidOk() (*string, bool) { - if o == nil || common.IsNil(o.Iccid) { - return nil, false - } - return o.Iccid, true -} - -// HasIccid returns a boolean if a field has been set. -func (o *Terminal) HasIccid() bool { - if o != nil && !common.IsNil(o.Iccid) { - return true - } - - return false -} - -// SetIccid gets a reference to the given string and assigns it to the Iccid field. -func (o *Terminal) SetIccid(v string) { - o.Iccid = &v -} - // GetId returns the Id field value if set, zero value otherwise. func (o *Terminal) GetId() string { if o == nil || common.IsNil(o.Id) { @@ -467,100 +181,100 @@ func (o *Terminal) SetId(v string) { o.Id = &v } -// GetLastActivityDateTime returns the LastActivityDateTime field value if set, zero value otherwise. -func (o *Terminal) GetLastActivityDateTime() time.Time { - if o == nil || common.IsNil(o.LastActivityDateTime) { +// GetLastActivityAt returns the LastActivityAt field value if set, zero value otherwise. +func (o *Terminal) GetLastActivityAt() time.Time { + if o == nil || common.IsNil(o.LastActivityAt) { var ret time.Time return ret } - return *o.LastActivityDateTime + return *o.LastActivityAt } -// GetLastActivityDateTimeOk returns a tuple with the LastActivityDateTime field value if set, nil otherwise +// GetLastActivityAtOk returns a tuple with the LastActivityAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Terminal) GetLastActivityDateTimeOk() (*time.Time, bool) { - if o == nil || common.IsNil(o.LastActivityDateTime) { +func (o *Terminal) GetLastActivityAtOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.LastActivityAt) { return nil, false } - return o.LastActivityDateTime, true + return o.LastActivityAt, true } -// HasLastActivityDateTime returns a boolean if a field has been set. -func (o *Terminal) HasLastActivityDateTime() bool { - if o != nil && !common.IsNil(o.LastActivityDateTime) { +// HasLastActivityAt returns a boolean if a field has been set. +func (o *Terminal) HasLastActivityAt() bool { + if o != nil && !common.IsNil(o.LastActivityAt) { return true } return false } -// SetLastActivityDateTime gets a reference to the given time.Time and assigns it to the LastActivityDateTime field. -func (o *Terminal) SetLastActivityDateTime(v time.Time) { - o.LastActivityDateTime = &v +// SetLastActivityAt gets a reference to the given time.Time and assigns it to the LastActivityAt field. +func (o *Terminal) SetLastActivityAt(v time.Time) { + o.LastActivityAt = &v } -// GetLastTransactionDateTime returns the LastTransactionDateTime field value if set, zero value otherwise. -func (o *Terminal) GetLastTransactionDateTime() time.Time { - if o == nil || common.IsNil(o.LastTransactionDateTime) { +// GetLastTransactionAt returns the LastTransactionAt field value if set, zero value otherwise. +func (o *Terminal) GetLastTransactionAt() time.Time { + if o == nil || common.IsNil(o.LastTransactionAt) { var ret time.Time return ret } - return *o.LastTransactionDateTime + return *o.LastTransactionAt } -// GetLastTransactionDateTimeOk returns a tuple with the LastTransactionDateTime field value if set, nil otherwise +// GetLastTransactionAtOk returns a tuple with the LastTransactionAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Terminal) GetLastTransactionDateTimeOk() (*time.Time, bool) { - if o == nil || common.IsNil(o.LastTransactionDateTime) { +func (o *Terminal) GetLastTransactionAtOk() (*time.Time, bool) { + if o == nil || common.IsNil(o.LastTransactionAt) { return nil, false } - return o.LastTransactionDateTime, true + return o.LastTransactionAt, true } -// HasLastTransactionDateTime returns a boolean if a field has been set. -func (o *Terminal) HasLastTransactionDateTime() bool { - if o != nil && !common.IsNil(o.LastTransactionDateTime) { +// HasLastTransactionAt returns a boolean if a field has been set. +func (o *Terminal) HasLastTransactionAt() bool { + if o != nil && !common.IsNil(o.LastTransactionAt) { return true } return false } -// SetLastTransactionDateTime gets a reference to the given time.Time and assigns it to the LastTransactionDateTime field. -func (o *Terminal) SetLastTransactionDateTime(v time.Time) { - o.LastTransactionDateTime = &v +// SetLastTransactionAt gets a reference to the given time.Time and assigns it to the LastTransactionAt field. +func (o *Terminal) SetLastTransactionAt(v time.Time) { + o.LastTransactionAt = &v } -// GetLinkNegotiation returns the LinkNegotiation field value if set, zero value otherwise. -func (o *Terminal) GetLinkNegotiation() string { - if o == nil || common.IsNil(o.LinkNegotiation) { +// GetModel returns the Model field value if set, zero value otherwise. +func (o *Terminal) GetModel() string { + if o == nil || common.IsNil(o.Model) { var ret string return ret } - return *o.LinkNegotiation + return *o.Model } -// GetLinkNegotiationOk returns a tuple with the LinkNegotiation field value if set, nil otherwise +// GetModelOk returns a tuple with the Model field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Terminal) GetLinkNegotiationOk() (*string, bool) { - if o == nil || common.IsNil(o.LinkNegotiation) { +func (o *Terminal) GetModelOk() (*string, bool) { + if o == nil || common.IsNil(o.Model) { return nil, false } - return o.LinkNegotiation, true + return o.Model, true } -// HasLinkNegotiation returns a boolean if a field has been set. -func (o *Terminal) HasLinkNegotiation() bool { - if o != nil && !common.IsNil(o.LinkNegotiation) { +// HasModel returns a boolean if a field has been set. +func (o *Terminal) HasModel() bool { + if o != nil && !common.IsNil(o.Model) { return true } return false } -// SetLinkNegotiation gets a reference to the given string and assigns it to the LinkNegotiation field. -func (o *Terminal) SetLinkNegotiation(v string) { - o.LinkNegotiation = &v +// SetModel gets a reference to the given string and assigns it to the Model field. +func (o *Terminal) SetModel(v string) { + o.Model = &v } // GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. @@ -595,198 +309,6 @@ func (o *Terminal) SetSerialNumber(v string) { o.SerialNumber = &v } -// GetSimStatus returns the SimStatus field value if set, zero value otherwise. -func (o *Terminal) GetSimStatus() string { - if o == nil || common.IsNil(o.SimStatus) { - var ret string - return ret - } - return *o.SimStatus -} - -// GetSimStatusOk returns a tuple with the SimStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetSimStatusOk() (*string, bool) { - if o == nil || common.IsNil(o.SimStatus) { - return nil, false - } - return o.SimStatus, true -} - -// HasSimStatus returns a boolean if a field has been set. -func (o *Terminal) HasSimStatus() bool { - if o != nil && !common.IsNil(o.SimStatus) { - return true - } - - return false -} - -// SetSimStatus gets a reference to the given string and assigns it to the SimStatus field. -func (o *Terminal) SetSimStatus(v string) { - o.SimStatus = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Terminal) GetStatus() string { - if o == nil || common.IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetStatusOk() (*string, bool) { - if o == nil || common.IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Terminal) HasStatus() bool { - if o != nil && !common.IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *Terminal) SetStatus(v string) { - o.Status = &v -} - -// GetStoreStatus returns the StoreStatus field value if set, zero value otherwise. -func (o *Terminal) GetStoreStatus() string { - if o == nil || common.IsNil(o.StoreStatus) { - var ret string - return ret - } - return *o.StoreStatus -} - -// GetStoreStatusOk returns a tuple with the StoreStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetStoreStatusOk() (*string, bool) { - if o == nil || common.IsNil(o.StoreStatus) { - return nil, false - } - return o.StoreStatus, true -} - -// HasStoreStatus returns a boolean if a field has been set. -func (o *Terminal) HasStoreStatus() bool { - if o != nil && !common.IsNil(o.StoreStatus) { - return true - } - - return false -} - -// SetStoreStatus gets a reference to the given string and assigns it to the StoreStatus field. -func (o *Terminal) SetStoreStatus(v string) { - o.StoreStatus = &v -} - -// GetWifiIp returns the WifiIp field value if set, zero value otherwise. -func (o *Terminal) GetWifiIp() string { - if o == nil || common.IsNil(o.WifiIp) { - var ret string - return ret - } - return *o.WifiIp -} - -// GetWifiIpOk returns a tuple with the WifiIp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetWifiIpOk() (*string, bool) { - if o == nil || common.IsNil(o.WifiIp) { - return nil, false - } - return o.WifiIp, true -} - -// HasWifiIp returns a boolean if a field has been set. -func (o *Terminal) HasWifiIp() bool { - if o != nil && !common.IsNil(o.WifiIp) { - return true - } - - return false -} - -// SetWifiIp gets a reference to the given string and assigns it to the WifiIp field. -func (o *Terminal) SetWifiIp(v string) { - o.WifiIp = &v -} - -// GetWifiMac returns the WifiMac field value if set, zero value otherwise. -func (o *Terminal) GetWifiMac() string { - if o == nil || common.IsNil(o.WifiMac) { - var ret string - return ret - } - return *o.WifiMac -} - -// GetWifiMacOk returns a tuple with the WifiMac field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetWifiMacOk() (*string, bool) { - if o == nil || common.IsNil(o.WifiMac) { - return nil, false - } - return o.WifiMac, true -} - -// HasWifiMac returns a boolean if a field has been set. -func (o *Terminal) HasWifiMac() bool { - if o != nil && !common.IsNil(o.WifiMac) { - return true - } - - return false -} - -// SetWifiMac gets a reference to the given string and assigns it to the WifiMac field. -func (o *Terminal) SetWifiMac(v string) { - o.WifiMac = &v -} - -// GetWifiSsid returns the WifiSsid field value if set, zero value otherwise. -func (o *Terminal) GetWifiSsid() string { - if o == nil || common.IsNil(o.WifiSsid) { - var ret string - return ret - } - return *o.WifiSsid -} - -// GetWifiSsidOk returns a tuple with the WifiSsid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Terminal) GetWifiSsidOk() (*string, bool) { - if o == nil || common.IsNil(o.WifiSsid) { - return nil, false - } - return o.WifiSsid, true -} - -// HasWifiSsid returns a boolean if a field has been set. -func (o *Terminal) HasWifiSsid() bool { - if o != nil && !common.IsNil(o.WifiSsid) { - return true - } - - return false -} - -// SetWifiSsid gets a reference to the given string and assigns it to the WifiSsid field. -func (o *Terminal) SetWifiSsid(v string) { - o.WifiSsid = &v -} - func (o Terminal) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -797,72 +319,30 @@ func (o Terminal) MarshalJSON() ([]byte, error) { func (o Terminal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !common.IsNil(o.Assigned) { - toSerialize["assigned"] = o.Assigned - } - if !common.IsNil(o.BluetoothIp) { - toSerialize["bluetoothIp"] = o.BluetoothIp - } - if !common.IsNil(o.BluetoothMac) { - toSerialize["bluetoothMac"] = o.BluetoothMac - } - if !common.IsNil(o.City) { - toSerialize["city"] = o.City - } - if !common.IsNil(o.CompanyAccount) { - toSerialize["companyAccount"] = o.CompanyAccount - } - if !common.IsNil(o.CountryCode) { - toSerialize["countryCode"] = o.CountryCode - } - if !common.IsNil(o.DeviceModel) { - toSerialize["deviceModel"] = o.DeviceModel + if !common.IsNil(o.Assignment) { + toSerialize["assignment"] = o.Assignment } - if !common.IsNil(o.EthernetIp) { - toSerialize["ethernetIp"] = o.EthernetIp - } - if !common.IsNil(o.EthernetMac) { - toSerialize["ethernetMac"] = o.EthernetMac + if !common.IsNil(o.Connectivity) { + toSerialize["connectivity"] = o.Connectivity } if !common.IsNil(o.FirmwareVersion) { toSerialize["firmwareVersion"] = o.FirmwareVersion } - if !common.IsNil(o.Iccid) { - toSerialize["iccid"] = o.Iccid - } if !common.IsNil(o.Id) { toSerialize["id"] = o.Id } - if !common.IsNil(o.LastActivityDateTime) { - toSerialize["lastActivityDateTime"] = o.LastActivityDateTime + if !common.IsNil(o.LastActivityAt) { + toSerialize["lastActivityAt"] = o.LastActivityAt } - if !common.IsNil(o.LastTransactionDateTime) { - toSerialize["lastTransactionDateTime"] = o.LastTransactionDateTime + if !common.IsNil(o.LastTransactionAt) { + toSerialize["lastTransactionAt"] = o.LastTransactionAt } - if !common.IsNil(o.LinkNegotiation) { - toSerialize["linkNegotiation"] = o.LinkNegotiation + if !common.IsNil(o.Model) { + toSerialize["model"] = o.Model } if !common.IsNil(o.SerialNumber) { toSerialize["serialNumber"] = o.SerialNumber } - if !common.IsNil(o.SimStatus) { - toSerialize["simStatus"] = o.SimStatus - } - if !common.IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !common.IsNil(o.StoreStatus) { - toSerialize["storeStatus"] = o.StoreStatus - } - if !common.IsNil(o.WifiIp) { - toSerialize["wifiIp"] = o.WifiIp - } - if !common.IsNil(o.WifiMac) { - toSerialize["wifiMac"] = o.WifiMac - } - if !common.IsNil(o.WifiSsid) { - toSerialize["wifiSsid"] = o.WifiSsid - } return toSerialize, nil } diff --git a/src/management/model_terminal_action_schedule_detail.go b/src/management/model_terminal_action_schedule_detail.go index 9c63bd72a..a9dfdb75c 100644 --- a/src/management/model_terminal_action_schedule_detail.go +++ b/src/management/model_terminal_action_schedule_detail.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalActionScheduleDetail type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_assignment.go b/src/management/model_terminal_assignment.go new file mode 100644 index 000000000..3b3dc77a5 --- /dev/null +++ b/src/management/model_terminal_assignment.go @@ -0,0 +1,264 @@ +/* +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 TerminalAssignment type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalAssignment{} + +// TerminalAssignment struct for TerminalAssignment +type TerminalAssignment struct { + // The unique identifier of the company account to which terminal is assigned. + CompanyId string `json:"companyId"` + // The unique identifier of the merchant account to which terminal is assigned. + MerchantId *string `json:"merchantId,omitempty"` + ReassignmentTarget *TerminalReassignmentTarget `json:"reassignmentTarget,omitempty"` + // The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. + Status string `json:"status"` + // The unique identifier of the store to which terminal is assigned. + StoreId *string `json:"storeId,omitempty"` +} + +// NewTerminalAssignment instantiates a new TerminalAssignment 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 NewTerminalAssignment(companyId string, status string) *TerminalAssignment { + this := TerminalAssignment{} + this.CompanyId = companyId + this.Status = status + return &this +} + +// NewTerminalAssignmentWithDefaults instantiates a new TerminalAssignment 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 NewTerminalAssignmentWithDefaults() *TerminalAssignment { + this := TerminalAssignment{} + return &this +} + +// GetCompanyId returns the CompanyId field value +func (o *TerminalAssignment) GetCompanyId() string { + if o == nil { + var ret string + return ret + } + + return o.CompanyId +} + +// GetCompanyIdOk returns a tuple with the CompanyId field value +// and a boolean to check if the value has been set. +func (o *TerminalAssignment) GetCompanyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CompanyId, true +} + +// SetCompanyId sets field value +func (o *TerminalAssignment) SetCompanyId(v string) { + o.CompanyId = v +} + +// GetMerchantId returns the MerchantId field value if set, zero value otherwise. +func (o *TerminalAssignment) GetMerchantId() string { + if o == nil || common.IsNil(o.MerchantId) { + var ret string + return ret + } + return *o.MerchantId +} + +// GetMerchantIdOk returns a tuple with the MerchantId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalAssignment) GetMerchantIdOk() (*string, bool) { + if o == nil || common.IsNil(o.MerchantId) { + return nil, false + } + return o.MerchantId, true +} + +// HasMerchantId returns a boolean if a field has been set. +func (o *TerminalAssignment) HasMerchantId() bool { + if o != nil && !common.IsNil(o.MerchantId) { + return true + } + + return false +} + +// SetMerchantId gets a reference to the given string and assigns it to the MerchantId field. +func (o *TerminalAssignment) SetMerchantId(v string) { + o.MerchantId = &v +} + +// GetReassignmentTarget returns the ReassignmentTarget field value if set, zero value otherwise. +func (o *TerminalAssignment) GetReassignmentTarget() TerminalReassignmentTarget { + if o == nil || common.IsNil(o.ReassignmentTarget) { + var ret TerminalReassignmentTarget + return ret + } + return *o.ReassignmentTarget +} + +// GetReassignmentTargetOk returns a tuple with the ReassignmentTarget field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalAssignment) GetReassignmentTargetOk() (*TerminalReassignmentTarget, bool) { + if o == nil || common.IsNil(o.ReassignmentTarget) { + return nil, false + } + return o.ReassignmentTarget, true +} + +// HasReassignmentTarget returns a boolean if a field has been set. +func (o *TerminalAssignment) HasReassignmentTarget() bool { + if o != nil && !common.IsNil(o.ReassignmentTarget) { + return true + } + + return false +} + +// SetReassignmentTarget gets a reference to the given TerminalReassignmentTarget and assigns it to the ReassignmentTarget field. +func (o *TerminalAssignment) SetReassignmentTarget(v TerminalReassignmentTarget) { + o.ReassignmentTarget = &v +} + +// GetStatus returns the Status field value +func (o *TerminalAssignment) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *TerminalAssignment) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *TerminalAssignment) SetStatus(v string) { + o.Status = v +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *TerminalAssignment) GetStoreId() string { + if o == nil || common.IsNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalAssignment) GetStoreIdOk() (*string, bool) { + if o == nil || common.IsNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *TerminalAssignment) HasStoreId() bool { + if o != nil && !common.IsNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *TerminalAssignment) SetStoreId(v string) { + o.StoreId = &v +} + +func (o TerminalAssignment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalAssignment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["companyId"] = o.CompanyId + if !common.IsNil(o.MerchantId) { + toSerialize["merchantId"] = o.MerchantId + } + if !common.IsNil(o.ReassignmentTarget) { + toSerialize["reassignmentTarget"] = o.ReassignmentTarget + } + toSerialize["status"] = o.Status + if !common.IsNil(o.StoreId) { + toSerialize["storeId"] = o.StoreId + } + return toSerialize, nil +} + +type NullableTerminalAssignment struct { + value *TerminalAssignment + isSet bool +} + +func (v NullableTerminalAssignment) Get() *TerminalAssignment { + return v.value +} + +func (v *NullableTerminalAssignment) Set(val *TerminalAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalAssignment(val *TerminalAssignment) *NullableTerminalAssignment { + return &NullableTerminalAssignment{value: val, isSet: true} +} + +func (v NullableTerminalAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *TerminalAssignment) isValidStatus() bool { + var allowedEnumValues = []string{"reassignmentInProgress", "deployed", "inventory"} + for _, allowed := range allowedEnumValues { + if o.GetStatus() == allowed { + return true + } + } + return false +} diff --git a/src/management/model_terminal_connectivity.go b/src/management/model_terminal_connectivity.go new file mode 100644 index 000000000..abc6d88d2 --- /dev/null +++ b/src/management/model_terminal_connectivity.go @@ -0,0 +1,232 @@ +/* +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 TerminalConnectivity type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalConnectivity{} + +// TerminalConnectivity struct for TerminalConnectivity +type TerminalConnectivity struct { + Bluetooth *TerminalConnectivityBluetooth `json:"bluetooth,omitempty"` + Cellular *TerminalConnectivityCellular `json:"cellular,omitempty"` + Ethernet *TerminalConnectivityEthernet `json:"ethernet,omitempty"` + Wifi *TerminalConnectivityWifi `json:"wifi,omitempty"` +} + +// NewTerminalConnectivity instantiates a new TerminalConnectivity 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 NewTerminalConnectivity() *TerminalConnectivity { + this := TerminalConnectivity{} + return &this +} + +// NewTerminalConnectivityWithDefaults instantiates a new TerminalConnectivity 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 NewTerminalConnectivityWithDefaults() *TerminalConnectivity { + this := TerminalConnectivity{} + return &this +} + +// GetBluetooth returns the Bluetooth field value if set, zero value otherwise. +func (o *TerminalConnectivity) GetBluetooth() TerminalConnectivityBluetooth { + if o == nil || common.IsNil(o.Bluetooth) { + var ret TerminalConnectivityBluetooth + return ret + } + return *o.Bluetooth +} + +// GetBluetoothOk returns a tuple with the Bluetooth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivity) GetBluetoothOk() (*TerminalConnectivityBluetooth, bool) { + if o == nil || common.IsNil(o.Bluetooth) { + return nil, false + } + return o.Bluetooth, true +} + +// HasBluetooth returns a boolean if a field has been set. +func (o *TerminalConnectivity) HasBluetooth() bool { + if o != nil && !common.IsNil(o.Bluetooth) { + return true + } + + return false +} + +// SetBluetooth gets a reference to the given TerminalConnectivityBluetooth and assigns it to the Bluetooth field. +func (o *TerminalConnectivity) SetBluetooth(v TerminalConnectivityBluetooth) { + o.Bluetooth = &v +} + +// GetCellular returns the Cellular field value if set, zero value otherwise. +func (o *TerminalConnectivity) GetCellular() TerminalConnectivityCellular { + if o == nil || common.IsNil(o.Cellular) { + var ret TerminalConnectivityCellular + return ret + } + return *o.Cellular +} + +// GetCellularOk returns a tuple with the Cellular field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivity) GetCellularOk() (*TerminalConnectivityCellular, bool) { + if o == nil || common.IsNil(o.Cellular) { + return nil, false + } + return o.Cellular, true +} + +// HasCellular returns a boolean if a field has been set. +func (o *TerminalConnectivity) HasCellular() bool { + if o != nil && !common.IsNil(o.Cellular) { + return true + } + + return false +} + +// SetCellular gets a reference to the given TerminalConnectivityCellular and assigns it to the Cellular field. +func (o *TerminalConnectivity) SetCellular(v TerminalConnectivityCellular) { + o.Cellular = &v +} + +// GetEthernet returns the Ethernet field value if set, zero value otherwise. +func (o *TerminalConnectivity) GetEthernet() TerminalConnectivityEthernet { + if o == nil || common.IsNil(o.Ethernet) { + var ret TerminalConnectivityEthernet + return ret + } + return *o.Ethernet +} + +// GetEthernetOk returns a tuple with the Ethernet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivity) GetEthernetOk() (*TerminalConnectivityEthernet, bool) { + if o == nil || common.IsNil(o.Ethernet) { + return nil, false + } + return o.Ethernet, true +} + +// HasEthernet returns a boolean if a field has been set. +func (o *TerminalConnectivity) HasEthernet() bool { + if o != nil && !common.IsNil(o.Ethernet) { + return true + } + + return false +} + +// SetEthernet gets a reference to the given TerminalConnectivityEthernet and assigns it to the Ethernet field. +func (o *TerminalConnectivity) SetEthernet(v TerminalConnectivityEthernet) { + o.Ethernet = &v +} + +// GetWifi returns the Wifi field value if set, zero value otherwise. +func (o *TerminalConnectivity) GetWifi() TerminalConnectivityWifi { + if o == nil || common.IsNil(o.Wifi) { + var ret TerminalConnectivityWifi + return ret + } + return *o.Wifi +} + +// GetWifiOk returns a tuple with the Wifi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivity) GetWifiOk() (*TerminalConnectivityWifi, bool) { + if o == nil || common.IsNil(o.Wifi) { + return nil, false + } + return o.Wifi, true +} + +// HasWifi returns a boolean if a field has been set. +func (o *TerminalConnectivity) HasWifi() bool { + if o != nil && !common.IsNil(o.Wifi) { + return true + } + + return false +} + +// SetWifi gets a reference to the given TerminalConnectivityWifi and assigns it to the Wifi field. +func (o *TerminalConnectivity) SetWifi(v TerminalConnectivityWifi) { + o.Wifi = &v +} + +func (o TerminalConnectivity) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalConnectivity) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Bluetooth) { + toSerialize["bluetooth"] = o.Bluetooth + } + if !common.IsNil(o.Cellular) { + toSerialize["cellular"] = o.Cellular + } + if !common.IsNil(o.Ethernet) { + toSerialize["ethernet"] = o.Ethernet + } + if !common.IsNil(o.Wifi) { + toSerialize["wifi"] = o.Wifi + } + return toSerialize, nil +} + +type NullableTerminalConnectivity struct { + value *TerminalConnectivity + isSet bool +} + +func (v NullableTerminalConnectivity) Get() *TerminalConnectivity { + return v.value +} + +func (v *NullableTerminalConnectivity) Set(val *TerminalConnectivity) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalConnectivity) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalConnectivity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalConnectivity(val *TerminalConnectivity) *NullableTerminalConnectivity { + return &NullableTerminalConnectivity{value: val, isSet: true} +} + +func (v NullableTerminalConnectivity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalConnectivity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_terminal_connectivity_bluetooth.go b/src/management/model_terminal_connectivity_bluetooth.go new file mode 100644 index 000000000..6fbae4644 --- /dev/null +++ b/src/management/model_terminal_connectivity_bluetooth.go @@ -0,0 +1,162 @@ +/* +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 TerminalConnectivityBluetooth type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalConnectivityBluetooth{} + +// TerminalConnectivityBluetooth struct for TerminalConnectivityBluetooth +type TerminalConnectivityBluetooth struct { + // The terminal's Bluetooth IP address. + IpAddress *string `json:"ipAddress,omitempty"` + // The terminal's Bluetooth MAC address. + MacAddress *string `json:"macAddress,omitempty"` +} + +// NewTerminalConnectivityBluetooth instantiates a new TerminalConnectivityBluetooth 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 NewTerminalConnectivityBluetooth() *TerminalConnectivityBluetooth { + this := TerminalConnectivityBluetooth{} + return &this +} + +// NewTerminalConnectivityBluetoothWithDefaults instantiates a new TerminalConnectivityBluetooth 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 NewTerminalConnectivityBluetoothWithDefaults() *TerminalConnectivityBluetooth { + this := TerminalConnectivityBluetooth{} + return &this +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *TerminalConnectivityBluetooth) GetIpAddress() string { + if o == nil || common.IsNil(o.IpAddress) { + var ret string + return ret + } + return *o.IpAddress +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityBluetooth) GetIpAddressOk() (*string, bool) { + if o == nil || common.IsNil(o.IpAddress) { + return nil, false + } + return o.IpAddress, true +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *TerminalConnectivityBluetooth) HasIpAddress() bool { + if o != nil && !common.IsNil(o.IpAddress) { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. +func (o *TerminalConnectivityBluetooth) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetMacAddress returns the MacAddress field value if set, zero value otherwise. +func (o *TerminalConnectivityBluetooth) GetMacAddress() string { + if o == nil || common.IsNil(o.MacAddress) { + var ret string + return ret + } + return *o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityBluetooth) GetMacAddressOk() (*string, bool) { + if o == nil || common.IsNil(o.MacAddress) { + return nil, false + } + return o.MacAddress, true +} + +// HasMacAddress returns a boolean if a field has been set. +func (o *TerminalConnectivityBluetooth) HasMacAddress() bool { + if o != nil && !common.IsNil(o.MacAddress) { + return true + } + + return false +} + +// SetMacAddress gets a reference to the given string and assigns it to the MacAddress field. +func (o *TerminalConnectivityBluetooth) SetMacAddress(v string) { + o.MacAddress = &v +} + +func (o TerminalConnectivityBluetooth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalConnectivityBluetooth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + if !common.IsNil(o.MacAddress) { + toSerialize["macAddress"] = o.MacAddress + } + return toSerialize, nil +} + +type NullableTerminalConnectivityBluetooth struct { + value *TerminalConnectivityBluetooth + isSet bool +} + +func (v NullableTerminalConnectivityBluetooth) Get() *TerminalConnectivityBluetooth { + return v.value +} + +func (v *NullableTerminalConnectivityBluetooth) Set(val *TerminalConnectivityBluetooth) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalConnectivityBluetooth) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalConnectivityBluetooth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalConnectivityBluetooth(val *TerminalConnectivityBluetooth) *NullableTerminalConnectivityBluetooth { + return &NullableTerminalConnectivityBluetooth{value: val, isSet: true} +} + +func (v NullableTerminalConnectivityBluetooth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalConnectivityBluetooth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_terminal_connectivity_cellular.go b/src/management/model_terminal_connectivity_cellular.go new file mode 100644 index 000000000..ea0e71754 --- /dev/null +++ b/src/management/model_terminal_connectivity_cellular.go @@ -0,0 +1,172 @@ +/* +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 TerminalConnectivityCellular type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalConnectivityCellular{} + +// TerminalConnectivityCellular struct for TerminalConnectivityCellular +type TerminalConnectivityCellular struct { + // The integrated circuit card identifier (ICCID) of the SIM card in the terminal. + Iccid *string `json:"iccid,omitempty"` + // On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal. + Status *string `json:"status,omitempty"` +} + +// NewTerminalConnectivityCellular instantiates a new TerminalConnectivityCellular 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 NewTerminalConnectivityCellular() *TerminalConnectivityCellular { + this := TerminalConnectivityCellular{} + return &this +} + +// NewTerminalConnectivityCellularWithDefaults instantiates a new TerminalConnectivityCellular 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 NewTerminalConnectivityCellularWithDefaults() *TerminalConnectivityCellular { + this := TerminalConnectivityCellular{} + return &this +} + +// GetIccid returns the Iccid field value if set, zero value otherwise. +func (o *TerminalConnectivityCellular) GetIccid() string { + if o == nil || common.IsNil(o.Iccid) { + var ret string + return ret + } + return *o.Iccid +} + +// GetIccidOk returns a tuple with the Iccid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityCellular) GetIccidOk() (*string, bool) { + if o == nil || common.IsNil(o.Iccid) { + return nil, false + } + return o.Iccid, true +} + +// HasIccid returns a boolean if a field has been set. +func (o *TerminalConnectivityCellular) HasIccid() bool { + if o != nil && !common.IsNil(o.Iccid) { + return true + } + + return false +} + +// SetIccid gets a reference to the given string and assigns it to the Iccid field. +func (o *TerminalConnectivityCellular) SetIccid(v string) { + o.Iccid = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *TerminalConnectivityCellular) GetStatus() string { + if o == nil || common.IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityCellular) GetStatusOk() (*string, bool) { + if o == nil || common.IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *TerminalConnectivityCellular) HasStatus() bool { + if o != nil && !common.IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *TerminalConnectivityCellular) SetStatus(v string) { + o.Status = &v +} + +func (o TerminalConnectivityCellular) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalConnectivityCellular) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Iccid) { + toSerialize["iccid"] = o.Iccid + } + if !common.IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableTerminalConnectivityCellular struct { + value *TerminalConnectivityCellular + isSet bool +} + +func (v NullableTerminalConnectivityCellular) Get() *TerminalConnectivityCellular { + return v.value +} + +func (v *NullableTerminalConnectivityCellular) Set(val *TerminalConnectivityCellular) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalConnectivityCellular) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalConnectivityCellular) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalConnectivityCellular(val *TerminalConnectivityCellular) *NullableTerminalConnectivityCellular { + return &NullableTerminalConnectivityCellular{value: val, isSet: true} +} + +func (v NullableTerminalConnectivityCellular) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalConnectivityCellular) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *TerminalConnectivityCellular) isValidStatus() bool { + var allowedEnumValues = []string{"activated", "deactivated", "deprecated", "inventory", "readyForActivation"} + for _, allowed := range allowedEnumValues { + if o.GetStatus() == allowed { + return true + } + } + return false +} diff --git a/src/management/model_terminal_connectivity_ethernet.go b/src/management/model_terminal_connectivity_ethernet.go new file mode 100644 index 000000000..9c58edf47 --- /dev/null +++ b/src/management/model_terminal_connectivity_ethernet.go @@ -0,0 +1,199 @@ +/* +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 TerminalConnectivityEthernet type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalConnectivityEthernet{} + +// TerminalConnectivityEthernet struct for TerminalConnectivityEthernet +type TerminalConnectivityEthernet struct { + // The terminal's ethernet IP address. + IpAddress *string `json:"ipAddress,omitempty"` + // The ethernet link negotiation that the terminal uses. + LinkNegotiation *string `json:"linkNegotiation,omitempty"` + // The terminal's ethernet MAC address. + MacAddress *string `json:"macAddress,omitempty"` +} + +// NewTerminalConnectivityEthernet instantiates a new TerminalConnectivityEthernet 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 NewTerminalConnectivityEthernet() *TerminalConnectivityEthernet { + this := TerminalConnectivityEthernet{} + return &this +} + +// NewTerminalConnectivityEthernetWithDefaults instantiates a new TerminalConnectivityEthernet 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 NewTerminalConnectivityEthernetWithDefaults() *TerminalConnectivityEthernet { + this := TerminalConnectivityEthernet{} + return &this +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *TerminalConnectivityEthernet) GetIpAddress() string { + if o == nil || common.IsNil(o.IpAddress) { + var ret string + return ret + } + return *o.IpAddress +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityEthernet) GetIpAddressOk() (*string, bool) { + if o == nil || common.IsNil(o.IpAddress) { + return nil, false + } + return o.IpAddress, true +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *TerminalConnectivityEthernet) HasIpAddress() bool { + if o != nil && !common.IsNil(o.IpAddress) { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. +func (o *TerminalConnectivityEthernet) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetLinkNegotiation returns the LinkNegotiation field value if set, zero value otherwise. +func (o *TerminalConnectivityEthernet) GetLinkNegotiation() string { + if o == nil || common.IsNil(o.LinkNegotiation) { + var ret string + return ret + } + return *o.LinkNegotiation +} + +// GetLinkNegotiationOk returns a tuple with the LinkNegotiation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityEthernet) GetLinkNegotiationOk() (*string, bool) { + if o == nil || common.IsNil(o.LinkNegotiation) { + return nil, false + } + return o.LinkNegotiation, true +} + +// HasLinkNegotiation returns a boolean if a field has been set. +func (o *TerminalConnectivityEthernet) HasLinkNegotiation() bool { + if o != nil && !common.IsNil(o.LinkNegotiation) { + return true + } + + return false +} + +// SetLinkNegotiation gets a reference to the given string and assigns it to the LinkNegotiation field. +func (o *TerminalConnectivityEthernet) SetLinkNegotiation(v string) { + o.LinkNegotiation = &v +} + +// GetMacAddress returns the MacAddress field value if set, zero value otherwise. +func (o *TerminalConnectivityEthernet) GetMacAddress() string { + if o == nil || common.IsNil(o.MacAddress) { + var ret string + return ret + } + return *o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityEthernet) GetMacAddressOk() (*string, bool) { + if o == nil || common.IsNil(o.MacAddress) { + return nil, false + } + return o.MacAddress, true +} + +// HasMacAddress returns a boolean if a field has been set. +func (o *TerminalConnectivityEthernet) HasMacAddress() bool { + if o != nil && !common.IsNil(o.MacAddress) { + return true + } + + return false +} + +// SetMacAddress gets a reference to the given string and assigns it to the MacAddress field. +func (o *TerminalConnectivityEthernet) SetMacAddress(v string) { + o.MacAddress = &v +} + +func (o TerminalConnectivityEthernet) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalConnectivityEthernet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + if !common.IsNil(o.LinkNegotiation) { + toSerialize["linkNegotiation"] = o.LinkNegotiation + } + if !common.IsNil(o.MacAddress) { + toSerialize["macAddress"] = o.MacAddress + } + return toSerialize, nil +} + +type NullableTerminalConnectivityEthernet struct { + value *TerminalConnectivityEthernet + isSet bool +} + +func (v NullableTerminalConnectivityEthernet) Get() *TerminalConnectivityEthernet { + return v.value +} + +func (v *NullableTerminalConnectivityEthernet) Set(val *TerminalConnectivityEthernet) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalConnectivityEthernet) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalConnectivityEthernet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalConnectivityEthernet(val *TerminalConnectivityEthernet) *NullableTerminalConnectivityEthernet { + return &NullableTerminalConnectivityEthernet{value: val, isSet: true} +} + +func (v NullableTerminalConnectivityEthernet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalConnectivityEthernet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_terminal_connectivity_wifi.go b/src/management/model_terminal_connectivity_wifi.go new file mode 100644 index 000000000..9ce9faf5a --- /dev/null +++ b/src/management/model_terminal_connectivity_wifi.go @@ -0,0 +1,199 @@ +/* +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 TerminalConnectivityWifi type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalConnectivityWifi{} + +// TerminalConnectivityWifi struct for TerminalConnectivityWifi +type TerminalConnectivityWifi struct { + // The terminal's IP address in the Wi-Fi network. + IpAddress *string `json:"ipAddress,omitempty"` + // The terminal's MAC address in the Wi-Fi network. + MacAddress *string `json:"macAddress,omitempty"` + // The SSID of the Wi-Fi network that the terminal is connected to. + Ssid *string `json:"ssid,omitempty"` +} + +// NewTerminalConnectivityWifi instantiates a new TerminalConnectivityWifi 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 NewTerminalConnectivityWifi() *TerminalConnectivityWifi { + this := TerminalConnectivityWifi{} + return &this +} + +// NewTerminalConnectivityWifiWithDefaults instantiates a new TerminalConnectivityWifi 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 NewTerminalConnectivityWifiWithDefaults() *TerminalConnectivityWifi { + this := TerminalConnectivityWifi{} + return &this +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *TerminalConnectivityWifi) GetIpAddress() string { + if o == nil || common.IsNil(o.IpAddress) { + var ret string + return ret + } + return *o.IpAddress +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityWifi) GetIpAddressOk() (*string, bool) { + if o == nil || common.IsNil(o.IpAddress) { + return nil, false + } + return o.IpAddress, true +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *TerminalConnectivityWifi) HasIpAddress() bool { + if o != nil && !common.IsNil(o.IpAddress) { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. +func (o *TerminalConnectivityWifi) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetMacAddress returns the MacAddress field value if set, zero value otherwise. +func (o *TerminalConnectivityWifi) GetMacAddress() string { + if o == nil || common.IsNil(o.MacAddress) { + var ret string + return ret + } + return *o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityWifi) GetMacAddressOk() (*string, bool) { + if o == nil || common.IsNil(o.MacAddress) { + return nil, false + } + return o.MacAddress, true +} + +// HasMacAddress returns a boolean if a field has been set. +func (o *TerminalConnectivityWifi) HasMacAddress() bool { + if o != nil && !common.IsNil(o.MacAddress) { + return true + } + + return false +} + +// SetMacAddress gets a reference to the given string and assigns it to the MacAddress field. +func (o *TerminalConnectivityWifi) SetMacAddress(v string) { + o.MacAddress = &v +} + +// GetSsid returns the Ssid field value if set, zero value otherwise. +func (o *TerminalConnectivityWifi) GetSsid() string { + if o == nil || common.IsNil(o.Ssid) { + var ret string + return ret + } + return *o.Ssid +} + +// GetSsidOk returns a tuple with the Ssid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalConnectivityWifi) GetSsidOk() (*string, bool) { + if o == nil || common.IsNil(o.Ssid) { + return nil, false + } + return o.Ssid, true +} + +// HasSsid returns a boolean if a field has been set. +func (o *TerminalConnectivityWifi) HasSsid() bool { + if o != nil && !common.IsNil(o.Ssid) { + return true + } + + return false +} + +// SetSsid gets a reference to the given string and assigns it to the Ssid field. +func (o *TerminalConnectivityWifi) SetSsid(v string) { + o.Ssid = &v +} + +func (o TerminalConnectivityWifi) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalConnectivityWifi) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + if !common.IsNil(o.MacAddress) { + toSerialize["macAddress"] = o.MacAddress + } + if !common.IsNil(o.Ssid) { + toSerialize["ssid"] = o.Ssid + } + return toSerialize, nil +} + +type NullableTerminalConnectivityWifi struct { + value *TerminalConnectivityWifi + isSet bool +} + +func (v NullableTerminalConnectivityWifi) Get() *TerminalConnectivityWifi { + return v.value +} + +func (v *NullableTerminalConnectivityWifi) Set(val *TerminalConnectivityWifi) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalConnectivityWifi) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalConnectivityWifi) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalConnectivityWifi(val *TerminalConnectivityWifi) *NullableTerminalConnectivityWifi { + return &NullableTerminalConnectivityWifi{value: val, isSet: true} +} + +func (v NullableTerminalConnectivityWifi) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalConnectivityWifi) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_terminal_models_response.go b/src/management/model_terminal_models_response.go index 969f25923..96e853780 100644 --- a/src/management/model_terminal_models_response.go +++ b/src/management/model_terminal_models_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalModelsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_order.go b/src/management/model_terminal_order.go index 16304d7fc..2ad2d5dca 100644 --- a/src/management/model_terminal_order.go +++ b/src/management/model_terminal_order.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalOrder type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_order_request.go b/src/management/model_terminal_order_request.go index 623b37687..3fad0b54a 100644 --- a/src/management/model_terminal_order_request.go +++ b/src/management/model_terminal_order_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalOrderRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_orders_response.go b/src/management/model_terminal_orders_response.go index f44f57925..ee08bfa30 100644 --- a/src/management/model_terminal_orders_response.go +++ b/src/management/model_terminal_orders_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalOrdersResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_product.go b/src/management/model_terminal_product.go index 833d8341c..708f8513a 100644 --- a/src/management/model_terminal_product.go +++ b/src/management/model_terminal_product.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalProduct type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_product_price.go b/src/management/model_terminal_product_price.go index 9b5ddd74b..497c41418 100644 --- a/src/management/model_terminal_product_price.go +++ b/src/management/model_terminal_product_price.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalProductPrice type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_products_response.go b/src/management/model_terminal_products_response.go index dfadae910..5f100ad38 100644 --- a/src/management/model_terminal_products_response.go +++ b/src/management/model_terminal_products_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalProductsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_terminal_reassignment_request.go b/src/management/model_terminal_reassignment_request.go new file mode 100644 index 000000000..c3012475a --- /dev/null +++ b/src/management/model_terminal_reassignment_request.go @@ -0,0 +1,236 @@ +/* +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 TerminalReassignmentRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalReassignmentRequest{} + +// TerminalReassignmentRequest struct for TerminalReassignmentRequest +type TerminalReassignmentRequest struct { + // The unique identifier of the company account to which the terminal is reassigned. + CompanyId *string `json:"companyId,omitempty"` + // Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + Inventory *bool `json:"inventory,omitempty"` + // The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + MerchantId *string `json:"merchantId,omitempty"` + // The unique identifier of the store to which the terminal is reassigned. + StoreId *string `json:"storeId,omitempty"` +} + +// NewTerminalReassignmentRequest instantiates a new TerminalReassignmentRequest 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 NewTerminalReassignmentRequest() *TerminalReassignmentRequest { + this := TerminalReassignmentRequest{} + return &this +} + +// NewTerminalReassignmentRequestWithDefaults instantiates a new TerminalReassignmentRequest 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 NewTerminalReassignmentRequestWithDefaults() *TerminalReassignmentRequest { + this := TerminalReassignmentRequest{} + return &this +} + +// GetCompanyId returns the CompanyId field value if set, zero value otherwise. +func (o *TerminalReassignmentRequest) GetCompanyId() string { + if o == nil || common.IsNil(o.CompanyId) { + var ret string + return ret + } + return *o.CompanyId +} + +// GetCompanyIdOk returns a tuple with the CompanyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentRequest) GetCompanyIdOk() (*string, bool) { + if o == nil || common.IsNil(o.CompanyId) { + return nil, false + } + return o.CompanyId, true +} + +// HasCompanyId returns a boolean if a field has been set. +func (o *TerminalReassignmentRequest) HasCompanyId() bool { + if o != nil && !common.IsNil(o.CompanyId) { + return true + } + + return false +} + +// SetCompanyId gets a reference to the given string and assigns it to the CompanyId field. +func (o *TerminalReassignmentRequest) SetCompanyId(v string) { + o.CompanyId = &v +} + +// GetInventory returns the Inventory field value if set, zero value otherwise. +func (o *TerminalReassignmentRequest) GetInventory() bool { + if o == nil || common.IsNil(o.Inventory) { + var ret bool + return ret + } + return *o.Inventory +} + +// GetInventoryOk returns a tuple with the Inventory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentRequest) GetInventoryOk() (*bool, bool) { + if o == nil || common.IsNil(o.Inventory) { + return nil, false + } + return o.Inventory, true +} + +// HasInventory returns a boolean if a field has been set. +func (o *TerminalReassignmentRequest) HasInventory() bool { + if o != nil && !common.IsNil(o.Inventory) { + return true + } + + return false +} + +// SetInventory gets a reference to the given bool and assigns it to the Inventory field. +func (o *TerminalReassignmentRequest) SetInventory(v bool) { + o.Inventory = &v +} + +// GetMerchantId returns the MerchantId field value if set, zero value otherwise. +func (o *TerminalReassignmentRequest) GetMerchantId() string { + if o == nil || common.IsNil(o.MerchantId) { + var ret string + return ret + } + return *o.MerchantId +} + +// GetMerchantIdOk returns a tuple with the MerchantId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentRequest) GetMerchantIdOk() (*string, bool) { + if o == nil || common.IsNil(o.MerchantId) { + return nil, false + } + return o.MerchantId, true +} + +// HasMerchantId returns a boolean if a field has been set. +func (o *TerminalReassignmentRequest) HasMerchantId() bool { + if o != nil && !common.IsNil(o.MerchantId) { + return true + } + + return false +} + +// SetMerchantId gets a reference to the given string and assigns it to the MerchantId field. +func (o *TerminalReassignmentRequest) SetMerchantId(v string) { + o.MerchantId = &v +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *TerminalReassignmentRequest) GetStoreId() string { + if o == nil || common.IsNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentRequest) GetStoreIdOk() (*string, bool) { + if o == nil || common.IsNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *TerminalReassignmentRequest) HasStoreId() bool { + if o != nil && !common.IsNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *TerminalReassignmentRequest) SetStoreId(v string) { + o.StoreId = &v +} + +func (o TerminalReassignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalReassignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.CompanyId) { + toSerialize["companyId"] = o.CompanyId + } + if !common.IsNil(o.Inventory) { + toSerialize["inventory"] = o.Inventory + } + if !common.IsNil(o.MerchantId) { + toSerialize["merchantId"] = o.MerchantId + } + if !common.IsNil(o.StoreId) { + toSerialize["storeId"] = o.StoreId + } + return toSerialize, nil +} + +type NullableTerminalReassignmentRequest struct { + value *TerminalReassignmentRequest + isSet bool +} + +func (v NullableTerminalReassignmentRequest) Get() *TerminalReassignmentRequest { + return v.value +} + +func (v *NullableTerminalReassignmentRequest) Set(val *TerminalReassignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalReassignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalReassignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalReassignmentRequest(val *TerminalReassignmentRequest) *NullableTerminalReassignmentRequest { + return &NullableTerminalReassignmentRequest{value: val, isSet: true} +} + +func (v NullableTerminalReassignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalReassignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_terminal_reassignment_target.go b/src/management/model_terminal_reassignment_target.go new file mode 100644 index 000000000..5f233efa4 --- /dev/null +++ b/src/management/model_terminal_reassignment_target.go @@ -0,0 +1,227 @@ +/* +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 TerminalReassignmentTarget type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TerminalReassignmentTarget{} + +// TerminalReassignmentTarget struct for TerminalReassignmentTarget +type TerminalReassignmentTarget struct { + // The unique identifier of the company account to which the terminal is reassigned. + CompanyId *string `json:"companyId,omitempty"` + // Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + Inventory bool `json:"inventory"` + // The unique identifier of the merchant account to which the terminal is reassigned. + MerchantId *string `json:"merchantId,omitempty"` + // The unique identifier of the store to which the terminal is reassigned. + StoreId *string `json:"storeId,omitempty"` +} + +// NewTerminalReassignmentTarget instantiates a new TerminalReassignmentTarget 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 NewTerminalReassignmentTarget(inventory bool) *TerminalReassignmentTarget { + this := TerminalReassignmentTarget{} + this.Inventory = inventory + return &this +} + +// NewTerminalReassignmentTargetWithDefaults instantiates a new TerminalReassignmentTarget 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 NewTerminalReassignmentTargetWithDefaults() *TerminalReassignmentTarget { + this := TerminalReassignmentTarget{} + return &this +} + +// GetCompanyId returns the CompanyId field value if set, zero value otherwise. +func (o *TerminalReassignmentTarget) GetCompanyId() string { + if o == nil || common.IsNil(o.CompanyId) { + var ret string + return ret + } + return *o.CompanyId +} + +// GetCompanyIdOk returns a tuple with the CompanyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentTarget) GetCompanyIdOk() (*string, bool) { + if o == nil || common.IsNil(o.CompanyId) { + return nil, false + } + return o.CompanyId, true +} + +// HasCompanyId returns a boolean if a field has been set. +func (o *TerminalReassignmentTarget) HasCompanyId() bool { + if o != nil && !common.IsNil(o.CompanyId) { + return true + } + + return false +} + +// SetCompanyId gets a reference to the given string and assigns it to the CompanyId field. +func (o *TerminalReassignmentTarget) SetCompanyId(v string) { + o.CompanyId = &v +} + +// GetInventory returns the Inventory field value +func (o *TerminalReassignmentTarget) GetInventory() bool { + if o == nil { + var ret bool + return ret + } + + return o.Inventory +} + +// GetInventoryOk returns a tuple with the Inventory field value +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentTarget) GetInventoryOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Inventory, true +} + +// SetInventory sets field value +func (o *TerminalReassignmentTarget) SetInventory(v bool) { + o.Inventory = v +} + +// GetMerchantId returns the MerchantId field value if set, zero value otherwise. +func (o *TerminalReassignmentTarget) GetMerchantId() string { + if o == nil || common.IsNil(o.MerchantId) { + var ret string + return ret + } + return *o.MerchantId +} + +// GetMerchantIdOk returns a tuple with the MerchantId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentTarget) GetMerchantIdOk() (*string, bool) { + if o == nil || common.IsNil(o.MerchantId) { + return nil, false + } + return o.MerchantId, true +} + +// HasMerchantId returns a boolean if a field has been set. +func (o *TerminalReassignmentTarget) HasMerchantId() bool { + if o != nil && !common.IsNil(o.MerchantId) { + return true + } + + return false +} + +// SetMerchantId gets a reference to the given string and assigns it to the MerchantId field. +func (o *TerminalReassignmentTarget) SetMerchantId(v string) { + o.MerchantId = &v +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *TerminalReassignmentTarget) GetStoreId() string { + if o == nil || common.IsNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalReassignmentTarget) GetStoreIdOk() (*string, bool) { + if o == nil || common.IsNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *TerminalReassignmentTarget) HasStoreId() bool { + if o != nil && !common.IsNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *TerminalReassignmentTarget) SetStoreId(v string) { + o.StoreId = &v +} + +func (o TerminalReassignmentTarget) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalReassignmentTarget) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.CompanyId) { + toSerialize["companyId"] = o.CompanyId + } + toSerialize["inventory"] = o.Inventory + if !common.IsNil(o.MerchantId) { + toSerialize["merchantId"] = o.MerchantId + } + if !common.IsNil(o.StoreId) { + toSerialize["storeId"] = o.StoreId + } + return toSerialize, nil +} + +type NullableTerminalReassignmentTarget struct { + value *TerminalReassignmentTarget + isSet bool +} + +func (v NullableTerminalReassignmentTarget) Get() *TerminalReassignmentTarget { + return v.value +} + +func (v *NullableTerminalReassignmentTarget) Set(val *TerminalReassignmentTarget) { + v.value = val + v.isSet = true +} + +func (v NullableTerminalReassignmentTarget) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminalReassignmentTarget) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminalReassignmentTarget(val *TerminalReassignmentTarget) *NullableTerminalReassignmentTarget { + return &NullableTerminalReassignmentTarget{value: val, isSet: true} +} + +func (v NullableTerminalReassignmentTarget) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminalReassignmentTarget) 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 b7aa89da3..c31f9dbe6 100644 --- a/src/management/model_terminal_settings.go +++ b/src/management/model_terminal_settings.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TerminalSettings type satisfies the MappedNullable interface at compile time @@ -24,6 +24,7 @@ type TerminalSettings struct { // Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. Gratuities []Gratuity `json:"gratuities,omitempty"` Hardware *Hardware `json:"hardware,omitempty"` + Localization *Localization `json:"localization,omitempty"` Nexo *Nexo `json:"nexo,omitempty"` OfflineProcessing *OfflineProcessing `json:"offlineProcessing,omitempty"` Opi *Opi `json:"opi,omitempty"` @@ -184,6 +185,38 @@ func (o *TerminalSettings) SetHardware(v Hardware) { o.Hardware = &v } +// GetLocalization returns the Localization field value if set, zero value otherwise. +func (o *TerminalSettings) GetLocalization() Localization { + if o == nil || common.IsNil(o.Localization) { + var ret Localization + return ret + } + return *o.Localization +} + +// GetLocalizationOk returns a tuple with the Localization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerminalSettings) GetLocalizationOk() (*Localization, bool) { + if o == nil || common.IsNil(o.Localization) { + return nil, false + } + return o.Localization, true +} + +// HasLocalization returns a boolean if a field has been set. +func (o *TerminalSettings) HasLocalization() bool { + if o != nil && !common.IsNil(o.Localization) { + return true + } + + return false +} + +// SetLocalization gets a reference to the given Localization and assigns it to the Localization field. +func (o *TerminalSettings) SetLocalization(v Localization) { + o.Localization = &v +} + // GetNexo returns the Nexo field value if set, zero value otherwise. func (o *TerminalSettings) GetNexo() Nexo { if o == nil || common.IsNil(o.Nexo) { @@ -622,6 +655,9 @@ func (o TerminalSettings) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Hardware) { toSerialize["hardware"] = o.Hardware } + if !common.IsNil(o.Localization) { + toSerialize["localization"] = o.Localization + } if !common.IsNil(o.Nexo) { toSerialize["nexo"] = o.Nexo } diff --git a/src/management/model_test_company_webhook_request.go b/src/management/model_test_company_webhook_request.go index e858f11b8..6068460df 100644 --- a/src/management/model_test_company_webhook_request.go +++ b/src/management/model_test_company_webhook_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TestCompanyWebhookRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_test_output.go b/src/management/model_test_output.go index 16d45e9a5..3dbbe6da2 100644 --- a/src/management/model_test_output.go +++ b/src/management/model_test_output.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TestOutput type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_test_webhook_request.go b/src/management/model_test_webhook_request.go index bec1b9ce1..3ef7c72f0 100644 --- a/src/management/model_test_webhook_request.go +++ b/src/management/model_test_webhook_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TestWebhookRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_test_webhook_response.go b/src/management/model_test_webhook_response.go index 0a577b117..91e7405f6 100644 --- a/src/management/model_test_webhook_response.go +++ b/src/management/model_test_webhook_response.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TestWebhookResponse type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_timeouts.go b/src/management/model_timeouts.go index 953036533..b22dda38d 100644 --- a/src/management/model_timeouts.go +++ b/src/management/model_timeouts.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Timeouts type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_transaction_description_info.go b/src/management/model_transaction_description_info.go new file mode 100644 index 000000000..3c4454721 --- /dev/null +++ b/src/management/model_transaction_description_info.go @@ -0,0 +1,176 @@ +/* +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 TransactionDescriptionInfo type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TransactionDescriptionInfo{} + +// TransactionDescriptionInfo struct for TransactionDescriptionInfo +type TransactionDescriptionInfo struct { + // The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + DoingBusinessAsName *string `json:"doingBusinessAsName,omitempty"` + // The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + Type *string `json:"type,omitempty"` +} + +// NewTransactionDescriptionInfo instantiates a new TransactionDescriptionInfo 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 NewTransactionDescriptionInfo() *TransactionDescriptionInfo { + this := TransactionDescriptionInfo{} + var type_ string = "dynamic" + this.Type = &type_ + return &this +} + +// NewTransactionDescriptionInfoWithDefaults instantiates a new TransactionDescriptionInfo 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 NewTransactionDescriptionInfoWithDefaults() *TransactionDescriptionInfo { + this := TransactionDescriptionInfo{} + var type_ string = "dynamic" + this.Type = &type_ + return &this +} + +// GetDoingBusinessAsName returns the DoingBusinessAsName field value if set, zero value otherwise. +func (o *TransactionDescriptionInfo) GetDoingBusinessAsName() string { + if o == nil || common.IsNil(o.DoingBusinessAsName) { + var ret string + return ret + } + return *o.DoingBusinessAsName +} + +// GetDoingBusinessAsNameOk returns a tuple with the DoingBusinessAsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionDescriptionInfo) GetDoingBusinessAsNameOk() (*string, bool) { + if o == nil || common.IsNil(o.DoingBusinessAsName) { + return nil, false + } + return o.DoingBusinessAsName, true +} + +// HasDoingBusinessAsName returns a boolean if a field has been set. +func (o *TransactionDescriptionInfo) HasDoingBusinessAsName() bool { + if o != nil && !common.IsNil(o.DoingBusinessAsName) { + return true + } + + return false +} + +// SetDoingBusinessAsName gets a reference to the given string and assigns it to the DoingBusinessAsName field. +func (o *TransactionDescriptionInfo) SetDoingBusinessAsName(v string) { + o.DoingBusinessAsName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *TransactionDescriptionInfo) GetType() string { + if o == nil || common.IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionDescriptionInfo) GetTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *TransactionDescriptionInfo) HasType() bool { + if o != nil && !common.IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *TransactionDescriptionInfo) SetType(v string) { + o.Type = &v +} + +func (o TransactionDescriptionInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactionDescriptionInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.DoingBusinessAsName) { + toSerialize["doingBusinessAsName"] = o.DoingBusinessAsName + } + if !common.IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableTransactionDescriptionInfo struct { + value *TransactionDescriptionInfo + isSet bool +} + +func (v NullableTransactionDescriptionInfo) Get() *TransactionDescriptionInfo { + return v.value +} + +func (v *NullableTransactionDescriptionInfo) Set(val *TransactionDescriptionInfo) { + v.value = val + v.isSet = true +} + +func (v NullableTransactionDescriptionInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactionDescriptionInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactionDescriptionInfo(val *TransactionDescriptionInfo) *NullableTransactionDescriptionInfo { + return &NullableTransactionDescriptionInfo{value: val, isSet: true} +} + +func (v NullableTransactionDescriptionInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactionDescriptionInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *TransactionDescriptionInfo) isValidType() bool { + var allowedEnumValues = []string{"append", "dynamic", "fixed"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/management/model_twint_info.go b/src/management/model_twint_info.go index d1723dcf7..9ed16507b 100644 --- a/src/management/model_twint_info.go +++ b/src/management/model_twint_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TwintInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_uninstall_android_app_details.go b/src/management/model_uninstall_android_app_details.go index 44da44bb6..3a7eb2568 100644 --- a/src/management/model_uninstall_android_app_details.go +++ b/src/management/model_uninstall_android_app_details.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UninstallAndroidAppDetails type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_uninstall_android_certificate_details.go b/src/management/model_uninstall_android_certificate_details.go index 0c7c1f14d..4b9618310 100644 --- a/src/management/model_uninstall_android_certificate_details.go +++ b/src/management/model_uninstall_android_certificate_details.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UninstallAndroidCertificateDetails type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_updatable_address.go b/src/management/model_updatable_address.go index bc3511625..1fce08cd0 100644 --- a/src/management/model_updatable_address.go +++ b/src/management/model_updatable_address.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdatableAddress type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_company_api_credential_request.go b/src/management/model_update_company_api_credential_request.go index 3f993f5a6..5061cf1d7 100644 --- a/src/management/model_update_company_api_credential_request.go +++ b/src/management/model_update_company_api_credential_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateCompanyApiCredentialRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_company_user_request.go b/src/management/model_update_company_user_request.go index e21f18988..127a220c3 100644 --- a/src/management/model_update_company_user_request.go +++ b/src/management/model_update_company_user_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateCompanyUserRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_company_webhook_request.go b/src/management/model_update_company_webhook_request.go index f93a5ad8d..f76117252 100644 --- a/src/management/model_update_company_webhook_request.go +++ b/src/management/model_update_company_webhook_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateCompanyWebhookRequest type satisfies the MappedNullable interface at compile time @@ -32,6 +32,8 @@ type UpdateCompanyWebhookRequest struct { CommunicationFormat *string `json:"communicationFormat,omitempty"` // Your description for this webhook configuration. Description *string `json:"description,omitempty"` + // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + EncryptionProtocol *string `json:"encryptionProtocol,omitempty"` // Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. FilterMerchantAccountType *string `json:"filterMerchantAccountType,omitempty"` // A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. @@ -42,8 +44,6 @@ type UpdateCompanyWebhookRequest struct { Password *string `json:"password,omitempty"` // Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. PopulateSoapActionHeader *bool `json:"populateSoapActionHeader,omitempty"` - // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - SslVersion *string `json:"sslVersion,omitempty"` // Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. Url *string `json:"url,omitempty"` // Username to access the webhook URL. @@ -291,6 +291,38 @@ func (o *UpdateCompanyWebhookRequest) SetDescription(v string) { o.Description = &v } +// GetEncryptionProtocol returns the EncryptionProtocol field value if set, zero value otherwise. +func (o *UpdateCompanyWebhookRequest) GetEncryptionProtocol() string { + if o == nil || common.IsNil(o.EncryptionProtocol) { + var ret string + return ret + } + return *o.EncryptionProtocol +} + +// GetEncryptionProtocolOk returns a tuple with the EncryptionProtocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateCompanyWebhookRequest) GetEncryptionProtocolOk() (*string, bool) { + if o == nil || common.IsNil(o.EncryptionProtocol) { + return nil, false + } + return o.EncryptionProtocol, true +} + +// HasEncryptionProtocol returns a boolean if a field has been set. +func (o *UpdateCompanyWebhookRequest) HasEncryptionProtocol() bool { + if o != nil && !common.IsNil(o.EncryptionProtocol) { + return true + } + + return false +} + +// SetEncryptionProtocol gets a reference to the given string and assigns it to the EncryptionProtocol field. +func (o *UpdateCompanyWebhookRequest) SetEncryptionProtocol(v string) { + o.EncryptionProtocol = &v +} + // GetFilterMerchantAccountType returns the FilterMerchantAccountType field value if set, zero value otherwise. func (o *UpdateCompanyWebhookRequest) GetFilterMerchantAccountType() string { if o == nil || common.IsNil(o.FilterMerchantAccountType) { @@ -451,38 +483,6 @@ func (o *UpdateCompanyWebhookRequest) SetPopulateSoapActionHeader(v bool) { o.PopulateSoapActionHeader = &v } -// GetSslVersion returns the SslVersion field value if set, zero value otherwise. -func (o *UpdateCompanyWebhookRequest) GetSslVersion() string { - if o == nil || common.IsNil(o.SslVersion) { - var ret string - return ret - } - return *o.SslVersion -} - -// GetSslVersionOk returns a tuple with the SslVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateCompanyWebhookRequest) GetSslVersionOk() (*string, bool) { - if o == nil || common.IsNil(o.SslVersion) { - return nil, false - } - return o.SslVersion, true -} - -// HasSslVersion returns a boolean if a field has been set. -func (o *UpdateCompanyWebhookRequest) HasSslVersion() bool { - if o != nil && !common.IsNil(o.SslVersion) { - return true - } - - return false -} - -// SetSslVersion gets a reference to the given string and assigns it to the SslVersion field. -func (o *UpdateCompanyWebhookRequest) SetSslVersion(v string) { - o.SslVersion = &v -} - // GetUrl returns the Url field value if set, zero value otherwise. func (o *UpdateCompanyWebhookRequest) GetUrl() string { if o == nil || common.IsNil(o.Url) { @@ -578,6 +578,9 @@ func (o UpdateCompanyWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } + if !common.IsNil(o.EncryptionProtocol) { + toSerialize["encryptionProtocol"] = o.EncryptionProtocol + } if !common.IsNil(o.FilterMerchantAccountType) { toSerialize["filterMerchantAccountType"] = o.FilterMerchantAccountType } @@ -593,9 +596,6 @@ func (o UpdateCompanyWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.PopulateSoapActionHeader) { toSerialize["populateSoapActionHeader"] = o.PopulateSoapActionHeader } - if !common.IsNil(o.SslVersion) { - toSerialize["sslVersion"] = o.SslVersion - } if !common.IsNil(o.Url) { toSerialize["url"] = o.Url } @@ -650,28 +650,28 @@ func (o *UpdateCompanyWebhookRequest) isValidCommunicationFormat() bool { } return false } -func (o *UpdateCompanyWebhookRequest) isValidFilterMerchantAccountType() bool { - var allowedEnumValues = []string{"allAccounts", "excludeAccounts", "includeAccounts"} +func (o *UpdateCompanyWebhookRequest) isValidEncryptionProtocol() bool { + var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} for _, allowed := range allowedEnumValues { - if o.GetFilterMerchantAccountType() == allowed { + if o.GetEncryptionProtocol() == allowed { return true } } return false } -func (o *UpdateCompanyWebhookRequest) isValidNetworkType() bool { - var allowedEnumValues = []string{"local", "public"} +func (o *UpdateCompanyWebhookRequest) isValidFilterMerchantAccountType() bool { + var allowedEnumValues = []string{"allAccounts", "excludeAccounts", "includeAccounts"} for _, allowed := range allowedEnumValues { - if o.GetNetworkType() == allowed { + if o.GetFilterMerchantAccountType() == allowed { return true } } return false } -func (o *UpdateCompanyWebhookRequest) isValidSslVersion() bool { - var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} +func (o *UpdateCompanyWebhookRequest) isValidNetworkType() bool { + var allowedEnumValues = []string{"local", "public"} for _, allowed := range allowedEnumValues { - if o.GetSslVersion() == allowed { + if o.GetNetworkType() == allowed { return true } } diff --git a/src/management/model_update_merchant_api_credential_request.go b/src/management/model_update_merchant_api_credential_request.go index 3cd282de8..44ead3891 100644 --- a/src/management/model_update_merchant_api_credential_request.go +++ b/src/management/model_update_merchant_api_credential_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateMerchantApiCredentialRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_merchant_user_request.go b/src/management/model_update_merchant_user_request.go index e160c42a5..acc71bdaf 100644 --- a/src/management/model_update_merchant_user_request.go +++ b/src/management/model_update_merchant_user_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateMerchantUserRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_merchant_webhook_request.go b/src/management/model_update_merchant_webhook_request.go index f2f023a39..cdc5569da 100644 --- a/src/management/model_update_merchant_webhook_request.go +++ b/src/management/model_update_merchant_webhook_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateMerchantWebhookRequest type satisfies the MappedNullable interface at compile time @@ -32,14 +32,14 @@ type UpdateMerchantWebhookRequest struct { CommunicationFormat *string `json:"communicationFormat,omitempty"` // Your description for this webhook configuration. Description *string `json:"description,omitempty"` + // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + EncryptionProtocol *string `json:"encryptionProtocol,omitempty"` // Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. NetworkType *string `json:"networkType,omitempty"` // Password to access the webhook URL. Password *string `json:"password,omitempty"` // Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. PopulateSoapActionHeader *bool `json:"populateSoapActionHeader,omitempty"` - // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - SslVersion *string `json:"sslVersion,omitempty"` // Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. Url *string `json:"url,omitempty"` // Username to access the webhook URL. @@ -287,6 +287,38 @@ func (o *UpdateMerchantWebhookRequest) SetDescription(v string) { o.Description = &v } +// GetEncryptionProtocol returns the EncryptionProtocol field value if set, zero value otherwise. +func (o *UpdateMerchantWebhookRequest) GetEncryptionProtocol() string { + if o == nil || common.IsNil(o.EncryptionProtocol) { + var ret string + return ret + } + return *o.EncryptionProtocol +} + +// GetEncryptionProtocolOk returns a tuple with the EncryptionProtocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateMerchantWebhookRequest) GetEncryptionProtocolOk() (*string, bool) { + if o == nil || common.IsNil(o.EncryptionProtocol) { + return nil, false + } + return o.EncryptionProtocol, true +} + +// HasEncryptionProtocol returns a boolean if a field has been set. +func (o *UpdateMerchantWebhookRequest) HasEncryptionProtocol() bool { + if o != nil && !common.IsNil(o.EncryptionProtocol) { + return true + } + + return false +} + +// SetEncryptionProtocol gets a reference to the given string and assigns it to the EncryptionProtocol field. +func (o *UpdateMerchantWebhookRequest) SetEncryptionProtocol(v string) { + o.EncryptionProtocol = &v +} + // GetNetworkType returns the NetworkType field value if set, zero value otherwise. func (o *UpdateMerchantWebhookRequest) GetNetworkType() string { if o == nil || common.IsNil(o.NetworkType) { @@ -383,38 +415,6 @@ func (o *UpdateMerchantWebhookRequest) SetPopulateSoapActionHeader(v bool) { o.PopulateSoapActionHeader = &v } -// GetSslVersion returns the SslVersion field value if set, zero value otherwise. -func (o *UpdateMerchantWebhookRequest) GetSslVersion() string { - if o == nil || common.IsNil(o.SslVersion) { - var ret string - return ret - } - return *o.SslVersion -} - -// GetSslVersionOk returns a tuple with the SslVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateMerchantWebhookRequest) GetSslVersionOk() (*string, bool) { - if o == nil || common.IsNil(o.SslVersion) { - return nil, false - } - return o.SslVersion, true -} - -// HasSslVersion returns a boolean if a field has been set. -func (o *UpdateMerchantWebhookRequest) HasSslVersion() bool { - if o != nil && !common.IsNil(o.SslVersion) { - return true - } - - return false -} - -// SetSslVersion gets a reference to the given string and assigns it to the SslVersion field. -func (o *UpdateMerchantWebhookRequest) SetSslVersion(v string) { - o.SslVersion = &v -} - // GetUrl returns the Url field value if set, zero value otherwise. func (o *UpdateMerchantWebhookRequest) GetUrl() string { if o == nil || common.IsNil(o.Url) { @@ -510,6 +510,9 @@ func (o UpdateMerchantWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } + if !common.IsNil(o.EncryptionProtocol) { + toSerialize["encryptionProtocol"] = o.EncryptionProtocol + } if !common.IsNil(o.NetworkType) { toSerialize["networkType"] = o.NetworkType } @@ -519,9 +522,6 @@ func (o UpdateMerchantWebhookRequest) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.PopulateSoapActionHeader) { toSerialize["populateSoapActionHeader"] = o.PopulateSoapActionHeader } - if !common.IsNil(o.SslVersion) { - toSerialize["sslVersion"] = o.SslVersion - } if !common.IsNil(o.Url) { toSerialize["url"] = o.Url } @@ -576,19 +576,19 @@ func (o *UpdateMerchantWebhookRequest) isValidCommunicationFormat() bool { } return false } -func (o *UpdateMerchantWebhookRequest) isValidNetworkType() bool { - var allowedEnumValues = []string{"local", "public"} +func (o *UpdateMerchantWebhookRequest) isValidEncryptionProtocol() bool { + var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} for _, allowed := range allowedEnumValues { - if o.GetNetworkType() == allowed { + if o.GetEncryptionProtocol() == allowed { return true } } return false } -func (o *UpdateMerchantWebhookRequest) isValidSslVersion() bool { - var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} +func (o *UpdateMerchantWebhookRequest) isValidNetworkType() bool { + var allowedEnumValues = []string{"local", "public"} for _, allowed := range allowedEnumValues { - if o.GetSslVersion() == allowed { + if o.GetNetworkType() == allowed { return true } } diff --git a/src/management/model_update_payment_method_info.go b/src/management/model_update_payment_method_info.go index 86cbe8377..758a3ae53 100644 --- a/src/management/model_update_payment_method_info.go +++ b/src/management/model_update_payment_method_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdatePaymentMethodInfo type satisfies the MappedNullable interface at compile time @@ -22,13 +22,24 @@ type UpdatePaymentMethodInfo struct { Bcmc *BcmcInfo `json:"bcmc,omitempty"` CartesBancaires *CartesBancairesInfo `json:"cartesBancaires,omitempty"` // The list of countries where a payment method is available. By default, all countries supported by the payment method. - Countries []string `json:"countries,omitempty"` + Countries []string `json:"countries,omitempty"` + Cup *GenericPmWithTdiInfo `json:"cup,omitempty"` // The list of currencies that a payment method supports. By default, all currencies supported by the payment method. - Currencies []string `json:"currencies,omitempty"` + Currencies []string `json:"currencies,omitempty"` + Diners *GenericPmWithTdiInfo `json:"diners,omitempty"` + Discover *GenericPmWithTdiInfo `json:"discover,omitempty"` + EftposAustralia *GenericPmWithTdiInfo `json:"eftpos_australia,omitempty"` // Indicates whether the payment method is enabled (**true**) or disabled (**false**). - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Girocard *GenericPmWithTdiInfo `json:"girocard,omitempty"` + Ideal *GenericPmWithTdiInfo `json:"ideal,omitempty"` + InteracCard *GenericPmWithTdiInfo `json:"interac_card,omitempty"` + Jcb *GenericPmWithTdiInfo `json:"jcb,omitempty"` + Maestro *GenericPmWithTdiInfo `json:"maestro,omitempty"` + Mc *GenericPmWithTdiInfo `json:"mc,omitempty"` // The list of stores for this payment method - StoreIds []string `json:"storeIds,omitempty"` + StoreIds []string `json:"storeIds,omitempty"` + Visa *GenericPmWithTdiInfo `json:"visa,omitempty"` } // NewUpdatePaymentMethodInfo instantiates a new UpdatePaymentMethodInfo object @@ -144,6 +155,38 @@ func (o *UpdatePaymentMethodInfo) SetCountries(v []string) { o.Countries = v } +// GetCup returns the Cup field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetCup() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Cup) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Cup +} + +// GetCupOk returns a tuple with the Cup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetCupOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Cup) { + return nil, false + } + return o.Cup, true +} + +// HasCup returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasCup() bool { + if o != nil && !common.IsNil(o.Cup) { + return true + } + + return false +} + +// SetCup gets a reference to the given GenericPmWithTdiInfo and assigns it to the Cup field. +func (o *UpdatePaymentMethodInfo) SetCup(v GenericPmWithTdiInfo) { + o.Cup = &v +} + // GetCurrencies returns the Currencies field value if set, zero value otherwise. func (o *UpdatePaymentMethodInfo) GetCurrencies() []string { if o == nil || common.IsNil(o.Currencies) { @@ -176,6 +219,102 @@ func (o *UpdatePaymentMethodInfo) SetCurrencies(v []string) { o.Currencies = v } +// GetDiners returns the Diners field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetDiners() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Diners) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Diners +} + +// GetDinersOk returns a tuple with the Diners field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetDinersOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Diners) { + return nil, false + } + return o.Diners, true +} + +// HasDiners returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasDiners() bool { + if o != nil && !common.IsNil(o.Diners) { + return true + } + + return false +} + +// SetDiners gets a reference to the given GenericPmWithTdiInfo and assigns it to the Diners field. +func (o *UpdatePaymentMethodInfo) SetDiners(v GenericPmWithTdiInfo) { + o.Diners = &v +} + +// GetDiscover returns the Discover field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetDiscover() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Discover) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Discover +} + +// GetDiscoverOk returns a tuple with the Discover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetDiscoverOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Discover) { + return nil, false + } + return o.Discover, true +} + +// HasDiscover returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasDiscover() bool { + if o != nil && !common.IsNil(o.Discover) { + return true + } + + return false +} + +// SetDiscover gets a reference to the given GenericPmWithTdiInfo and assigns it to the Discover field. +func (o *UpdatePaymentMethodInfo) SetDiscover(v GenericPmWithTdiInfo) { + o.Discover = &v +} + +// GetEftposAustralia returns the EftposAustralia field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetEftposAustralia() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.EftposAustralia) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.EftposAustralia +} + +// GetEftposAustraliaOk returns a tuple with the EftposAustralia field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetEftposAustraliaOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.EftposAustralia) { + return nil, false + } + return o.EftposAustralia, true +} + +// HasEftposAustralia returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasEftposAustralia() bool { + if o != nil && !common.IsNil(o.EftposAustralia) { + return true + } + + return false +} + +// SetEftposAustralia gets a reference to the given GenericPmWithTdiInfo and assigns it to the EftposAustralia field. +func (o *UpdatePaymentMethodInfo) SetEftposAustralia(v GenericPmWithTdiInfo) { + o.EftposAustralia = &v +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *UpdatePaymentMethodInfo) GetEnabled() bool { if o == nil || common.IsNil(o.Enabled) { @@ -208,6 +347,198 @@ func (o *UpdatePaymentMethodInfo) SetEnabled(v bool) { o.Enabled = &v } +// GetGirocard returns the Girocard field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetGirocard() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Girocard) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Girocard +} + +// GetGirocardOk returns a tuple with the Girocard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetGirocardOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Girocard) { + return nil, false + } + return o.Girocard, true +} + +// HasGirocard returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasGirocard() bool { + if o != nil && !common.IsNil(o.Girocard) { + return true + } + + return false +} + +// SetGirocard gets a reference to the given GenericPmWithTdiInfo and assigns it to the Girocard field. +func (o *UpdatePaymentMethodInfo) SetGirocard(v GenericPmWithTdiInfo) { + o.Girocard = &v +} + +// GetIdeal returns the Ideal field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetIdeal() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Ideal) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Ideal +} + +// GetIdealOk returns a tuple with the Ideal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetIdealOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Ideal) { + return nil, false + } + return o.Ideal, true +} + +// HasIdeal returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasIdeal() bool { + if o != nil && !common.IsNil(o.Ideal) { + return true + } + + return false +} + +// SetIdeal gets a reference to the given GenericPmWithTdiInfo and assigns it to the Ideal field. +func (o *UpdatePaymentMethodInfo) SetIdeal(v GenericPmWithTdiInfo) { + o.Ideal = &v +} + +// GetInteracCard returns the InteracCard field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetInteracCard() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.InteracCard) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.InteracCard +} + +// GetInteracCardOk returns a tuple with the InteracCard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetInteracCardOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.InteracCard) { + return nil, false + } + return o.InteracCard, true +} + +// HasInteracCard returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasInteracCard() bool { + if o != nil && !common.IsNil(o.InteracCard) { + return true + } + + return false +} + +// SetInteracCard gets a reference to the given GenericPmWithTdiInfo and assigns it to the InteracCard field. +func (o *UpdatePaymentMethodInfo) SetInteracCard(v GenericPmWithTdiInfo) { + o.InteracCard = &v +} + +// GetJcb returns the Jcb field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetJcb() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Jcb) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Jcb +} + +// GetJcbOk returns a tuple with the Jcb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetJcbOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Jcb) { + return nil, false + } + return o.Jcb, true +} + +// HasJcb returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasJcb() bool { + if o != nil && !common.IsNil(o.Jcb) { + return true + } + + return false +} + +// SetJcb gets a reference to the given GenericPmWithTdiInfo and assigns it to the Jcb field. +func (o *UpdatePaymentMethodInfo) SetJcb(v GenericPmWithTdiInfo) { + o.Jcb = &v +} + +// GetMaestro returns the Maestro field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetMaestro() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Maestro) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Maestro +} + +// GetMaestroOk returns a tuple with the Maestro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetMaestroOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Maestro) { + return nil, false + } + return o.Maestro, true +} + +// HasMaestro returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasMaestro() bool { + if o != nil && !common.IsNil(o.Maestro) { + return true + } + + return false +} + +// SetMaestro gets a reference to the given GenericPmWithTdiInfo and assigns it to the Maestro field. +func (o *UpdatePaymentMethodInfo) SetMaestro(v GenericPmWithTdiInfo) { + o.Maestro = &v +} + +// GetMc returns the Mc field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetMc() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Mc) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Mc +} + +// GetMcOk returns a tuple with the Mc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetMcOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Mc) { + return nil, false + } + return o.Mc, true +} + +// HasMc returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasMc() bool { + if o != nil && !common.IsNil(o.Mc) { + return true + } + + return false +} + +// SetMc gets a reference to the given GenericPmWithTdiInfo and assigns it to the Mc field. +func (o *UpdatePaymentMethodInfo) SetMc(v GenericPmWithTdiInfo) { + o.Mc = &v +} + // GetStoreIds returns the StoreIds field value if set, zero value otherwise. func (o *UpdatePaymentMethodInfo) GetStoreIds() []string { if o == nil || common.IsNil(o.StoreIds) { @@ -240,6 +571,38 @@ func (o *UpdatePaymentMethodInfo) SetStoreIds(v []string) { o.StoreIds = v } +// GetVisa returns the Visa field value if set, zero value otherwise. +func (o *UpdatePaymentMethodInfo) GetVisa() GenericPmWithTdiInfo { + if o == nil || common.IsNil(o.Visa) { + var ret GenericPmWithTdiInfo + return ret + } + return *o.Visa +} + +// GetVisaOk returns a tuple with the Visa field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatePaymentMethodInfo) GetVisaOk() (*GenericPmWithTdiInfo, bool) { + if o == nil || common.IsNil(o.Visa) { + return nil, false + } + return o.Visa, true +} + +// HasVisa returns a boolean if a field has been set. +func (o *UpdatePaymentMethodInfo) HasVisa() bool { + if o != nil && !common.IsNil(o.Visa) { + return true + } + + return false +} + +// SetVisa gets a reference to the given GenericPmWithTdiInfo and assigns it to the Visa field. +func (o *UpdatePaymentMethodInfo) SetVisa(v GenericPmWithTdiInfo) { + o.Visa = &v +} + func (o UpdatePaymentMethodInfo) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -259,15 +622,48 @@ func (o UpdatePaymentMethodInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Countries) { toSerialize["countries"] = o.Countries } + if !common.IsNil(o.Cup) { + toSerialize["cup"] = o.Cup + } if !common.IsNil(o.Currencies) { toSerialize["currencies"] = o.Currencies } + if !common.IsNil(o.Diners) { + toSerialize["diners"] = o.Diners + } + if !common.IsNil(o.Discover) { + toSerialize["discover"] = o.Discover + } + if !common.IsNil(o.EftposAustralia) { + toSerialize["eftpos_australia"] = o.EftposAustralia + } if !common.IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + if !common.IsNil(o.Girocard) { + toSerialize["girocard"] = o.Girocard + } + if !common.IsNil(o.Ideal) { + toSerialize["ideal"] = o.Ideal + } + if !common.IsNil(o.InteracCard) { + toSerialize["interac_card"] = o.InteracCard + } + if !common.IsNil(o.Jcb) { + toSerialize["jcb"] = o.Jcb + } + if !common.IsNil(o.Maestro) { + toSerialize["maestro"] = o.Maestro + } + if !common.IsNil(o.Mc) { + toSerialize["mc"] = o.Mc + } if !common.IsNil(o.StoreIds) { toSerialize["storeIds"] = o.StoreIds } + if !common.IsNil(o.Visa) { + toSerialize["visa"] = o.Visa + } return toSerialize, nil } diff --git a/src/management/model_update_payout_settings_request.go b/src/management/model_update_payout_settings_request.go index f79e2c515..65c8094d4 100644 --- a/src/management/model_update_payout_settings_request.go +++ b/src/management/model_update_payout_settings_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdatePayoutSettingsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_split_configuration_logic_request.go b/src/management/model_update_split_configuration_logic_request.go index 14b39b581..4bde5ffb0 100644 --- a/src/management/model_update_split_configuration_logic_request.go +++ b/src/management/model_update_split_configuration_logic_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateSplitConfigurationLogicRequest type satisfies the MappedNullable interface at compile time @@ -19,14 +19,28 @@ var _ common.MappedNullable = &UpdateSplitConfigurationLogicRequest{} // UpdateSplitConfigurationLogicRequest struct for UpdateSplitConfigurationLogicRequest type UpdateSplitConfigurationLogicRequest struct { + // Specifies the logic to apply when booking the transaction fees. Should be combined with adyenFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AcquiringFees *string `json:"acquiringFees,omitempty"` AdditionalCommission *AdditionalCommission `json:"additionalCommission,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, interchange & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AdyenCommission *string `json:"adyenCommission,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with acquiringFees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AdyenFees *string `json:"adyenFees,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & interchange. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + AdyenMarkup *string `json:"adyenMarkup,omitempty"` // Specifies the logic to apply when booking the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - Chargeback *string `json:"chargeback,omitempty"` - Commission Commission `json:"commission"` - // Specifies the logic to apply when booking the transaction fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - PaymentFee string `json:"paymentFee"` + Chargeback *string `json:"chargeback,omitempty"` + // Specifies the logic to apply when allocating the chargeback costs. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + ChargebackCostAllocation *string `json:"chargebackCostAllocation,omitempty"` + Commission Commission `json:"commission"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with schemeFee, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + Interchange *string `json:"interchange,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Cannot be combined with other fees. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + PaymentFee *string `json:"paymentFee,omitempty"` // Specifies the logic to apply when booking the amount left over after currency conversion. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. Remainder *string `json:"remainder,omitempty"` + // Specifies the logic to apply when booking the transaction fees. Should be combined with interchange, adyenCommission & adyenMarkup. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + SchemeFee *string `json:"schemeFee,omitempty"` // Unique identifier of the split logic that is applied when the split configuration conditions are met. SplitLogicId *string `json:"splitLogicId,omitempty"` // Specifies the logic to apply when booking the surcharge amount. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** @@ -39,10 +53,9 @@ type UpdateSplitConfigurationLogicRequest 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 NewUpdateSplitConfigurationLogicRequest(commission Commission, paymentFee string) *UpdateSplitConfigurationLogicRequest { +func NewUpdateSplitConfigurationLogicRequest(commission Commission) *UpdateSplitConfigurationLogicRequest { this := UpdateSplitConfigurationLogicRequest{} this.Commission = commission - this.PaymentFee = paymentFee return &this } @@ -54,6 +67,38 @@ func NewUpdateSplitConfigurationLogicRequestWithDefaults() *UpdateSplitConfigura return &this } +// GetAcquiringFees returns the AcquiringFees field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetAcquiringFees() string { + if o == nil || common.IsNil(o.AcquiringFees) { + var ret string + return ret + } + return *o.AcquiringFees +} + +// GetAcquiringFeesOk returns a tuple with the AcquiringFees field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetAcquiringFeesOk() (*string, bool) { + if o == nil || common.IsNil(o.AcquiringFees) { + return nil, false + } + return o.AcquiringFees, true +} + +// HasAcquiringFees returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasAcquiringFees() bool { + if o != nil && !common.IsNil(o.AcquiringFees) { + return true + } + + return false +} + +// SetAcquiringFees gets a reference to the given string and assigns it to the AcquiringFees field. +func (o *UpdateSplitConfigurationLogicRequest) SetAcquiringFees(v string) { + o.AcquiringFees = &v +} + // GetAdditionalCommission returns the AdditionalCommission field value if set, zero value otherwise. func (o *UpdateSplitConfigurationLogicRequest) GetAdditionalCommission() AdditionalCommission { if o == nil || common.IsNil(o.AdditionalCommission) { @@ -86,6 +131,102 @@ func (o *UpdateSplitConfigurationLogicRequest) SetAdditionalCommission(v Additio o.AdditionalCommission = &v } +// GetAdyenCommission returns the AdyenCommission field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetAdyenCommission() string { + if o == nil || common.IsNil(o.AdyenCommission) { + var ret string + return ret + } + return *o.AdyenCommission +} + +// GetAdyenCommissionOk returns a tuple with the AdyenCommission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetAdyenCommissionOk() (*string, bool) { + if o == nil || common.IsNil(o.AdyenCommission) { + return nil, false + } + return o.AdyenCommission, true +} + +// HasAdyenCommission returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasAdyenCommission() bool { + if o != nil && !common.IsNil(o.AdyenCommission) { + return true + } + + return false +} + +// SetAdyenCommission gets a reference to the given string and assigns it to the AdyenCommission field. +func (o *UpdateSplitConfigurationLogicRequest) SetAdyenCommission(v string) { + o.AdyenCommission = &v +} + +// GetAdyenFees returns the AdyenFees field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetAdyenFees() string { + if o == nil || common.IsNil(o.AdyenFees) { + var ret string + return ret + } + return *o.AdyenFees +} + +// GetAdyenFeesOk returns a tuple with the AdyenFees field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetAdyenFeesOk() (*string, bool) { + if o == nil || common.IsNil(o.AdyenFees) { + return nil, false + } + return o.AdyenFees, true +} + +// HasAdyenFees returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasAdyenFees() bool { + if o != nil && !common.IsNil(o.AdyenFees) { + return true + } + + return false +} + +// SetAdyenFees gets a reference to the given string and assigns it to the AdyenFees field. +func (o *UpdateSplitConfigurationLogicRequest) SetAdyenFees(v string) { + o.AdyenFees = &v +} + +// GetAdyenMarkup returns the AdyenMarkup field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetAdyenMarkup() string { + if o == nil || common.IsNil(o.AdyenMarkup) { + var ret string + return ret + } + return *o.AdyenMarkup +} + +// GetAdyenMarkupOk returns a tuple with the AdyenMarkup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetAdyenMarkupOk() (*string, bool) { + if o == nil || common.IsNil(o.AdyenMarkup) { + return nil, false + } + return o.AdyenMarkup, true +} + +// HasAdyenMarkup returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasAdyenMarkup() bool { + if o != nil && !common.IsNil(o.AdyenMarkup) { + return true + } + + return false +} + +// SetAdyenMarkup gets a reference to the given string and assigns it to the AdyenMarkup field. +func (o *UpdateSplitConfigurationLogicRequest) SetAdyenMarkup(v string) { + o.AdyenMarkup = &v +} + // GetChargeback returns the Chargeback field value if set, zero value otherwise. func (o *UpdateSplitConfigurationLogicRequest) GetChargeback() string { if o == nil || common.IsNil(o.Chargeback) { @@ -118,6 +259,38 @@ func (o *UpdateSplitConfigurationLogicRequest) SetChargeback(v string) { o.Chargeback = &v } +// GetChargebackCostAllocation returns the ChargebackCostAllocation field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetChargebackCostAllocation() string { + if o == nil || common.IsNil(o.ChargebackCostAllocation) { + var ret string + return ret + } + return *o.ChargebackCostAllocation +} + +// GetChargebackCostAllocationOk returns a tuple with the ChargebackCostAllocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetChargebackCostAllocationOk() (*string, bool) { + if o == nil || common.IsNil(o.ChargebackCostAllocation) { + return nil, false + } + return o.ChargebackCostAllocation, true +} + +// HasChargebackCostAllocation returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasChargebackCostAllocation() bool { + if o != nil && !common.IsNil(o.ChargebackCostAllocation) { + return true + } + + return false +} + +// SetChargebackCostAllocation gets a reference to the given string and assigns it to the ChargebackCostAllocation field. +func (o *UpdateSplitConfigurationLogicRequest) SetChargebackCostAllocation(v string) { + o.ChargebackCostAllocation = &v +} + // GetCommission returns the Commission field value func (o *UpdateSplitConfigurationLogicRequest) GetCommission() Commission { if o == nil { @@ -142,28 +315,68 @@ func (o *UpdateSplitConfigurationLogicRequest) SetCommission(v Commission) { o.Commission = v } -// GetPaymentFee returns the PaymentFee field value -func (o *UpdateSplitConfigurationLogicRequest) GetPaymentFee() string { - if o == nil { +// GetInterchange returns the Interchange field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetInterchange() string { + if o == nil || common.IsNil(o.Interchange) { var ret string return ret } + return *o.Interchange +} + +// GetInterchangeOk returns a tuple with the Interchange field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetInterchangeOk() (*string, bool) { + if o == nil || common.IsNil(o.Interchange) { + return nil, false + } + return o.Interchange, true +} + +// HasInterchange returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasInterchange() bool { + if o != nil && !common.IsNil(o.Interchange) { + return true + } + + return false +} + +// SetInterchange gets a reference to the given string and assigns it to the Interchange field. +func (o *UpdateSplitConfigurationLogicRequest) SetInterchange(v string) { + o.Interchange = &v +} - return o.PaymentFee +// GetPaymentFee returns the PaymentFee field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetPaymentFee() string { + if o == nil || common.IsNil(o.PaymentFee) { + var ret string + return ret + } + return *o.PaymentFee } -// GetPaymentFeeOk returns a tuple with the PaymentFee field value +// GetPaymentFeeOk returns a tuple with the PaymentFee field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UpdateSplitConfigurationLogicRequest) GetPaymentFeeOk() (*string, bool) { - if o == nil { + if o == nil || common.IsNil(o.PaymentFee) { return nil, false } - return &o.PaymentFee, true + return o.PaymentFee, true +} + +// HasPaymentFee returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasPaymentFee() bool { + if o != nil && !common.IsNil(o.PaymentFee) { + return true + } + + return false } -// SetPaymentFee sets field value +// SetPaymentFee gets a reference to the given string and assigns it to the PaymentFee field. func (o *UpdateSplitConfigurationLogicRequest) SetPaymentFee(v string) { - o.PaymentFee = v + o.PaymentFee = &v } // GetRemainder returns the Remainder field value if set, zero value otherwise. @@ -198,6 +411,38 @@ func (o *UpdateSplitConfigurationLogicRequest) SetRemainder(v string) { o.Remainder = &v } +// GetSchemeFee returns the SchemeFee field value if set, zero value otherwise. +func (o *UpdateSplitConfigurationLogicRequest) GetSchemeFee() string { + if o == nil || common.IsNil(o.SchemeFee) { + var ret string + return ret + } + return *o.SchemeFee +} + +// GetSchemeFeeOk returns a tuple with the SchemeFee field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSplitConfigurationLogicRequest) GetSchemeFeeOk() (*string, bool) { + if o == nil || common.IsNil(o.SchemeFee) { + return nil, false + } + return o.SchemeFee, true +} + +// HasSchemeFee returns a boolean if a field has been set. +func (o *UpdateSplitConfigurationLogicRequest) HasSchemeFee() bool { + if o != nil && !common.IsNil(o.SchemeFee) { + return true + } + + return false +} + +// SetSchemeFee gets a reference to the given string and assigns it to the SchemeFee field. +func (o *UpdateSplitConfigurationLogicRequest) SetSchemeFee(v string) { + o.SchemeFee = &v +} + // GetSplitLogicId returns the SplitLogicId field value if set, zero value otherwise. func (o *UpdateSplitConfigurationLogicRequest) GetSplitLogicId() string { if o == nil || common.IsNil(o.SplitLogicId) { @@ -304,17 +549,40 @@ func (o UpdateSplitConfigurationLogicRequest) MarshalJSON() ([]byte, error) { func (o UpdateSplitConfigurationLogicRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !common.IsNil(o.AcquiringFees) { + toSerialize["acquiringFees"] = o.AcquiringFees + } if !common.IsNil(o.AdditionalCommission) { toSerialize["additionalCommission"] = o.AdditionalCommission } + if !common.IsNil(o.AdyenCommission) { + toSerialize["adyenCommission"] = o.AdyenCommission + } + if !common.IsNil(o.AdyenFees) { + toSerialize["adyenFees"] = o.AdyenFees + } + if !common.IsNil(o.AdyenMarkup) { + toSerialize["adyenMarkup"] = o.AdyenMarkup + } if !common.IsNil(o.Chargeback) { toSerialize["chargeback"] = o.Chargeback } + if !common.IsNil(o.ChargebackCostAllocation) { + toSerialize["chargebackCostAllocation"] = o.ChargebackCostAllocation + } toSerialize["commission"] = o.Commission - toSerialize["paymentFee"] = o.PaymentFee + if !common.IsNil(o.Interchange) { + toSerialize["interchange"] = o.Interchange + } + if !common.IsNil(o.PaymentFee) { + toSerialize["paymentFee"] = o.PaymentFee + } if !common.IsNil(o.Remainder) { toSerialize["remainder"] = o.Remainder } + if !common.IsNil(o.SchemeFee) { + toSerialize["schemeFee"] = o.SchemeFee + } if !common.IsNil(o.SplitLogicId) { toSerialize["splitLogicId"] = o.SplitLogicId } @@ -363,6 +631,42 @@ func (v *NullableUpdateSplitConfigurationLogicRequest) UnmarshalJSON(src []byte) return json.Unmarshal(src, &v.value) } +func (o *UpdateSplitConfigurationLogicRequest) isValidAcquiringFees() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAcquiringFees() == allowed { + return true + } + } + return false +} +func (o *UpdateSplitConfigurationLogicRequest) isValidAdyenCommission() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAdyenCommission() == allowed { + return true + } + } + return false +} +func (o *UpdateSplitConfigurationLogicRequest) isValidAdyenFees() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAdyenFees() == allowed { + return true + } + } + return false +} +func (o *UpdateSplitConfigurationLogicRequest) isValidAdyenMarkup() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetAdyenMarkup() == allowed { + return true + } + } + return false +} func (o *UpdateSplitConfigurationLogicRequest) isValidChargeback() bool { var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount", "deductAccordingToSplitRatio"} for _, allowed := range allowedEnumValues { @@ -372,6 +676,24 @@ func (o *UpdateSplitConfigurationLogicRequest) isValidChargeback() bool { } return false } +func (o *UpdateSplitConfigurationLogicRequest) isValidChargebackCostAllocation() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetChargebackCostAllocation() == allowed { + return true + } + } + return false +} +func (o *UpdateSplitConfigurationLogicRequest) isValidInterchange() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetInterchange() == allowed { + return true + } + } + return false +} func (o *UpdateSplitConfigurationLogicRequest) isValidPaymentFee() bool { var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} for _, allowed := range allowedEnumValues { @@ -390,6 +712,15 @@ func (o *UpdateSplitConfigurationLogicRequest) isValidRemainder() bool { } return false } +func (o *UpdateSplitConfigurationLogicRequest) isValidSchemeFee() bool { + var allowedEnumValues = []string{"deductFromLiableAccount", "deductFromOneBalanceAccount"} + for _, allowed := range allowedEnumValues { + if o.GetSchemeFee() == allowed { + return true + } + } + return false +} func (o *UpdateSplitConfigurationLogicRequest) isValidSurcharge() bool { var allowedEnumValues = []string{"addToLiableAccount", "addToOneBalanceAccount"} for _, allowed := range allowedEnumValues { diff --git a/src/management/model_update_split_configuration_request.go b/src/management/model_update_split_configuration_request.go index a6a56cb79..d28fee236 100644 --- a/src/management/model_update_split_configuration_request.go +++ b/src/management/model_update_split_configuration_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateSplitConfigurationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_split_configuration_rule_request.go b/src/management/model_update_split_configuration_rule_request.go index 458911a33..a14324368 100644 --- a/src/management/model_update_split_configuration_rule_request.go +++ b/src/management/model_update_split_configuration_rule_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateSplitConfigurationRuleRequest type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_update_store_request.go b/src/management/model_update_store_request.go index 347daee3f..eda760df7 100644 --- a/src/management/model_update_store_request.go +++ b/src/management/model_update_store_request.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UpdateStoreRequest type satisfies the MappedNullable interface at compile time @@ -20,7 +20,7 @@ var _ common.MappedNullable = &UpdateStoreRequest{} // UpdateStoreRequest struct for UpdateStoreRequest type UpdateStoreRequest struct { Address *UpdatableAddress `json:"address,omitempty"` - // The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. + // The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. BusinessLineIds []string `json:"businessLineIds,omitempty"` // The description of the store. Description *string `json:"description,omitempty"` diff --git a/src/management/model_upload_android_app_response.go b/src/management/model_upload_android_app_response.go new file mode 100644 index 000000000..42eb0650e --- /dev/null +++ b/src/management/model_upload_android_app_response.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 UploadAndroidAppResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &UploadAndroidAppResponse{} + +// UploadAndroidAppResponse struct for UploadAndroidAppResponse +type UploadAndroidAppResponse struct { + // The unique identifier of the uploaded Android app. + Id *string `json:"id,omitempty"` +} + +// NewUploadAndroidAppResponse instantiates a new UploadAndroidAppResponse 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 NewUploadAndroidAppResponse() *UploadAndroidAppResponse { + this := UploadAndroidAppResponse{} + return &this +} + +// NewUploadAndroidAppResponseWithDefaults instantiates a new UploadAndroidAppResponse 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 NewUploadAndroidAppResponseWithDefaults() *UploadAndroidAppResponse { + this := UploadAndroidAppResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *UploadAndroidAppResponse) GetId() string { + if o == nil || common.IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadAndroidAppResponse) GetIdOk() (*string, bool) { + if o == nil || common.IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *UploadAndroidAppResponse) HasId() bool { + if o != nil && !common.IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *UploadAndroidAppResponse) SetId(v string) { + o.Id = &v +} + +func (o UploadAndroidAppResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UploadAndroidAppResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Id) { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableUploadAndroidAppResponse struct { + value *UploadAndroidAppResponse + isSet bool +} + +func (v NullableUploadAndroidAppResponse) Get() *UploadAndroidAppResponse { + return v.value +} + +func (v *NullableUploadAndroidAppResponse) Set(val *UploadAndroidAppResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUploadAndroidAppResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUploadAndroidAppResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUploadAndroidAppResponse(val *UploadAndroidAppResponse) *NullableUploadAndroidAppResponse { + return &NullableUploadAndroidAppResponse{value: val, isSet: true} +} + +func (v NullableUploadAndroidAppResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUploadAndroidAppResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/management/model_url.go b/src/management/model_url.go index 894880e1e..c93849f92 100644 --- a/src/management/model_url.go +++ b/src/management/model_url.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Url type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_user.go b/src/management/model_user.go index 22820866f..1360f131f 100644 --- a/src/management/model_user.go +++ b/src/management/model_user.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the User type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_vipps_info.go b/src/management/model_vipps_info.go index 5128091b7..f0d8d9938 100644 --- a/src/management/model_vipps_info.go +++ b/src/management/model_vipps_info.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VippsInfo type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_webhook.go b/src/management/model_webhook.go index f5b08b5b3..f7bd00049 100644 --- a/src/management/model_webhook.go +++ b/src/management/model_webhook.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Webhook type satisfies the MappedNullable interface at compile time @@ -37,6 +37,8 @@ type Webhook struct { CommunicationFormat string `json:"communicationFormat"` // Your description for this webhook configuration. Description *string `json:"description,omitempty"` + // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + EncryptionProtocol *string `json:"encryptionProtocol,omitempty"` // Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. FilterMerchantAccountType *string `json:"filterMerchantAccountType,omitempty"` // A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. @@ -53,9 +55,7 @@ type Webhook struct { NetworkType *string `json:"networkType,omitempty"` // Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. PopulateSoapActionHeader *bool `json:"populateSoapActionHeader,omitempty"` - // SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - SslVersion *string `json:"sslVersion,omitempty"` - // The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + // The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). Type string `json:"type"` // Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. Url string `json:"url"` @@ -388,6 +388,38 @@ func (o *Webhook) SetDescription(v string) { o.Description = &v } +// GetEncryptionProtocol returns the EncryptionProtocol field value if set, zero value otherwise. +func (o *Webhook) GetEncryptionProtocol() string { + if o == nil || common.IsNil(o.EncryptionProtocol) { + var ret string + return ret + } + return *o.EncryptionProtocol +} + +// GetEncryptionProtocolOk returns a tuple with the EncryptionProtocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Webhook) GetEncryptionProtocolOk() (*string, bool) { + if o == nil || common.IsNil(o.EncryptionProtocol) { + return nil, false + } + return o.EncryptionProtocol, true +} + +// HasEncryptionProtocol returns a boolean if a field has been set. +func (o *Webhook) HasEncryptionProtocol() bool { + if o != nil && !common.IsNil(o.EncryptionProtocol) { + return true + } + + return false +} + +// SetEncryptionProtocol gets a reference to the given string and assigns it to the EncryptionProtocol field. +func (o *Webhook) SetEncryptionProtocol(v string) { + o.EncryptionProtocol = &v +} + // GetFilterMerchantAccountType returns the FilterMerchantAccountType field value if set, zero value otherwise. func (o *Webhook) GetFilterMerchantAccountType() string { if o == nil || common.IsNil(o.FilterMerchantAccountType) { @@ -644,38 +676,6 @@ func (o *Webhook) SetPopulateSoapActionHeader(v bool) { o.PopulateSoapActionHeader = &v } -// GetSslVersion returns the SslVersion field value if set, zero value otherwise. -func (o *Webhook) GetSslVersion() string { - if o == nil || common.IsNil(o.SslVersion) { - var ret string - return ret - } - return *o.SslVersion -} - -// GetSslVersionOk returns a tuple with the SslVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Webhook) GetSslVersionOk() (*string, bool) { - if o == nil || common.IsNil(o.SslVersion) { - return nil, false - } - return o.SslVersion, true -} - -// HasSslVersion returns a boolean if a field has been set. -func (o *Webhook) HasSslVersion() bool { - if o != nil && !common.IsNil(o.SslVersion) { - return true - } - - return false -} - -// SetSslVersion gets a reference to the given string and assigns it to the SslVersion field. -func (o *Webhook) SetSslVersion(v string) { - o.SslVersion = &v -} - // GetType returns the Type field value func (o *Webhook) GetType() string { if o == nil { @@ -792,6 +792,9 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } + if !common.IsNil(o.EncryptionProtocol) { + toSerialize["encryptionProtocol"] = o.EncryptionProtocol + } if !common.IsNil(o.FilterMerchantAccountType) { toSerialize["filterMerchantAccountType"] = o.FilterMerchantAccountType } @@ -816,9 +819,6 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.PopulateSoapActionHeader) { toSerialize["populateSoapActionHeader"] = o.PopulateSoapActionHeader } - if !common.IsNil(o.SslVersion) { - toSerialize["sslVersion"] = o.SslVersion - } toSerialize["type"] = o.Type toSerialize["url"] = o.Url if !common.IsNil(o.Username) { @@ -872,28 +872,28 @@ func (o *Webhook) isValidCommunicationFormat() bool { } return false } -func (o *Webhook) isValidFilterMerchantAccountType() bool { - var allowedEnumValues = []string{"allAccounts", "excludeAccounts", "includeAccounts"} +func (o *Webhook) isValidEncryptionProtocol() bool { + var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} for _, allowed := range allowedEnumValues { - if o.GetFilterMerchantAccountType() == allowed { + if o.GetEncryptionProtocol() == allowed { return true } } return false } -func (o *Webhook) isValidNetworkType() bool { - var allowedEnumValues = []string{"local", "public"} +func (o *Webhook) isValidFilterMerchantAccountType() bool { + var allowedEnumValues = []string{"allAccounts", "excludeAccounts", "includeAccounts"} for _, allowed := range allowedEnumValues { - if o.GetNetworkType() == allowed { + if o.GetFilterMerchantAccountType() == allowed { return true } } return false } -func (o *Webhook) isValidSslVersion() bool { - var allowedEnumValues = []string{"HTTP", "TLSv1.2", "TLSv1.3"} +func (o *Webhook) isValidNetworkType() bool { + var allowedEnumValues = []string{"local", "public"} for _, allowed := range allowedEnumValues { - if o.GetSslVersion() == allowed { + if o.GetNetworkType() == allowed { return true } } diff --git a/src/management/model_webhook_links.go b/src/management/model_webhook_links.go index b4cba88fd..02ceb05c4 100644 --- a/src/management/model_webhook_links.go +++ b/src/management/model_webhook_links.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the WebhookLinks type satisfies the MappedNullable interface at compile time diff --git a/src/management/model_wifi_profiles.go b/src/management/model_wifi_profiles.go index 6e2657c25..b21faf977 100644 --- a/src/management/model_wifi_profiles.go +++ b/src/management/model_wifi_profiles.go @@ -1,7 +1,7 @@ /* Management API -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package management import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the WifiProfiles type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_account_capability_data.go b/src/managementwebhook/model_account_capability_data.go index 63e8b4970..a40059711 100644 --- a/src/managementwebhook/model_account_capability_data.go +++ b/src/managementwebhook/model_account_capability_data.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountCapabilityData type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_account_create_notification_data.go b/src/managementwebhook/model_account_create_notification_data.go index 2f572ac7c..8c91b19e6 100644 --- a/src/managementwebhook/model_account_create_notification_data.go +++ b/src/managementwebhook/model_account_create_notification_data.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountCreateNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_account_notification_response.go b/src/managementwebhook/model_account_notification_response.go index f33274755..debf7048b 100644 --- a/src/managementwebhook/model_account_notification_response.go +++ b/src/managementwebhook/model_account_notification_response.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountNotificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_account_update_notification_data.go b/src/managementwebhook/model_account_update_notification_data.go index 50bc151dc..367b69a7b 100644 --- a/src/managementwebhook/model_account_update_notification_data.go +++ b/src/managementwebhook/model_account_update_notification_data.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountUpdateNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_capability_problem.go b/src/managementwebhook/model_capability_problem.go index 5496fedb1..62674e1c7 100644 --- a/src/managementwebhook/model_capability_problem.go +++ b/src/managementwebhook/model_capability_problem.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblem type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_capability_problem_entity.go b/src/managementwebhook/model_capability_problem_entity.go index 69581645e..793aa2ee9 100644 --- a/src/managementwebhook/model_capability_problem_entity.go +++ b/src/managementwebhook/model_capability_problem_entity.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntity type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_capability_problem_entity_recursive.go b/src/managementwebhook/model_capability_problem_entity_recursive.go index 1b105480b..533b3abf4 100644 --- a/src/managementwebhook/model_capability_problem_entity_recursive.go +++ b/src/managementwebhook/model_capability_problem_entity_recursive.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapabilityProblemEntityRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_merchant_created_notification_request.go b/src/managementwebhook/model_merchant_created_notification_request.go index 2695eee7b..f29093bfc 100644 --- a/src/managementwebhook/model_merchant_created_notification_request.go +++ b/src/managementwebhook/model_merchant_created_notification_request.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantCreatedNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_merchant_updated_notification_request.go b/src/managementwebhook/model_merchant_updated_notification_request.go index 66a157822..b71a8814b 100644 --- a/src/managementwebhook/model_merchant_updated_notification_request.go +++ b/src/managementwebhook/model_merchant_updated_notification_request.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantUpdatedNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_mid_service_notification_data.go b/src/managementwebhook/model_mid_service_notification_data.go index dfaeda167..67e3dc457 100644 --- a/src/managementwebhook/model_mid_service_notification_data.go +++ b/src/managementwebhook/model_mid_service_notification_data.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MidServiceNotificationData type satisfies the MappedNullable interface at compile time @@ -23,15 +23,15 @@ type MidServiceNotificationData struct { Allowed *bool `json:"allowed,omitempty"` // Indicates whether the payment method is enabled (**true**) or disabled (**false**). Enabled *bool `json:"enabled,omitempty"` - // The identifier of the resource. + // The unique identifier of the resource. Id string `json:"id"` - // The identifier of the merchant account. + // The unique identifier of the merchant account. MerchantId string `json:"merchantId"` // Your reference for the payment method. Reference *string `json:"reference,omitempty"` - // The result of the request to create a payment method. - Result string `json:"result"` - // The identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + // 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_). + 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"` // Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). Type string `json:"type"` @@ -43,11 +43,11 @@ type MidServiceNotificationData 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 NewMidServiceNotificationData(id string, merchantId string, result string, type_ string) *MidServiceNotificationData { +func NewMidServiceNotificationData(id string, merchantId string, status string, type_ string) *MidServiceNotificationData { this := MidServiceNotificationData{} this.Id = id this.MerchantId = merchantId - this.Result = result + this.Status = status this.Type = type_ return &this } @@ -204,28 +204,28 @@ func (o *MidServiceNotificationData) SetReference(v string) { o.Reference = &v } -// GetResult returns the Result field value -func (o *MidServiceNotificationData) GetResult() string { +// GetStatus returns the Status field value +func (o *MidServiceNotificationData) GetStatus() string { if o == nil { var ret string return ret } - return o.Result + return o.Status } -// GetResultOk returns a tuple with the Result field value +// GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *MidServiceNotificationData) GetResultOk() (*string, bool) { +func (o *MidServiceNotificationData) GetStatusOk() (*string, bool) { if o == nil { return nil, false } - return &o.Result, true + return &o.Status, true } -// SetResult sets field value -func (o *MidServiceNotificationData) SetResult(v string) { - o.Result = v +// SetStatus sets field value +func (o *MidServiceNotificationData) SetStatus(v string) { + o.Status = v } // GetStoreId returns the StoreId field value if set, zero value otherwise. @@ -337,7 +337,7 @@ func (o MidServiceNotificationData) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Reference) { toSerialize["reference"] = o.Reference } - toSerialize["result"] = o.Result + toSerialize["status"] = o.Status if !common.IsNil(o.StoreId) { toSerialize["storeId"] = o.StoreId } @@ -384,10 +384,10 @@ func (v *NullableMidServiceNotificationData) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } -func (o *MidServiceNotificationData) isValidResult() bool { - var allowedEnumValues = []string{"SUCCESS", "FAILURE"} +func (o *MidServiceNotificationData) isValidStatus() bool { + var allowedEnumValues = []string{"success", "failure", "capabilityPending", "dataRequired", "updatesExpected"} for _, allowed := range allowedEnumValues { - if o.GetResult() == allowed { + if o.GetStatus() == allowed { return true } } diff --git a/src/managementwebhook/model_notification_data_message.go b/src/managementwebhook/model_notification_data_message.go new file mode 100644 index 000000000..4b0a7c2c4 --- /dev/null +++ b/src/managementwebhook/model_notification_data_message.go @@ -0,0 +1,200 @@ +/* +Management Webhooks + +API version: 3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package managementwebhook + +import ( + "encoding/json" + "time" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the NotificationDataMessage type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &NotificationDataMessage{} + +// NotificationDataMessage struct for NotificationDataMessage +type NotificationDataMessage struct { + // Timestamp for when the webhook was created. + CreatedAt time.Time `json:"createdAt"` + Data MidServiceNotificationData `json:"data"` + // The environment from which the webhook originated. Possible values: **test**, **live**. + Environment string `json:"environment"` + // Type of notification. + Type string `json:"type"` +} + +// NewNotificationDataMessage instantiates a new NotificationDataMessage 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 NewNotificationDataMessage(createdAt time.Time, data MidServiceNotificationData, environment string, type_ string) *NotificationDataMessage { + this := NotificationDataMessage{} + this.CreatedAt = createdAt + this.Data = data + this.Environment = environment + this.Type = type_ + return &this +} + +// NewNotificationDataMessageWithDefaults instantiates a new NotificationDataMessage 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 NewNotificationDataMessageWithDefaults() *NotificationDataMessage { + this := NotificationDataMessage{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *NotificationDataMessage) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *NotificationDataMessage) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *NotificationDataMessage) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetData returns the Data field value +func (o *NotificationDataMessage) GetData() MidServiceNotificationData { + if o == nil { + var ret MidServiceNotificationData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *NotificationDataMessage) GetDataOk() (*MidServiceNotificationData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *NotificationDataMessage) SetData(v MidServiceNotificationData) { + o.Data = v +} + +// GetEnvironment returns the Environment field value +func (o *NotificationDataMessage) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *NotificationDataMessage) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *NotificationDataMessage) SetEnvironment(v string) { + o.Environment = v +} + +// GetType returns the Type field value +func (o *NotificationDataMessage) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *NotificationDataMessage) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NotificationDataMessage) SetType(v string) { + o.Type = v +} + +func (o NotificationDataMessage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationDataMessage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["createdAt"] = o.CreatedAt + toSerialize["data"] = o.Data + toSerialize["environment"] = o.Environment + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableNotificationDataMessage struct { + value *NotificationDataMessage + isSet bool +} + +func (v NullableNotificationDataMessage) Get() *NotificationDataMessage { + return v.value +} + +func (v *NullableNotificationDataMessage) Set(val *NotificationDataMessage) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationDataMessage) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationDataMessage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationDataMessage(val *NotificationDataMessage) *NullableNotificationDataMessage { + return &NullableNotificationDataMessage{value: val, isSet: true} +} + +func (v NullableNotificationDataMessage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationDataMessage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/managementwebhook/model_payment_method_created_notification_request.go b/src/managementwebhook/model_payment_method_created_notification_request.go index 729d30a53..42085f236 100644 --- a/src/managementwebhook/model_payment_method_created_notification_request.go +++ b/src/managementwebhook/model_payment_method_created_notification_request.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodCreatedNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_payment_method_notification_response.go b/src/managementwebhook/model_payment_method_notification_response.go index 20ecd6c27..0a744a5b9 100644 --- a/src/managementwebhook/model_payment_method_notification_response.go +++ b/src/managementwebhook/model_payment_method_notification_response.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentMethodNotificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_payment_method_request_removed_notification_request.go b/src/managementwebhook/model_payment_method_request_removed_notification_request.go new file mode 100644 index 000000000..33e31db83 --- /dev/null +++ b/src/managementwebhook/model_payment_method_request_removed_notification_request.go @@ -0,0 +1,210 @@ +/* +Management Webhooks + +API version: 3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package managementwebhook + +import ( + "encoding/json" + "time" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the PaymentMethodRequestRemovedNotificationRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &PaymentMethodRequestRemovedNotificationRequest{} + +// PaymentMethodRequestRemovedNotificationRequest struct for PaymentMethodRequestRemovedNotificationRequest +type PaymentMethodRequestRemovedNotificationRequest struct { + // Timestamp for when the webhook was created. + CreatedAt time.Time `json:"createdAt"` + Data MidServiceNotificationData `json:"data"` + // The environment from which the webhook originated. Possible values: **test**, **live**. + Environment string `json:"environment"` + // Type of notification. + Type string `json:"type"` +} + +// NewPaymentMethodRequestRemovedNotificationRequest instantiates a new PaymentMethodRequestRemovedNotificationRequest 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 NewPaymentMethodRequestRemovedNotificationRequest(createdAt time.Time, data MidServiceNotificationData, environment string, type_ string) *PaymentMethodRequestRemovedNotificationRequest { + this := PaymentMethodRequestRemovedNotificationRequest{} + this.CreatedAt = createdAt + this.Data = data + this.Environment = environment + this.Type = type_ + return &this +} + +// NewPaymentMethodRequestRemovedNotificationRequestWithDefaults instantiates a new PaymentMethodRequestRemovedNotificationRequest 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 NewPaymentMethodRequestRemovedNotificationRequestWithDefaults() *PaymentMethodRequestRemovedNotificationRequest { + this := PaymentMethodRequestRemovedNotificationRequest{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *PaymentMethodRequestRemovedNotificationRequest) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodRequestRemovedNotificationRequest) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *PaymentMethodRequestRemovedNotificationRequest) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetData returns the Data field value +func (o *PaymentMethodRequestRemovedNotificationRequest) GetData() MidServiceNotificationData { + if o == nil { + var ret MidServiceNotificationData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodRequestRemovedNotificationRequest) GetDataOk() (*MidServiceNotificationData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PaymentMethodRequestRemovedNotificationRequest) SetData(v MidServiceNotificationData) { + o.Data = v +} + +// GetEnvironment returns the Environment field value +func (o *PaymentMethodRequestRemovedNotificationRequest) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodRequestRemovedNotificationRequest) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *PaymentMethodRequestRemovedNotificationRequest) SetEnvironment(v string) { + o.Environment = v +} + +// GetType returns the Type field value +func (o *PaymentMethodRequestRemovedNotificationRequest) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodRequestRemovedNotificationRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PaymentMethodRequestRemovedNotificationRequest) SetType(v string) { + o.Type = v +} + +func (o PaymentMethodRequestRemovedNotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentMethodRequestRemovedNotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["createdAt"] = o.CreatedAt + toSerialize["data"] = o.Data + toSerialize["environment"] = o.Environment + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullablePaymentMethodRequestRemovedNotificationRequest struct { + value *PaymentMethodRequestRemovedNotificationRequest + isSet bool +} + +func (v NullablePaymentMethodRequestRemovedNotificationRequest) Get() *PaymentMethodRequestRemovedNotificationRequest { + return v.value +} + +func (v *NullablePaymentMethodRequestRemovedNotificationRequest) Set(val *PaymentMethodRequestRemovedNotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentMethodRequestRemovedNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentMethodRequestRemovedNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentMethodRequestRemovedNotificationRequest(val *PaymentMethodRequestRemovedNotificationRequest) *NullablePaymentMethodRequestRemovedNotificationRequest { + return &NullablePaymentMethodRequestRemovedNotificationRequest{value: val, isSet: true} +} + +func (v NullablePaymentMethodRequestRemovedNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentMethodRequestRemovedNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *PaymentMethodRequestRemovedNotificationRequest) isValidType() bool { + var allowedEnumValues = []string{"paymentMethod.requestRemoved"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/managementwebhook/model_payment_method_scheduled_for_removal_notification_request.go b/src/managementwebhook/model_payment_method_scheduled_for_removal_notification_request.go new file mode 100644 index 000000000..0ff529ba4 --- /dev/null +++ b/src/managementwebhook/model_payment_method_scheduled_for_removal_notification_request.go @@ -0,0 +1,210 @@ +/* +Management Webhooks + +API version: 3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package managementwebhook + +import ( + "encoding/json" + "time" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the PaymentMethodScheduledForRemovalNotificationRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &PaymentMethodScheduledForRemovalNotificationRequest{} + +// PaymentMethodScheduledForRemovalNotificationRequest struct for PaymentMethodScheduledForRemovalNotificationRequest +type PaymentMethodScheduledForRemovalNotificationRequest struct { + // Timestamp for when the webhook was created. + CreatedAt time.Time `json:"createdAt"` + Data MidServiceNotificationData `json:"data"` + // The environment from which the webhook originated. Possible values: **test**, **live**. + Environment string `json:"environment"` + // Type of notification. + Type string `json:"type"` +} + +// NewPaymentMethodScheduledForRemovalNotificationRequest instantiates a new PaymentMethodScheduledForRemovalNotificationRequest 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 NewPaymentMethodScheduledForRemovalNotificationRequest(createdAt time.Time, data MidServiceNotificationData, environment string, type_ string) *PaymentMethodScheduledForRemovalNotificationRequest { + this := PaymentMethodScheduledForRemovalNotificationRequest{} + this.CreatedAt = createdAt + this.Data = data + this.Environment = environment + this.Type = type_ + return &this +} + +// NewPaymentMethodScheduledForRemovalNotificationRequestWithDefaults instantiates a new PaymentMethodScheduledForRemovalNotificationRequest 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 NewPaymentMethodScheduledForRemovalNotificationRequestWithDefaults() *PaymentMethodScheduledForRemovalNotificationRequest { + this := PaymentMethodScheduledForRemovalNotificationRequest{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetData returns the Data field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetData() MidServiceNotificationData { + if o == nil { + var ret MidServiceNotificationData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetDataOk() (*MidServiceNotificationData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) SetData(v MidServiceNotificationData) { + o.Data = v +} + +// GetEnvironment returns the Environment field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) SetEnvironment(v string) { + o.Environment = v +} + +// GetType returns the Type field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PaymentMethodScheduledForRemovalNotificationRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PaymentMethodScheduledForRemovalNotificationRequest) SetType(v string) { + o.Type = v +} + +func (o PaymentMethodScheduledForRemovalNotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentMethodScheduledForRemovalNotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["createdAt"] = o.CreatedAt + toSerialize["data"] = o.Data + toSerialize["environment"] = o.Environment + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullablePaymentMethodScheduledForRemovalNotificationRequest struct { + value *PaymentMethodScheduledForRemovalNotificationRequest + isSet bool +} + +func (v NullablePaymentMethodScheduledForRemovalNotificationRequest) Get() *PaymentMethodScheduledForRemovalNotificationRequest { + return v.value +} + +func (v *NullablePaymentMethodScheduledForRemovalNotificationRequest) Set(val *PaymentMethodScheduledForRemovalNotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentMethodScheduledForRemovalNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentMethodScheduledForRemovalNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentMethodScheduledForRemovalNotificationRequest(val *PaymentMethodScheduledForRemovalNotificationRequest) *NullablePaymentMethodScheduledForRemovalNotificationRequest { + return &NullablePaymentMethodScheduledForRemovalNotificationRequest{value: val, isSet: true} +} + +func (v NullablePaymentMethodScheduledForRemovalNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentMethodScheduledForRemovalNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *PaymentMethodScheduledForRemovalNotificationRequest) isValidType() bool { + var allowedEnumValues = []string{"paymentMethod.requestScheduledForRemoval"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/managementwebhook/model_remediating_action.go b/src/managementwebhook/model_remediating_action.go index 937cfead6..b3e671a30 100644 --- a/src/managementwebhook/model_remediating_action.go +++ b/src/managementwebhook/model_remediating_action.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RemediatingAction type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_verification_error.go b/src/managementwebhook/model_verification_error.go index c3668db08..ca9132cd1 100644 --- a/src/managementwebhook/model_verification_error.go +++ b/src/managementwebhook/model_verification_error.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationError type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/model_verification_error_recursive.go b/src/managementwebhook/model_verification_error_recursive.go index 7ee7ab4ac..e3aaf25ad 100644 --- a/src/managementwebhook/model_verification_error_recursive.go +++ b/src/managementwebhook/model_verification_error_recursive.go @@ -1,7 +1,7 @@ /* Management Webhooks -API version: 1 +API version: 3 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package managementwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VerificationErrorRecursive type satisfies the MappedNullable interface at compile time diff --git a/src/managementwebhook/webhook_handler.go b/src/managementwebhook/webhook_handler.go index a3e60ca01..0c0c468b0 100644 --- a/src/managementwebhook/webhook_handler.go +++ b/src/managementwebhook/webhook_handler.go @@ -33,3 +33,25 @@ func HandlePaymentMethodCreatedNotificationRequest(req string) (*PaymentMethodCr } return &res, nil } + +// HandlePaymentMethodRequestRemovedNotificationRequest creates a Notification object from the given JSON string +// event: paymentMethod.requestRemoved +func HandlePaymentMethodRequestRemovedNotificationRequest(req string) (*PaymentMethodRequestRemovedNotificationRequest, error) { + res := PaymentMethodRequestRemovedNotificationRequest{} + err := json.Unmarshal([]byte(req), &res) + if err != nil { + return nil, err + } + return &res, nil +} + +// HandlePaymentMethodScheduledForRemovalNotificationRequest creates a Notification object from the given JSON string +// event: paymentMethod.requestScheduledForRemoval +func HandlePaymentMethodScheduledForRemovalNotificationRequest(req string) (*PaymentMethodScheduledForRemovalNotificationRequest, error) { + res := PaymentMethodScheduledForRemovalNotificationRequest{} + err := json.Unmarshal([]byte(req), &res) + if err != nil { + return nil, err + } + return &res, nil +} diff --git a/src/payments/api_general.go b/src/payments/api_general.go index 4bada474d..28a80439e 100644 --- a/src/payments/api_general.go +++ b/src/payments/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/payments/api_modifications.go b/src/payments/api_modifications.go index f192ce93c..dc9a977bd 100644 --- a/src/payments/api_modifications.go +++ b/src/payments/api_modifications.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // ModificationsApi service diff --git a/src/payments/client.go b/src/payments/client.go index 27589e220..690fbea32 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/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Adyen Payment API API v68 diff --git a/src/payments/model_account_info.go b/src/payments/model_account_info.go index 7dcc02b2e..286430e2d 100644 --- a/src/payments/model_account_info.go +++ b/src/payments/model_account_info.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AccountInfo type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_acct_info.go b/src/payments/model_acct_info.go index defcb6141..b6c9efb3b 100644 --- a/src/payments/model_acct_info.go +++ b/src/payments/model_acct_info.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AcctInfo type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data3_d_secure.go b/src/payments/model_additional_data3_d_secure.go index 322ef6de6..6beb5c46e 100644 --- a/src/payments/model_additional_data3_d_secure.go +++ b/src/payments/model_additional_data3_d_secure.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalData3DSecure type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_airline.go b/src/payments/model_additional_data_airline.go index b8dc7786b..378744612 100644 --- a/src/payments/model_additional_data_airline.go +++ b/src/payments/model_additional_data_airline.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataAirline type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_car_rental.go b/src/payments/model_additional_data_car_rental.go index 93ccfe920..6c0a5cff3 100644 --- a/src/payments/model_additional_data_car_rental.go +++ b/src/payments/model_additional_data_car_rental.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataCarRental type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_common.go b/src/payments/model_additional_data_common.go index c3e3c7f3a..1cddcf880 100644 --- a/src/payments/model_additional_data_common.go +++ b/src/payments/model_additional_data_common.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataCommon type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_level23.go b/src/payments/model_additional_data_level23.go index 0adbe17a2..9bf1f95be 100644 --- a/src/payments/model_additional_data_level23.go +++ b/src/payments/model_additional_data_level23.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataLevel23 type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_lodging.go b/src/payments/model_additional_data_lodging.go index 737136c6b..654fa1cbd 100644 --- a/src/payments/model_additional_data_lodging.go +++ b/src/payments/model_additional_data_lodging.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataLodging type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_modifications.go b/src/payments/model_additional_data_modifications.go index 00c39a765..bf8add520 100644 --- a/src/payments/model_additional_data_modifications.go +++ b/src/payments/model_additional_data_modifications.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataModifications type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_open_invoice.go b/src/payments/model_additional_data_open_invoice.go index c7573c626..67b312b29 100644 --- a/src/payments/model_additional_data_open_invoice.go +++ b/src/payments/model_additional_data_open_invoice.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataOpenInvoice type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_opi.go b/src/payments/model_additional_data_opi.go index bd382f6b2..0b256d1f4 100644 --- a/src/payments/model_additional_data_opi.go +++ b/src/payments/model_additional_data_opi.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataOpi type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_ratepay.go b/src/payments/model_additional_data_ratepay.go index cea6d1236..6e3c5e3c4 100644 --- a/src/payments/model_additional_data_ratepay.go +++ b/src/payments/model_additional_data_ratepay.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRatepay type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_retry.go b/src/payments/model_additional_data_retry.go index e22c5c26e..4f8aec95b 100644 --- a/src/payments/model_additional_data_retry.go +++ b/src/payments/model_additional_data_retry.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRetry type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_risk.go b/src/payments/model_additional_data_risk.go index 95929d1b7..af2cffb35 100644 --- a/src/payments/model_additional_data_risk.go +++ b/src/payments/model_additional_data_risk.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRisk type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_risk_standalone.go b/src/payments/model_additional_data_risk_standalone.go index 9d16a0dfd..c18763ff7 100644 --- a/src/payments/model_additional_data_risk_standalone.go +++ b/src/payments/model_additional_data_risk_standalone.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataRiskStandalone type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_sub_merchant.go b/src/payments/model_additional_data_sub_merchant.go index 903a6f56d..f74369468 100644 --- a/src/payments/model_additional_data_sub_merchant.go +++ b/src/payments/model_additional_data_sub_merchant.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataSubMerchant type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_temporary_services.go b/src/payments/model_additional_data_temporary_services.go index c1e109c21..c1f21aaad 100644 --- a/src/payments/model_additional_data_temporary_services.go +++ b/src/payments/model_additional_data_temporary_services.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataTemporaryServices type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_additional_data_wallets.go b/src/payments/model_additional_data_wallets.go index 6ae6899ef..504e446fe 100644 --- a/src/payments/model_additional_data_wallets.go +++ b/src/payments/model_additional_data_wallets.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalDataWallets type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_address.go b/src/payments/model_address.go index 430ce288f..4e20de581 100644 --- a/src/payments/model_address.go +++ b/src/payments/model_address.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_adjust_authorisation_request.go b/src/payments/model_adjust_authorisation_request.go index 998a5c617..ab579f25b 100644 --- a/src/payments/model_adjust_authorisation_request.go +++ b/src/payments/model_adjust_authorisation_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdjustAuthorisationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_amount.go b/src/payments/model_amount.go index 8ebee1c9b..9c3a915a5 100644 --- a/src/payments/model_amount.go +++ b/src/payments/model_amount.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_application_info.go b/src/payments/model_application_info.go index cb4f42291..406dacb12 100644 --- a/src/payments/model_application_info.go +++ b/src/payments/model_application_info.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ApplicationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_authentication_result_request.go b/src/payments/model_authentication_result_request.go index de5927f94..dbb32f78d 100644 --- a/src/payments/model_authentication_result_request.go +++ b/src/payments/model_authentication_result_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AuthenticationResultRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_authentication_result_response.go b/src/payments/model_authentication_result_response.go index d416446b1..b30ba1066 100644 --- a/src/payments/model_authentication_result_response.go +++ b/src/payments/model_authentication_result_response.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AuthenticationResultResponse type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_bank_account.go b/src/payments/model_bank_account.go index 01d9d6077..1d30d5924 100644 --- a/src/payments/model_bank_account.go +++ b/src/payments/model_bank_account.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccount type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_browser_info.go b/src/payments/model_browser_info.go index f0807d1f0..02d9d3112 100644 --- a/src/payments/model_browser_info.go +++ b/src/payments/model_browser_info.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BrowserInfo type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_cancel_or_refund_request.go b/src/payments/model_cancel_or_refund_request.go index c94efb32a..7c49d8a19 100644 --- a/src/payments/model_cancel_or_refund_request.go +++ b/src/payments/model_cancel_or_refund_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CancelOrRefundRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_cancel_request.go b/src/payments/model_cancel_request.go index e0caf1df1..222043179 100644 --- a/src/payments/model_cancel_request.go +++ b/src/payments/model_cancel_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CancelRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_capture_request.go b/src/payments/model_capture_request.go index 82a2338b8..f50d178d9 100644 --- a/src/payments/model_capture_request.go +++ b/src/payments/model_capture_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CaptureRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_card.go b/src/payments/model_card.go index 6e2b67323..25e611122 100644 --- a/src/payments/model_card.go +++ b/src/payments/model_card.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_common_field.go b/src/payments/model_common_field.go index 63fc98fd5..e485d0e8b 100644 --- a/src/payments/model_common_field.go +++ b/src/payments/model_common_field.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CommonField type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_device_render_options.go b/src/payments/model_device_render_options.go index 163d4eb38..bd5572a94 100644 --- a/src/payments/model_device_render_options.go +++ b/src/payments/model_device_render_options.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DeviceRenderOptions type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_donation_request.go b/src/payments/model_donation_request.go index 7ff4a6110..5499fcdfc 100644 --- a/src/payments/model_donation_request.go +++ b/src/payments/model_donation_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DonationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_external_platform.go b/src/payments/model_external_platform.go index e92c819b3..9ead21d67 100644 --- a/src/payments/model_external_platform.go +++ b/src/payments/model_external_platform.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ExternalPlatform type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_forex_quote.go b/src/payments/model_forex_quote.go index cfc241961..d4fb0d1e9 100644 --- a/src/payments/model_forex_quote.go +++ b/src/payments/model_forex_quote.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ForexQuote type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_fraud_check_result.go b/src/payments/model_fraud_check_result.go index b93b4267a..8edb21c47 100644 --- a/src/payments/model_fraud_check_result.go +++ b/src/payments/model_fraud_check_result.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudCheckResult type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_fraud_check_result_wrapper.go b/src/payments/model_fraud_check_result_wrapper.go index 96096d75d..88cfe0e4f 100644 --- a/src/payments/model_fraud_check_result_wrapper.go +++ b/src/payments/model_fraud_check_result_wrapper.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudCheckResultWrapper type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_fraud_result.go b/src/payments/model_fraud_result.go index 840c01af3..ec8ae2d05 100644 --- a/src/payments/model_fraud_result.go +++ b/src/payments/model_fraud_result.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudResult type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_fund_destination.go b/src/payments/model_fund_destination.go index 1c591b39f..d7494473d 100644 --- a/src/payments/model_fund_destination.go +++ b/src/payments/model_fund_destination.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FundDestination type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_fund_source.go b/src/payments/model_fund_source.go index f90cb78b2..c924fc600 100644 --- a/src/payments/model_fund_source.go +++ b/src/payments/model_fund_source.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FundSource type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_installments.go b/src/payments/model_installments.go index f4d09357b..a8f302602 100644 --- a/src/payments/model_installments.go +++ b/src/payments/model_installments.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Installments type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_mandate.go b/src/payments/model_mandate.go index 3f9f3c6c0..a264f0b35 100644 --- a/src/payments/model_mandate.go +++ b/src/payments/model_mandate.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Mandate type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_merchant_device.go b/src/payments/model_merchant_device.go index 2367df5ff..8b9c2f185 100644 --- a/src/payments/model_merchant_device.go +++ b/src/payments/model_merchant_device.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantDevice type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_merchant_risk_indicator.go b/src/payments/model_merchant_risk_indicator.go index 3446a0bff..68809f4d4 100644 --- a/src/payments/model_merchant_risk_indicator.go +++ b/src/payments/model_merchant_risk_indicator.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantRiskIndicator type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_modification_result.go b/src/payments/model_modification_result.go index 3b6a155fd..d487858d3 100644 --- a/src/payments/model_modification_result.go +++ b/src/payments/model_modification_result.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ModificationResult type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_name.go b/src/payments/model_name.go index 6398b0b00..97b3ed0ed 100644 --- a/src/payments/model_name.go +++ b/src/payments/model_name.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_payment_request.go b/src/payments/model_payment_request.go index 306436988..503c6a05e 100644 --- a/src/payments/model_payment_request.go +++ b/src/payments/model_payment_request.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_payment_request3d.go b/src/payments/model_payment_request3d.go index 7e3ffaf83..4f453e1af 100644 --- a/src/payments/model_payment_request3d.go +++ b/src/payments/model_payment_request3d.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRequest3d type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_payment_request3ds2.go b/src/payments/model_payment_request3ds2.go index 794e119fc..52ca20b06 100644 --- a/src/payments/model_payment_request3ds2.go +++ b/src/payments/model_payment_request3ds2.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentRequest3ds2 type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_payment_result.go b/src/payments/model_payment_result.go index ceb4e5bb3..26b469d0c 100644 --- a/src/payments/model_payment_result.go +++ b/src/payments/model_payment_result.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentResult type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_phone.go b/src/payments/model_phone.go index afdb38d5c..af95849fb 100644 --- a/src/payments/model_phone.go +++ b/src/payments/model_phone.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Phone type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_platform_chargeback_logic.go b/src/payments/model_platform_chargeback_logic.go index 9b4f5cc0d..90a09dd95 100644 --- a/src/payments/model_platform_chargeback_logic.go +++ b/src/payments/model_platform_chargeback_logic.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PlatformChargebackLogic type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_recurring.go b/src/payments/model_recurring.go index 3aa5cf1e5..d6b69f359 100644 --- a/src/payments/model_recurring.go +++ b/src/payments/model_recurring.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Recurring type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_refund_request.go b/src/payments/model_refund_request.go index 46a10037f..e7c6b0be8 100644 --- a/src/payments/model_refund_request.go +++ b/src/payments/model_refund_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RefundRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data3_d_secure.go b/src/payments/model_response_additional_data3_d_secure.go index 3fbb11231..2d11c04b4 100644 --- a/src/payments/model_response_additional_data3_d_secure.go +++ b/src/payments/model_response_additional_data3_d_secure.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalData3DSecure type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_billing_address.go b/src/payments/model_response_additional_data_billing_address.go index f006a4b33..f908f1fd2 100644 --- a/src/payments/model_response_additional_data_billing_address.go +++ b/src/payments/model_response_additional_data_billing_address.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataBillingAddress type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_card.go b/src/payments/model_response_additional_data_card.go index 04e01ac29..39187424a 100644 --- a/src/payments/model_response_additional_data_card.go +++ b/src/payments/model_response_additional_data_card.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataCard type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_common.go b/src/payments/model_response_additional_data_common.go index bc25e1051..4ef59ae33 100644 --- a/src/payments/model_response_additional_data_common.go +++ b/src/payments/model_response_additional_data_common.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataCommon type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_installments.go b/src/payments/model_response_additional_data_installments.go index bb5fc454a..3094341fd 100644 --- a/src/payments/model_response_additional_data_installments.go +++ b/src/payments/model_response_additional_data_installments.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataInstallments type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_network_tokens.go b/src/payments/model_response_additional_data_network_tokens.go index d6ec8f8ed..15900407f 100644 --- a/src/payments/model_response_additional_data_network_tokens.go +++ b/src/payments/model_response_additional_data_network_tokens.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataNetworkTokens type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_opi.go b/src/payments/model_response_additional_data_opi.go index 518940d6d..a0e1f8509 100644 --- a/src/payments/model_response_additional_data_opi.go +++ b/src/payments/model_response_additional_data_opi.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataOpi type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_response_additional_data_sepa.go b/src/payments/model_response_additional_data_sepa.go index e514e884e..7493113bf 100644 --- a/src/payments/model_response_additional_data_sepa.go +++ b/src/payments/model_response_additional_data_sepa.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataSepa type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_sdk_ephem_pub_key.go b/src/payments/model_sdk_ephem_pub_key.go index 99032b6b7..522433390 100644 --- a/src/payments/model_sdk_ephem_pub_key.go +++ b/src/payments/model_sdk_ephem_pub_key.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SDKEphemPubKey type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_service_error.go b/src/payments/model_service_error.go index 071619a47..a93a7f371 100644 --- a/src/payments/model_service_error.go +++ b/src/payments/model_service_error.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_shopper_interaction_device.go b/src/payments/model_shopper_interaction_device.go index 9ba70771f..3c875ca47 100644 --- a/src/payments/model_shopper_interaction_device.go +++ b/src/payments/model_shopper_interaction_device.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ShopperInteractionDevice type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_split.go b/src/payments/model_split.go index 102f462e2..76f449cbb 100644 --- a/src/payments/model_split.go +++ b/src/payments/model_split.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Split type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_split_amount.go b/src/payments/model_split_amount.go index 8fde9239e..9c0eef857 100644 --- a/src/payments/model_split_amount.go +++ b/src/payments/model_split_amount.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SplitAmount type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_sub_merchant.go b/src/payments/model_sub_merchant.go index ae3a2ee97..a8bceee0e 100644 --- a/src/payments/model_sub_merchant.go +++ b/src/payments/model_sub_merchant.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubMerchant type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_technical_cancel_request.go b/src/payments/model_technical_cancel_request.go index e55146143..1e03b43fe 100644 --- a/src/payments/model_technical_cancel_request.go +++ b/src/payments/model_technical_cancel_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TechnicalCancelRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_d_secure_data.go b/src/payments/model_three_d_secure_data.go index e68cde610..7437bff14 100644 --- a/src/payments/model_three_d_secure_data.go +++ b/src/payments/model_three_d_secure_data.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSecureData type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds1_result.go b/src/payments/model_three_ds1_result.go index 5f170f2f7..7773de662 100644 --- a/src/payments/model_three_ds1_result.go +++ b/src/payments/model_three_ds1_result.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS1Result type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds2_request_data.go b/src/payments/model_three_ds2_request_data.go index 477cefe78..fd1f6e02b 100644 --- a/src/payments/model_three_ds2_request_data.go +++ b/src/payments/model_three_ds2_request_data.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2RequestData type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds2_result.go b/src/payments/model_three_ds2_result.go index 79e031a4f..a0274562a 100644 --- a/src/payments/model_three_ds2_result.go +++ b/src/payments/model_three_ds2_result.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2Result type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds2_result_request.go b/src/payments/model_three_ds2_result_request.go index e3b9bfef5..e52902fc4 100644 --- a/src/payments/model_three_ds2_result_request.go +++ b/src/payments/model_three_ds2_result_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2ResultRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds2_result_response.go b/src/payments/model_three_ds2_result_response.go index 0dafd2b95..ce57133a7 100644 --- a/src/payments/model_three_ds2_result_response.go +++ b/src/payments/model_three_ds2_result_response.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDS2ResultResponse type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds_requestor_authentication_info.go b/src/payments/model_three_ds_requestor_authentication_info.go index c65e77ff9..d92a2e1dd 100644 --- a/src/payments/model_three_ds_requestor_authentication_info.go +++ b/src/payments/model_three_ds_requestor_authentication_info.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSRequestorAuthenticationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_three_ds_requestor_prior_authentication_info.go b/src/payments/model_three_ds_requestor_prior_authentication_info.go index 448ea7a76..7d4f38b78 100644 --- a/src/payments/model_three_ds_requestor_prior_authentication_info.go +++ b/src/payments/model_three_ds_requestor_prior_authentication_info.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThreeDSRequestorPriorAuthenticationInfo type satisfies the MappedNullable interface at compile time diff --git a/src/payments/model_void_pending_refund_request.go b/src/payments/model_void_pending_refund_request.go index 4a187ab1c..b3a8db278 100644 --- a/src/payments/model_void_pending_refund_request.go +++ b/src/payments/model_void_pending_refund_request.go @@ -11,7 +11,7 @@ package payments import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the VoidPendingRefundRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payout/api_initialization.go b/src/payout/api_initialization.go index c8a3bdc81..51ae46e32 100644 --- a/src/payout/api_initialization.go +++ b/src/payout/api_initialization.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // InitializationApi service diff --git a/src/payout/api_instant_payouts.go b/src/payout/api_instant_payouts.go index 0e115464a..5994891d1 100644 --- a/src/payout/api_instant_payouts.go +++ b/src/payout/api_instant_payouts.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // InstantPayoutsApi service diff --git a/src/payout/api_reviewing.go b/src/payout/api_reviewing.go index 951300ed1..5997e3017 100644 --- a/src/payout/api_reviewing.go +++ b/src/payout/api_reviewing.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // ReviewingApi service diff --git a/src/payout/client.go b/src/payout/client.go index b0d96c801..8e5c147a2 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/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Adyen Payout API API v68 diff --git a/src/payout/model_address.go b/src/payout/model_address.go index 3cc6ce03e..9629f3d4a 100644 --- a/src/payout/model_address.go +++ b/src/payout/model_address.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_amount.go b/src/payout/model_amount.go index e6f641948..dbbead9d3 100644 --- a/src/payout/model_amount.go +++ b/src/payout/model_amount.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_bank_account.go b/src/payout/model_bank_account.go index 37d0f2c0f..0a801a298 100644 --- a/src/payout/model_bank_account.go +++ b/src/payout/model_bank_account.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccount type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_card.go b/src/payout/model_card.go index dd39193c8..b4059e4b2 100644 --- a/src/payout/model_card.go +++ b/src/payout/model_card.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_fraud_check_result.go b/src/payout/model_fraud_check_result.go index e7ccd101b..3ea042cfa 100644 --- a/src/payout/model_fraud_check_result.go +++ b/src/payout/model_fraud_check_result.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudCheckResult type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_fraud_check_result_wrapper.go b/src/payout/model_fraud_check_result_wrapper.go index 5b8f8ac50..850404f42 100644 --- a/src/payout/model_fraud_check_result_wrapper.go +++ b/src/payout/model_fraud_check_result_wrapper.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudCheckResultWrapper type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_fraud_result.go b/src/payout/model_fraud_result.go index d34829556..df7232432 100644 --- a/src/payout/model_fraud_result.go +++ b/src/payout/model_fraud_result.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FraudResult type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_fund_source.go b/src/payout/model_fund_source.go index b856efd7d..c3d0f2d6c 100644 --- a/src/payout/model_fund_source.go +++ b/src/payout/model_fund_source.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FundSource type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_modify_request.go b/src/payout/model_modify_request.go index 2568900c3..fb8b29f0e 100644 --- a/src/payout/model_modify_request.go +++ b/src/payout/model_modify_request.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ModifyRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_modify_response.go b/src/payout/model_modify_response.go index edf734cb2..5cac51b6a 100644 --- a/src/payout/model_modify_response.go +++ b/src/payout/model_modify_response.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ModifyResponse type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_name.go b/src/payout/model_name.go index dd2b317ae..abb32fdb6 100644 --- a/src/payout/model_name.go +++ b/src/payout/model_name.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_payout_request.go b/src/payout/model_payout_request.go index a849fdeb5..16aae42cb 100644 --- a/src/payout/model_payout_request.go +++ b/src/payout/model_payout_request.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayoutRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_payout_response.go b/src/payout/model_payout_response.go index 531f5a3d7..99a350ee0 100644 --- a/src/payout/model_payout_response.go +++ b/src/payout/model_payout_response.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PayoutResponse type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_recurring.go b/src/payout/model_recurring.go index b505c4394..02c472eac 100644 --- a/src/payout/model_recurring.go +++ b/src/payout/model_recurring.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Recurring type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data3_d_secure.go b/src/payout/model_response_additional_data3_d_secure.go index 9dd5a538d..a827b6219 100644 --- a/src/payout/model_response_additional_data3_d_secure.go +++ b/src/payout/model_response_additional_data3_d_secure.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalData3DSecure type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_billing_address.go b/src/payout/model_response_additional_data_billing_address.go index 08d9a9bf7..de740e253 100644 --- a/src/payout/model_response_additional_data_billing_address.go +++ b/src/payout/model_response_additional_data_billing_address.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataBillingAddress type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_card.go b/src/payout/model_response_additional_data_card.go index 79bd598c9..7702ae1c1 100644 --- a/src/payout/model_response_additional_data_card.go +++ b/src/payout/model_response_additional_data_card.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataCard type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_common.go b/src/payout/model_response_additional_data_common.go index b232c88ae..91b051b4d 100644 --- a/src/payout/model_response_additional_data_common.go +++ b/src/payout/model_response_additional_data_common.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataCommon type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_installments.go b/src/payout/model_response_additional_data_installments.go index 24cb28ea2..0729fe60a 100644 --- a/src/payout/model_response_additional_data_installments.go +++ b/src/payout/model_response_additional_data_installments.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataInstallments type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_network_tokens.go b/src/payout/model_response_additional_data_network_tokens.go index 643e6ccd8..79dcd2b00 100644 --- a/src/payout/model_response_additional_data_network_tokens.go +++ b/src/payout/model_response_additional_data_network_tokens.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataNetworkTokens type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_opi.go b/src/payout/model_response_additional_data_opi.go index be9ed78ca..ebef7775d 100644 --- a/src/payout/model_response_additional_data_opi.go +++ b/src/payout/model_response_additional_data_opi.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataOpi type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_response_additional_data_sepa.go b/src/payout/model_response_additional_data_sepa.go index c012371ff..223f947e5 100644 --- a/src/payout/model_response_additional_data_sepa.go +++ b/src/payout/model_response_additional_data_sepa.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResponseAdditionalDataSepa type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_service_error.go b/src/payout/model_service_error.go index 5e682a5e8..e08547e87 100644 --- a/src/payout/model_service_error.go +++ b/src/payout/model_service_error.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_store_detail_and_submit_request.go b/src/payout/model_store_detail_and_submit_request.go index 593ddf013..3ccc70ed5 100644 --- a/src/payout/model_store_detail_and_submit_request.go +++ b/src/payout/model_store_detail_and_submit_request.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreDetailAndSubmitRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_store_detail_and_submit_response.go b/src/payout/model_store_detail_and_submit_response.go index 834266d74..821e6880d 100644 --- a/src/payout/model_store_detail_and_submit_response.go +++ b/src/payout/model_store_detail_and_submit_response.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreDetailAndSubmitResponse type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_store_detail_request.go b/src/payout/model_store_detail_request.go index 96beeb99f..13642e1c7 100644 --- a/src/payout/model_store_detail_request.go +++ b/src/payout/model_store_detail_request.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreDetailRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_store_detail_response.go b/src/payout/model_store_detail_response.go index 7dc91f395..9f9fff63a 100644 --- a/src/payout/model_store_detail_response.go +++ b/src/payout/model_store_detail_response.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoreDetailResponse type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_submit_request.go b/src/payout/model_submit_request.go index 6bc6b2b84..eea3ff37d 100644 --- a/src/payout/model_submit_request.go +++ b/src/payout/model_submit_request.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubmitRequest type satisfies the MappedNullable interface at compile time diff --git a/src/payout/model_submit_response.go b/src/payout/model_submit_response.go index 6a02142e1..c57bf3217 100644 --- a/src/payout/model_submit_response.go +++ b/src/payout/model_submit_response.go @@ -11,7 +11,7 @@ package payout import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SubmitResponse type satisfies the MappedNullable interface at compile time diff --git a/src/platformsaccount/api_default.go b/src/platformsaccount/api_default.go index dfd46a6d5..789e1c264 100644 --- a/src/platformsaccount/api_default.go +++ b/src/platformsaccount/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PlatformsAccount PlatformsAccount service diff --git a/src/platformsfund/api_default.go b/src/platformsfund/api_default.go index f4f7342e8..15b6a149f 100644 --- a/src/platformsfund/api_default.go +++ b/src/platformsfund/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PlatformsFund PlatformsFund service diff --git a/src/platformshostedonboardingpage/api_default.go b/src/platformshostedonboardingpage/api_default.go index b6b8f6d26..46e5d0c6a 100644 --- a/src/platformshostedonboardingpage/api_default.go +++ b/src/platformshostedonboardingpage/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PlatformsHostedOnboardingPage PlatformsHostedOnboardingPage service diff --git a/src/platformsnotificationconfiguration/api_default.go b/src/platformsnotificationconfiguration/api_default.go index 27f805b7a..a25d01199 100644 --- a/src/platformsnotificationconfiguration/api_default.go +++ b/src/platformsnotificationconfiguration/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // PlatformsNotificationConfiguration PlatformsNotificationConfiguration service diff --git a/src/posterminalmanagement/api_general.go b/src/posterminalmanagement/api_general.go index 2dfbc7f80..a33e6ae51 100644 --- a/src/posterminalmanagement/api_general.go +++ b/src/posterminalmanagement/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/posterminalmanagement/model_address.go b/src/posterminalmanagement/model_address.go index 8d91c9725..d66f6c5db 100644 --- a/src/posterminalmanagement/model_address.go +++ b/src/posterminalmanagement/model_address.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_assign_terminals_request.go b/src/posterminalmanagement/model_assign_terminals_request.go index 6fea580c2..61807ee18 100644 --- a/src/posterminalmanagement/model_assign_terminals_request.go +++ b/src/posterminalmanagement/model_assign_terminals_request.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AssignTerminalsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_assign_terminals_response.go b/src/posterminalmanagement/model_assign_terminals_response.go index f67e3cf26..d828d984b 100644 --- a/src/posterminalmanagement/model_assign_terminals_response.go +++ b/src/posterminalmanagement/model_assign_terminals_response.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AssignTerminalsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_find_terminal_request.go b/src/posterminalmanagement/model_find_terminal_request.go index 01ea44598..97d197cc8 100644 --- a/src/posterminalmanagement/model_find_terminal_request.go +++ b/src/posterminalmanagement/model_find_terminal_request.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FindTerminalRequest type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_find_terminal_response.go b/src/posterminalmanagement/model_find_terminal_response.go index 2d9d24e55..56c21257a 100644 --- a/src/posterminalmanagement/model_find_terminal_response.go +++ b/src/posterminalmanagement/model_find_terminal_response.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the FindTerminalResponse type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_get_stores_under_account_request.go b/src/posterminalmanagement/model_get_stores_under_account_request.go index 623b0cea2..f434ba73f 100644 --- a/src/posterminalmanagement/model_get_stores_under_account_request.go +++ b/src/posterminalmanagement/model_get_stores_under_account_request.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetStoresUnderAccountRequest type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_get_stores_under_account_response.go b/src/posterminalmanagement/model_get_stores_under_account_response.go index 68cdc3735..635ab48ca 100644 --- a/src/posterminalmanagement/model_get_stores_under_account_response.go +++ b/src/posterminalmanagement/model_get_stores_under_account_response.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetStoresUnderAccountResponse type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_get_terminal_details_request.go b/src/posterminalmanagement/model_get_terminal_details_request.go index e0ee847f9..89dc0fc7e 100644 --- a/src/posterminalmanagement/model_get_terminal_details_request.go +++ b/src/posterminalmanagement/model_get_terminal_details_request.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTerminalDetailsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_get_terminal_details_response.go b/src/posterminalmanagement/model_get_terminal_details_response.go index 2e0f8e385..867ebefa6 100644 --- a/src/posterminalmanagement/model_get_terminal_details_response.go +++ b/src/posterminalmanagement/model_get_terminal_details_response.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTerminalDetailsResponse type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_get_terminals_under_account_request.go b/src/posterminalmanagement/model_get_terminals_under_account_request.go index 135094a3b..775f0fc33 100644 --- a/src/posterminalmanagement/model_get_terminals_under_account_request.go +++ b/src/posterminalmanagement/model_get_terminals_under_account_request.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTerminalsUnderAccountRequest type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_get_terminals_under_account_response.go b/src/posterminalmanagement/model_get_terminals_under_account_response.go index 8e697d338..974e50eaa 100644 --- a/src/posterminalmanagement/model_get_terminals_under_account_response.go +++ b/src/posterminalmanagement/model_get_terminals_under_account_response.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the GetTerminalsUnderAccountResponse type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_merchant_account.go b/src/posterminalmanagement/model_merchant_account.go index dbe70fa5c..e6668f9e8 100644 --- a/src/posterminalmanagement/model_merchant_account.go +++ b/src/posterminalmanagement/model_merchant_account.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantAccount type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_service_error.go b/src/posterminalmanagement/model_service_error.go index 7035c852e..aecea83c8 100644 --- a/src/posterminalmanagement/model_service_error.go +++ b/src/posterminalmanagement/model_service_error.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/posterminalmanagement/model_store.go b/src/posterminalmanagement/model_store.go index 460e2f6ee..b0646a3cd 100644 --- a/src/posterminalmanagement/model_store.go +++ b/src/posterminalmanagement/model_store.go @@ -11,7 +11,7 @@ package posterminalmanagement import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Store type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/api_general.go b/src/recurring/api_general.go index 461480137..b5aa68a40 100644 --- a/src/recurring/api_general.go +++ b/src/recurring/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/recurring/model_address.go b/src/recurring/model_address.go index 891112b35..ceea18373 100644 --- a/src/recurring/model_address.go +++ b/src/recurring/model_address.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_amount.go b/src/recurring/model_amount.go index 0cd5f18b4..bca4b8a45 100644 --- a/src/recurring/model_amount.go +++ b/src/recurring/model_amount.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_bank_account.go b/src/recurring/model_bank_account.go index 4675c6e72..4769b37d5 100644 --- a/src/recurring/model_bank_account.go +++ b/src/recurring/model_bank_account.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccount type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_card.go b/src/recurring/model_card.go index ce236c20f..01c68d229 100644 --- a/src/recurring/model_card.go +++ b/src/recurring/model_card.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Card type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_create_permit_request.go b/src/recurring/model_create_permit_request.go index 1808a76e3..412f9f898 100644 --- a/src/recurring/model_create_permit_request.go +++ b/src/recurring/model_create_permit_request.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePermitRequest type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_create_permit_result.go b/src/recurring/model_create_permit_result.go index dd7858a66..b8bc1413a 100644 --- a/src/recurring/model_create_permit_result.go +++ b/src/recurring/model_create_permit_result.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CreatePermitResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_disable_permit_request.go b/src/recurring/model_disable_permit_request.go index fea894e33..3ff017425 100644 --- a/src/recurring/model_disable_permit_request.go +++ b/src/recurring/model_disable_permit_request.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DisablePermitRequest type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_disable_permit_result.go b/src/recurring/model_disable_permit_result.go index 1b51bef99..af146a379 100644 --- a/src/recurring/model_disable_permit_result.go +++ b/src/recurring/model_disable_permit_result.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DisablePermitResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_disable_request.go b/src/recurring/model_disable_request.go index f05ae065b..4711b265f 100644 --- a/src/recurring/model_disable_request.go +++ b/src/recurring/model_disable_request.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DisableRequest type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_disable_result.go b/src/recurring/model_disable_result.go index fe287a9f5..c94a9849c 100644 --- a/src/recurring/model_disable_result.go +++ b/src/recurring/model_disable_result.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DisableResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_name.go b/src/recurring/model_name.go index 2dcbd671c..64814ec32 100644 --- a/src/recurring/model_name.go +++ b/src/recurring/model_name.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Name type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_notify_shopper_request.go b/src/recurring/model_notify_shopper_request.go index 712cfa26b..ec1c67267 100644 --- a/src/recurring/model_notify_shopper_request.go +++ b/src/recurring/model_notify_shopper_request.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NotifyShopperRequest type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_notify_shopper_result.go b/src/recurring/model_notify_shopper_result.go index 1f56f4759..5474e6b00 100644 --- a/src/recurring/model_notify_shopper_result.go +++ b/src/recurring/model_notify_shopper_result.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NotifyShopperResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_permit.go b/src/recurring/model_permit.go index 12dee4bcb..09cb83097 100644 --- a/src/recurring/model_permit.go +++ b/src/recurring/model_permit.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Permit type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_permit_restriction.go b/src/recurring/model_permit_restriction.go index 21603ed08..5dbbc98fa 100644 --- a/src/recurring/model_permit_restriction.go +++ b/src/recurring/model_permit_restriction.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PermitRestriction type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_permit_result.go b/src/recurring/model_permit_result.go index 08e1500fa..dffe0cf7c 100644 --- a/src/recurring/model_permit_result.go +++ b/src/recurring/model_permit_result.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PermitResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_recurring.go b/src/recurring/model_recurring.go index 389cd71b0..1816bd079 100644 --- a/src/recurring/model_recurring.go +++ b/src/recurring/model_recurring.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Recurring type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_recurring_detail.go b/src/recurring/model_recurring_detail.go index 43aa4ba2e..5882174ff 100644 --- a/src/recurring/model_recurring_detail.go +++ b/src/recurring/model_recurring_detail.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RecurringDetail type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_recurring_detail_wrapper.go b/src/recurring/model_recurring_detail_wrapper.go index 2b48f730d..2a3b08480 100644 --- a/src/recurring/model_recurring_detail_wrapper.go +++ b/src/recurring/model_recurring_detail_wrapper.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RecurringDetailWrapper type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_recurring_details_request.go b/src/recurring/model_recurring_details_request.go index da20b2760..743534dfd 100644 --- a/src/recurring/model_recurring_details_request.go +++ b/src/recurring/model_recurring_details_request.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RecurringDetailsRequest type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_recurring_details_result.go b/src/recurring/model_recurring_details_result.go index 3ad81fd62..785595248 100644 --- a/src/recurring/model_recurring_details_result.go +++ b/src/recurring/model_recurring_details_result.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RecurringDetailsResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_schedule_account_updater_request.go b/src/recurring/model_schedule_account_updater_request.go index 721074743..850a303d5 100644 --- a/src/recurring/model_schedule_account_updater_request.go +++ b/src/recurring/model_schedule_account_updater_request.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ScheduleAccountUpdaterRequest type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_schedule_account_updater_result.go b/src/recurring/model_schedule_account_updater_result.go index 97b805e73..cc43ed293 100644 --- a/src/recurring/model_schedule_account_updater_result.go +++ b/src/recurring/model_schedule_account_updater_result.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ScheduleAccountUpdaterResult type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_service_error.go b/src/recurring/model_service_error.go index 7bd09da77..59adf3f08 100644 --- a/src/recurring/model_service_error.go +++ b/src/recurring/model_service_error.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/recurring/model_token_details.go b/src/recurring/model_token_details.go index bf59556dc..7e5bfb89a 100644 --- a/src/recurring/model_token_details.go +++ b/src/recurring/model_token_details.go @@ -11,7 +11,7 @@ package recurring import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TokenDetails type satisfies the MappedNullable interface at compile time diff --git a/src/reportwebhook/model_balance_platform_notification_response.go b/src/reportwebhook/model_balance_platform_notification_response.go index f537205d4..b0db7c29a 100644 --- a/src/reportwebhook/model_balance_platform_notification_response.go +++ b/src/reportwebhook/model_balance_platform_notification_response.go @@ -11,7 +11,7 @@ package reportwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalancePlatformNotificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/reportwebhook/model_report_notification_data.go b/src/reportwebhook/model_report_notification_data.go index 43582772c..a73e99e8b 100644 --- a/src/reportwebhook/model_report_notification_data.go +++ b/src/reportwebhook/model_report_notification_data.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ReportNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/reportwebhook/model_report_notification_request.go b/src/reportwebhook/model_report_notification_request.go index bc3e16f81..ef6f2972b 100644 --- a/src/reportwebhook/model_report_notification_request.go +++ b/src/reportwebhook/model_report_notification_request.go @@ -11,7 +11,7 @@ package reportwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ReportNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/reportwebhook/model_resource.go b/src/reportwebhook/model_resource.go index 7451e2dc0..d878f14af 100644 --- a/src/reportwebhook/model_resource.go +++ b/src/reportwebhook/model_resource.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Resource type satisfies the MappedNullable interface at compile time diff --git a/src/reportwebhook/model_resource_reference.go b/src/reportwebhook/model_resource_reference.go index 46f697907..259f8990e 100644 --- a/src/reportwebhook/model_resource_reference.go +++ b/src/reportwebhook/model_resource_reference.go @@ -11,7 +11,7 @@ package reportwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResourceReference type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/api_general.go b/src/storedvalue/api_general.go index be53a3762..a5a95d05d 100644 --- a/src/storedvalue/api_general.go +++ b/src/storedvalue/api_general.go @@ -13,7 +13,7 @@ import ( "net/http" "net/url" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // GeneralApi service diff --git a/src/storedvalue/model_amount.go b/src/storedvalue/model_amount.go index de4259e20..b6c19f190 100644 --- a/src/storedvalue/model_amount.go +++ b/src/storedvalue/model_amount.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_service_error.go b/src/storedvalue/model_service_error.go index 8325e04c3..5fd66688c 100644 --- a/src/storedvalue/model_service_error.go +++ b/src/storedvalue/model_service_error.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_balance_check_request.go b/src/storedvalue/model_stored_value_balance_check_request.go index 475a391b6..f492e89ec 100644 --- a/src/storedvalue/model_stored_value_balance_check_request.go +++ b/src/storedvalue/model_stored_value_balance_check_request.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueBalanceCheckRequest type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_balance_check_response.go b/src/storedvalue/model_stored_value_balance_check_response.go index beaabdff0..306555c9e 100644 --- a/src/storedvalue/model_stored_value_balance_check_response.go +++ b/src/storedvalue/model_stored_value_balance_check_response.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueBalanceCheckResponse type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_balance_merge_request.go b/src/storedvalue/model_stored_value_balance_merge_request.go index a3a6ba039..2e325920a 100644 --- a/src/storedvalue/model_stored_value_balance_merge_request.go +++ b/src/storedvalue/model_stored_value_balance_merge_request.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueBalanceMergeRequest type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_balance_merge_response.go b/src/storedvalue/model_stored_value_balance_merge_response.go index 3477acc9c..78500e727 100644 --- a/src/storedvalue/model_stored_value_balance_merge_response.go +++ b/src/storedvalue/model_stored_value_balance_merge_response.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueBalanceMergeResponse type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_issue_request.go b/src/storedvalue/model_stored_value_issue_request.go index c013fc7dd..d217f87f8 100644 --- a/src/storedvalue/model_stored_value_issue_request.go +++ b/src/storedvalue/model_stored_value_issue_request.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueIssueRequest type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_issue_response.go b/src/storedvalue/model_stored_value_issue_response.go index b79c734ec..16d1d9692 100644 --- a/src/storedvalue/model_stored_value_issue_response.go +++ b/src/storedvalue/model_stored_value_issue_response.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueIssueResponse type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_load_request.go b/src/storedvalue/model_stored_value_load_request.go index 220db7429..4a058dffe 100644 --- a/src/storedvalue/model_stored_value_load_request.go +++ b/src/storedvalue/model_stored_value_load_request.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueLoadRequest type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_load_response.go b/src/storedvalue/model_stored_value_load_response.go index 366dc25ed..435e4fd9a 100644 --- a/src/storedvalue/model_stored_value_load_response.go +++ b/src/storedvalue/model_stored_value_load_response.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueLoadResponse type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_status_change_request.go b/src/storedvalue/model_stored_value_status_change_request.go index 8bd731da4..9a8d3f0e7 100644 --- a/src/storedvalue/model_stored_value_status_change_request.go +++ b/src/storedvalue/model_stored_value_status_change_request.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueStatusChangeRequest type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_status_change_response.go b/src/storedvalue/model_stored_value_status_change_response.go index 696daec2a..ec58f7eec 100644 --- a/src/storedvalue/model_stored_value_status_change_response.go +++ b/src/storedvalue/model_stored_value_status_change_response.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueStatusChangeResponse type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_void_request.go b/src/storedvalue/model_stored_value_void_request.go index e0089f45f..8e008b71f 100644 --- a/src/storedvalue/model_stored_value_void_request.go +++ b/src/storedvalue/model_stored_value_void_request.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueVoidRequest type satisfies the MappedNullable interface at compile time diff --git a/src/storedvalue/model_stored_value_void_response.go b/src/storedvalue/model_stored_value_void_response.go index a736d2917..45aa4e25a 100644 --- a/src/storedvalue/model_stored_value_void_response.go +++ b/src/storedvalue/model_stored_value_void_response.go @@ -11,7 +11,7 @@ package storedvalue import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the StoredValueVoidResponse type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/.openapi-generator/VERSION b/src/transfers/.openapi-generator/VERSION deleted file mode 100644 index 4be2c727a..000000000 --- a/src/transfers/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.5.0 \ No newline at end of file diff --git a/src/transfers/api_capital.go b/src/transfers/api_capital.go index 1e4f8ffb7..7c531ee42 100644 --- a/src/transfers/api_capital.go +++ b/src/transfers/api_capital.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // CapitalApi service diff --git a/src/transfers/api_transactions.go b/src/transfers/api_transactions.go index b675f3237..2b9d06c3b 100644 --- a/src/transfers/api_transactions.go +++ b/src/transfers/api_transactions.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,7 +17,7 @@ import ( "strings" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TransactionsApi service @@ -47,25 +47,25 @@ func (r TransactionsApiGetAllTransactionsInput) CreatedUntil(createdUntil time.T return r } -// Unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). +// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `accountHolderId`. func (r TransactionsApiGetAllTransactionsInput) BalancePlatform(balancePlatform string) TransactionsApiGetAllTransactionsInput { r.balancePlatform = &balancePlatform return r } -// Unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). +// The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. func (r TransactionsApiGetAllTransactionsInput) PaymentInstrumentId(paymentInstrumentId string) TransactionsApiGetAllTransactionsInput { r.paymentInstrumentId = &paymentInstrumentId return r } -// Unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). +// The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. func (r TransactionsApiGetAllTransactionsInput) AccountHolderId(accountHolderId string) TransactionsApiGetAllTransactionsInput { r.accountHolderId = &accountHolderId return r } -// Unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). +// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don't provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. func (r TransactionsApiGetAllTransactionsInput) BalanceAccountId(balanceAccountId string) TransactionsApiGetAllTransactionsInput { r.balanceAccountId = &balanceAccountId return r @@ -95,11 +95,18 @@ func (a *TransactionsApi) GetAllTransactionsInput() TransactionsApiGetAllTransac /* GetAllTransactions Get all transactions -Returns all transactions related to a balance account with a payment instrument of type **bankAccount**. +>Versions 1 and 2 of the Transfers API are deprecated. If you are just starting your implementation, use the latest version. + +Returns all the transactions related to a balance account, account holder, or balance platform. + +When making this request, you must include at least one of the following: +- `balanceAccountId` +- `accountHolderId` +- `balancePlatform`. + +This endpoint supports cursor-based pagination. The response returns the first page of results, and returns links to the next and previous pages when applicable. You can use the links to page through the results. -This endpoint supports cursor-based pagination. The response returns the first page of results, and returns links to the next page when applicable. You can use the links to page through the results. The response also returns links to the previous page when applicable. -Provide either `balanceAccountId`, `accountHolderId`, or `balancePlatform` when using this endpoint. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r TransactionsApiGetAllTransactionsInput - Request parameters, see GetAllTransactionsInput @@ -209,6 +216,8 @@ func (a *TransactionsApi) GetTransactionInput(id string) TransactionsApiGetTrans /* GetTransaction Get a transaction +>Versions 1 and 2 of the Transfers API are deprecated. If you are just starting your implementation, use the latest version. + Returns a transaction. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). diff --git a/src/transfers/api_transfers.go b/src/transfers/api_transfers.go index 34845be88..e67ec5437 100644 --- a/src/transfers/api_transfers.go +++ b/src/transfers/api_transfers.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,16 +14,117 @@ import ( "io/ioutil" "net/http" "net/url" + "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // TransfersApi service type TransfersApi common.Service +// All parameters accepted by TransfersApi.ReturnTransfer +type TransfersApiReturnTransferInput struct { + id string + returnTransferRequest *ReturnTransferRequest +} + +func (r TransfersApiReturnTransferInput) ReturnTransferRequest(returnTransferRequest ReturnTransferRequest) TransfersApiReturnTransferInput { + r.returnTransferRequest = &returnTransferRequest + return r +} + +/* +Prepare a request for ReturnTransfer +@param id The unique identifier of the transfer to be returned. +@return TransfersApiReturnTransferInput +*/ +func (a *TransfersApi) ReturnTransferInput(id string) TransfersApiReturnTransferInput { + return TransfersApiReturnTransferInput{ + id: id, + } +} + +/* +ReturnTransfer Return a transfer + +Returns previously transferred funds without creating a new `transferId`. + +@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@param r TransfersApiReturnTransferInput - Request parameters, see ReturnTransferInput +@return ReturnTransferResponse, *http.Response, error +*/ +func (a *TransfersApi) ReturnTransfer(ctx context.Context, r TransfersApiReturnTransferInput) (ReturnTransferResponse, *http.Response, error) { + res := &ReturnTransferResponse{} + path := "/transfers/{id}/returns" + 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, + r.returnTransferRequest, + res, + http.MethodPost, + a.BasePath()+path, + queryParams, + headerParams, + ) + + if httpRes == nil { + return *res, httpRes, err + } + + var serviceError common.RestServiceError + + if httpRes.StatusCode == 401 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 403 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 422 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + if httpRes.StatusCode == 500 { + body, _ := ioutil.ReadAll(httpRes.Body) + decodeError := json.Unmarshal([]byte(body), &serviceError) + if decodeError != nil { + return *res, httpRes, decodeError + } + return *res, httpRes, serviceError + } + + return *res, httpRes, err +} + // All parameters accepted by TransfersApi.TransferFunds type TransfersApiTransferFundsInput struct { - transferInfo *TransferInfo + wWWAuthenticate *string + transferInfo *TransferInfo +} + +// Header for authenticating through SCA +func (r TransfersApiTransferFundsInput) WWWAuthenticate(wWWAuthenticate string) TransfersApiTransferFundsInput { + r.wWWAuthenticate = &wWWAuthenticate + return r } func (r TransfersApiTransferFundsInput) TransferInfo(transferInfo TransferInfo) TransfersApiTransferFundsInput { @@ -43,6 +144,8 @@ func (a *TransfersApi) TransferFundsInput() TransfersApiTransferFundsInput { /* TransferFunds Transfer funds +>Versions 1 and 2 of the Transfers API are deprecated. If you are just starting your implementation, use the latest version. + Starts a request to transfer funds to [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts), [transfer instruments](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments), or third-party bank accounts. Adyen sends the outcome of the transfer request through webhooks. To use this endpoint, you need an additional role for your API credential and transfers must be enabled for the source balance account. Your Adyen contact will set these up for you. @@ -56,6 +159,9 @@ func (a *TransfersApi) TransferFunds(ctx context.Context, r TransfersApiTransfer path := "/transfers" queryParams := url.Values{} headerParams := make(map[string]string) + if r.wWWAuthenticate != nil { + common.ParameterAddToHeaderOrQuery(headerParams, "WWW-Authenticate", r.wWWAuthenticate, "") + } httpRes, err := common.SendAPIRequest( ctx, a.Client, diff --git a/src/transfers/client.go b/src/transfers/client.go index 3ff2e6ec9..f56efa84b 100644 --- a/src/transfers/client.go +++ b/src/transfers/client.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -9,10 +9,10 @@ API version: 3 package transfers import ( - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// APIClient manages communication with the Transfers API API v3 +// APIClient manages communication with the Transfers API API v4 // In most cases there should be only one, shared, APIClient. type APIClient struct { common common.Service // Reuse a single struct instead of allocating one for each service on the heap. diff --git a/src/transfers/model_additional_bank_identification.go b/src/transfers/model_additional_bank_identification.go index b37f70c02..2849b47cb 100644 --- a/src/transfers/model_additional_bank_identification.go +++ b/src/transfers/model_additional_bank_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalBankIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_address_2.go b/src/transfers/model_address.go similarity index 73% rename from src/transfers/model_address_2.go rename to src/transfers/model_address.go index d324610f1..56f218900 100644 --- a/src/transfers/model_address_2.go +++ b/src/transfers/model_address.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,14 +11,14 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// checks if the Address2 type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &Address2{} +// checks if the Address type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &Address{} -// Address2 struct for Address2 -type Address2 struct { +// Address struct for Address +type Address struct { // The name of the city. City *string `json:"city,omitempty"` // The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. @@ -33,26 +33,26 @@ type Address2 struct { StateOrProvince *string `json:"stateOrProvince,omitempty"` } -// NewAddress2 instantiates a new Address2 object +// NewAddress instantiates a new Address 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 NewAddress2(country string) *Address2 { - this := Address2{} +func NewAddress(country string) *Address { + this := Address{} this.Country = country return &this } -// NewAddress2WithDefaults instantiates a new Address2 object +// NewAddressWithDefaults instantiates a new Address 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 NewAddress2WithDefaults() *Address2 { - this := Address2{} +func NewAddressWithDefaults() *Address { + this := Address{} return &this } // GetCity returns the City field value if set, zero value otherwise. -func (o *Address2) GetCity() string { +func (o *Address) GetCity() string { if o == nil || common.IsNil(o.City) { var ret string return ret @@ -62,7 +62,7 @@ func (o *Address2) GetCity() string { // GetCityOk returns a tuple with the City field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Address2) GetCityOk() (*string, bool) { +func (o *Address) GetCityOk() (*string, bool) { if o == nil || common.IsNil(o.City) { return nil, false } @@ -70,7 +70,7 @@ func (o *Address2) GetCityOk() (*string, bool) { } // HasCity returns a boolean if a field has been set. -func (o *Address2) HasCity() bool { +func (o *Address) HasCity() bool { if o != nil && !common.IsNil(o.City) { return true } @@ -79,12 +79,12 @@ func (o *Address2) HasCity() bool { } // SetCity gets a reference to the given string and assigns it to the City field. -func (o *Address2) SetCity(v string) { +func (o *Address) SetCity(v string) { o.City = &v } // GetCountry returns the Country field value -func (o *Address2) GetCountry() string { +func (o *Address) GetCountry() string { if o == nil { var ret string return ret @@ -95,7 +95,7 @@ func (o *Address2) GetCountry() string { // GetCountryOk returns a tuple with the Country field value // and a boolean to check if the value has been set. -func (o *Address2) GetCountryOk() (*string, bool) { +func (o *Address) GetCountryOk() (*string, bool) { if o == nil { return nil, false } @@ -103,12 +103,12 @@ func (o *Address2) GetCountryOk() (*string, bool) { } // SetCountry sets field value -func (o *Address2) SetCountry(v string) { +func (o *Address) SetCountry(v string) { o.Country = v } // GetLine1 returns the Line1 field value if set, zero value otherwise. -func (o *Address2) GetLine1() string { +func (o *Address) GetLine1() string { if o == nil || common.IsNil(o.Line1) { var ret string return ret @@ -118,7 +118,7 @@ func (o *Address2) GetLine1() string { // GetLine1Ok returns a tuple with the Line1 field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Address2) GetLine1Ok() (*string, bool) { +func (o *Address) GetLine1Ok() (*string, bool) { if o == nil || common.IsNil(o.Line1) { return nil, false } @@ -126,7 +126,7 @@ func (o *Address2) GetLine1Ok() (*string, bool) { } // HasLine1 returns a boolean if a field has been set. -func (o *Address2) HasLine1() bool { +func (o *Address) HasLine1() bool { if o != nil && !common.IsNil(o.Line1) { return true } @@ -135,12 +135,12 @@ func (o *Address2) HasLine1() bool { } // SetLine1 gets a reference to the given string and assigns it to the Line1 field. -func (o *Address2) SetLine1(v string) { +func (o *Address) SetLine1(v string) { o.Line1 = &v } // GetLine2 returns the Line2 field value if set, zero value otherwise. -func (o *Address2) GetLine2() string { +func (o *Address) GetLine2() string { if o == nil || common.IsNil(o.Line2) { var ret string return ret @@ -150,7 +150,7 @@ func (o *Address2) GetLine2() string { // GetLine2Ok returns a tuple with the Line2 field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Address2) GetLine2Ok() (*string, bool) { +func (o *Address) GetLine2Ok() (*string, bool) { if o == nil || common.IsNil(o.Line2) { return nil, false } @@ -158,7 +158,7 @@ func (o *Address2) GetLine2Ok() (*string, bool) { } // HasLine2 returns a boolean if a field has been set. -func (o *Address2) HasLine2() bool { +func (o *Address) HasLine2() bool { if o != nil && !common.IsNil(o.Line2) { return true } @@ -167,12 +167,12 @@ func (o *Address2) HasLine2() bool { } // SetLine2 gets a reference to the given string and assigns it to the Line2 field. -func (o *Address2) SetLine2(v string) { +func (o *Address) SetLine2(v string) { o.Line2 = &v } // GetPostalCode returns the PostalCode field value if set, zero value otherwise. -func (o *Address2) GetPostalCode() string { +func (o *Address) GetPostalCode() string { if o == nil || common.IsNil(o.PostalCode) { var ret string return ret @@ -182,7 +182,7 @@ func (o *Address2) GetPostalCode() string { // GetPostalCodeOk returns a tuple with the PostalCode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Address2) GetPostalCodeOk() (*string, bool) { +func (o *Address) GetPostalCodeOk() (*string, bool) { if o == nil || common.IsNil(o.PostalCode) { return nil, false } @@ -190,7 +190,7 @@ func (o *Address2) GetPostalCodeOk() (*string, bool) { } // HasPostalCode returns a boolean if a field has been set. -func (o *Address2) HasPostalCode() bool { +func (o *Address) HasPostalCode() bool { if o != nil && !common.IsNil(o.PostalCode) { return true } @@ -199,12 +199,12 @@ func (o *Address2) HasPostalCode() bool { } // SetPostalCode gets a reference to the given string and assigns it to the PostalCode field. -func (o *Address2) SetPostalCode(v string) { +func (o *Address) SetPostalCode(v string) { o.PostalCode = &v } // GetStateOrProvince returns the StateOrProvince field value if set, zero value otherwise. -func (o *Address2) GetStateOrProvince() string { +func (o *Address) GetStateOrProvince() string { if o == nil || common.IsNil(o.StateOrProvince) { var ret string return ret @@ -214,7 +214,7 @@ func (o *Address2) GetStateOrProvince() string { // GetStateOrProvinceOk returns a tuple with the StateOrProvince field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Address2) GetStateOrProvinceOk() (*string, bool) { +func (o *Address) GetStateOrProvinceOk() (*string, bool) { if o == nil || common.IsNil(o.StateOrProvince) { return nil, false } @@ -222,7 +222,7 @@ func (o *Address2) GetStateOrProvinceOk() (*string, bool) { } // HasStateOrProvince returns a boolean if a field has been set. -func (o *Address2) HasStateOrProvince() bool { +func (o *Address) HasStateOrProvince() bool { if o != nil && !common.IsNil(o.StateOrProvince) { return true } @@ -231,11 +231,11 @@ func (o *Address2) HasStateOrProvince() bool { } // SetStateOrProvince gets a reference to the given string and assigns it to the StateOrProvince field. -func (o *Address2) SetStateOrProvince(v string) { +func (o *Address) SetStateOrProvince(v string) { o.StateOrProvince = &v } -func (o Address2) MarshalJSON() ([]byte, error) { +func (o Address) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -243,7 +243,7 @@ func (o Address2) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o Address2) ToMap() (map[string]interface{}, error) { +func (o Address) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !common.IsNil(o.City) { toSerialize["city"] = o.City @@ -264,38 +264,38 @@ func (o Address2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableAddress2 struct { - value *Address2 +type NullableAddress struct { + value *Address isSet bool } -func (v NullableAddress2) Get() *Address2 { +func (v NullableAddress) Get() *Address { return v.value } -func (v *NullableAddress2) Set(val *Address2) { +func (v *NullableAddress) Set(val *Address) { v.value = val v.isSet = true } -func (v NullableAddress2) IsSet() bool { +func (v NullableAddress) IsSet() bool { return v.isSet } -func (v *NullableAddress2) Unset() { +func (v *NullableAddress) Unset() { v.value = nil v.isSet = false } -func NewNullableAddress2(val *Address2) *NullableAddress2 { - return &NullableAddress2{value: val, isSet: true} +func NewNullableAddress(val *Address) *NullableAddress { + return &NullableAddress{value: val, isSet: true} } -func (v NullableAddress2) MarshalJSON() ([]byte, error) { +func (v NullableAddress) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableAddress2) UnmarshalJSON(src []byte) error { +func (v *NullableAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/src/transfers/model_amount.go b/src/transfers/model_amount.go index 4fbcfaf21..3f95599eb 100644 --- a/src/transfers/model_amount.go +++ b/src/transfers/model_amount.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_au_local_account_identification.go b/src/transfers/model_au_local_account_identification.go index 07f78a386..67eefd427 100644 --- a/src/transfers/model_au_local_account_identification.go +++ b/src/transfers/model_au_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_bank_account_v3.go b/src/transfers/model_bank_account_v3.go index 82890a652..089c3f51b 100644 --- a/src/transfers/model_bank_account_v3.go +++ b/src/transfers/model_bank_account_v3.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccountV3 type satisfies the MappedNullable interface at compile time @@ -19,7 +19,7 @@ var _ common.MappedNullable = &BankAccountV3{} // BankAccountV3 struct for BankAccountV3 type BankAccountV3 struct { - AccountHolder PartyIdentification2 `json:"accountHolder"` + AccountHolder PartyIdentification `json:"accountHolder"` AccountIdentification BankAccountV3AccountIdentification `json:"accountIdentification"` } @@ -27,7 +27,7 @@ type BankAccountV3 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 NewBankAccountV3(accountHolder PartyIdentification2, accountIdentification BankAccountV3AccountIdentification) *BankAccountV3 { +func NewBankAccountV3(accountHolder PartyIdentification, accountIdentification BankAccountV3AccountIdentification) *BankAccountV3 { this := BankAccountV3{} this.AccountHolder = accountHolder this.AccountIdentification = accountIdentification @@ -43,9 +43,9 @@ func NewBankAccountV3WithDefaults() *BankAccountV3 { } // GetAccountHolder returns the AccountHolder field value -func (o *BankAccountV3) GetAccountHolder() PartyIdentification2 { +func (o *BankAccountV3) GetAccountHolder() PartyIdentification { if o == nil { - var ret PartyIdentification2 + var ret PartyIdentification return ret } @@ -54,7 +54,7 @@ func (o *BankAccountV3) GetAccountHolder() PartyIdentification2 { // GetAccountHolderOk returns a tuple with the AccountHolder field value // and a boolean to check if the value has been set. -func (o *BankAccountV3) GetAccountHolderOk() (*PartyIdentification2, bool) { +func (o *BankAccountV3) GetAccountHolderOk() (*PartyIdentification, bool) { if o == nil { return nil, false } @@ -62,7 +62,7 @@ func (o *BankAccountV3) GetAccountHolderOk() (*PartyIdentification2, bool) { } // SetAccountHolder sets field value -func (o *BankAccountV3) SetAccountHolder(v PartyIdentification2) { +func (o *BankAccountV3) SetAccountHolder(v PartyIdentification) { o.AccountHolder = v } diff --git a/src/transfers/model_bank_account_v3_account_identification.go b/src/transfers/model_bank_account_v3_account_identification.go index eab19215d..6fed77b5c 100644 --- a/src/transfers/model_bank_account_v3_account_identification.go +++ b/src/transfers/model_bank_account_v3_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/src/transfers/model_bank_category_data.go b/src/transfers/model_bank_category_data.go new file mode 100644 index 000000000..2d5aabef1 --- /dev/null +++ b/src/transfers/model_bank_category_data.go @@ -0,0 +1,185 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the BankCategoryData type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &BankCategoryData{} + +// BankCategoryData struct for BankCategoryData +type BankCategoryData struct { + // The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + Priority *string `json:"priority,omitempty"` + // **bank** + Type *string `json:"type,omitempty"` +} + +// NewBankCategoryData instantiates a new BankCategoryData 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 NewBankCategoryData() *BankCategoryData { + this := BankCategoryData{} + var type_ string = "bank" + this.Type = &type_ + return &this +} + +// NewBankCategoryDataWithDefaults instantiates a new BankCategoryData 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 NewBankCategoryDataWithDefaults() *BankCategoryData { + this := BankCategoryData{} + var type_ string = "bank" + this.Type = &type_ + return &this +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BankCategoryData) GetPriority() string { + if o == nil || common.IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BankCategoryData) GetPriorityOk() (*string, bool) { + if o == nil || common.IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BankCategoryData) HasPriority() bool { + if o != nil && !common.IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *BankCategoryData) SetPriority(v string) { + o.Priority = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BankCategoryData) GetType() string { + if o == nil || common.IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BankCategoryData) GetTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BankCategoryData) HasType() bool { + if o != nil && !common.IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *BankCategoryData) SetType(v string) { + o.Type = &v +} + +func (o BankCategoryData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BankCategoryData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !common.IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableBankCategoryData struct { + value *BankCategoryData + isSet bool +} + +func (v NullableBankCategoryData) Get() *BankCategoryData { + return v.value +} + +func (v *NullableBankCategoryData) Set(val *BankCategoryData) { + v.value = val + v.isSet = true +} + +func (v NullableBankCategoryData) IsSet() bool { + return v.isSet +} + +func (v *NullableBankCategoryData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBankCategoryData(val *BankCategoryData) *NullableBankCategoryData { + return &NullableBankCategoryData{value: val, isSet: true} +} + +func (v NullableBankCategoryData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBankCategoryData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *BankCategoryData) isValidPriority() bool { + var allowedEnumValues = []string{"crossBorder", "fast", "instant", "internal", "regular", "wire"} + for _, allowed := range allowedEnumValues { + if o.GetPriority() == allowed { + return true + } + } + return false +} +func (o *BankCategoryData) isValidType() bool { + var allowedEnumValues = []string{"bank"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/transfers/model_br_local_account_identification.go b/src/transfers/model_br_local_account_identification.go index d79fdba7e..5f7b7ed19 100644 --- a/src/transfers/model_br_local_account_identification.go +++ b/src/transfers/model_br_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BRLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_ca_local_account_identification.go b/src/transfers/model_ca_local_account_identification.go index b7ae37a20..59271462c 100644 --- a/src/transfers/model_ca_local_account_identification.go +++ b/src/transfers/model_ca_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CALocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_capital_balance.go b/src/transfers/model_capital_balance.go index 166aa5cbe..af4f122ba 100644 --- a/src/transfers/model_capital_balance.go +++ b/src/transfers/model_capital_balance.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapitalBalance type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_capital_grant.go b/src/transfers/model_capital_grant.go index c1ab268e2..61f90a5c7 100644 --- a/src/transfers/model_capital_grant.go +++ b/src/transfers/model_capital_grant.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapitalGrant type satisfies the MappedNullable interface at compile time @@ -21,7 +21,7 @@ var _ common.MappedNullable = &CapitalGrant{} type CapitalGrant struct { Amount *Amount `json:"amount,omitempty"` Balances CapitalBalance `json:"balances"` - Counterparty *Counterparty2 `json:"counterparty,omitempty"` + Counterparty *Counterparty `json:"counterparty,omitempty"` Fee *Fee `json:"fee,omitempty"` // The identifier of the grant account used for the grant. GrantAccountId string `json:"grantAccountId"` @@ -113,9 +113,9 @@ func (o *CapitalGrant) SetBalances(v CapitalBalance) { } // GetCounterparty returns the Counterparty field value if set, zero value otherwise. -func (o *CapitalGrant) GetCounterparty() Counterparty2 { +func (o *CapitalGrant) GetCounterparty() Counterparty { if o == nil || common.IsNil(o.Counterparty) { - var ret Counterparty2 + var ret Counterparty return ret } return *o.Counterparty @@ -123,7 +123,7 @@ func (o *CapitalGrant) GetCounterparty() Counterparty2 { // GetCounterpartyOk returns a tuple with the Counterparty field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CapitalGrant) GetCounterpartyOk() (*Counterparty2, bool) { +func (o *CapitalGrant) GetCounterpartyOk() (*Counterparty, bool) { if o == nil || common.IsNil(o.Counterparty) { return nil, false } @@ -139,8 +139,8 @@ func (o *CapitalGrant) HasCounterparty() bool { return false } -// SetCounterparty gets a reference to the given Counterparty2 and assigns it to the Counterparty field. -func (o *CapitalGrant) SetCounterparty(v Counterparty2) { +// SetCounterparty gets a reference to the given Counterparty and assigns it to the Counterparty field. +func (o *CapitalGrant) SetCounterparty(v Counterparty) { o.Counterparty = &v } diff --git a/src/transfers/model_capital_grant_info.go b/src/transfers/model_capital_grant_info.go index 87391f035..a91aa4afe 100644 --- a/src/transfers/model_capital_grant_info.go +++ b/src/transfers/model_capital_grant_info.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapitalGrantInfo type satisfies the MappedNullable interface at compile time @@ -19,7 +19,7 @@ var _ common.MappedNullable = &CapitalGrantInfo{} // CapitalGrantInfo struct for CapitalGrantInfo type CapitalGrantInfo struct { - Counterparty *Counterparty2 `json:"counterparty,omitempty"` + Counterparty *Counterparty `json:"counterparty,omitempty"` // The identifier of the grant account used for the grant. GrantAccountId string `json:"grantAccountId"` // The identifier of the grant offer that has been selected and from which the grant details will be used. @@ -46,9 +46,9 @@ func NewCapitalGrantInfoWithDefaults() *CapitalGrantInfo { } // GetCounterparty returns the Counterparty field value if set, zero value otherwise. -func (o *CapitalGrantInfo) GetCounterparty() Counterparty2 { +func (o *CapitalGrantInfo) GetCounterparty() Counterparty { if o == nil || common.IsNil(o.Counterparty) { - var ret Counterparty2 + var ret Counterparty return ret } return *o.Counterparty @@ -56,7 +56,7 @@ func (o *CapitalGrantInfo) GetCounterparty() Counterparty2 { // GetCounterpartyOk returns a tuple with the Counterparty field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CapitalGrantInfo) GetCounterpartyOk() (*Counterparty2, bool) { +func (o *CapitalGrantInfo) GetCounterpartyOk() (*Counterparty, bool) { if o == nil || common.IsNil(o.Counterparty) { return nil, false } @@ -72,8 +72,8 @@ func (o *CapitalGrantInfo) HasCounterparty() bool { return false } -// SetCounterparty gets a reference to the given Counterparty2 and assigns it to the Counterparty field. -func (o *CapitalGrantInfo) SetCounterparty(v Counterparty2) { +// SetCounterparty gets a reference to the given Counterparty and assigns it to the Counterparty field. +func (o *CapitalGrantInfo) SetCounterparty(v Counterparty) { o.Counterparty = &v } diff --git a/src/transfers/model_capital_grants.go b/src/transfers/model_capital_grants.go index 3ffabf4fb..49827278d 100644 --- a/src/transfers/model_capital_grants.go +++ b/src/transfers/model_capital_grants.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CapitalGrants type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_counterparty_2.go b/src/transfers/model_counterparty.go similarity index 68% rename from src/transfers/model_counterparty_2.go rename to src/transfers/model_counterparty.go index ae5dbb9af..94fa07462 100644 --- a/src/transfers/model_counterparty_2.go +++ b/src/transfers/model_counterparty.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,14 +11,14 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// checks if the Counterparty2 type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &Counterparty2{} +// checks if the Counterparty type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &Counterparty{} -// Counterparty2 struct for Counterparty2 -type Counterparty2 struct { +// Counterparty struct for Counterparty +type Counterparty struct { // The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. AccountHolderId *string `json:"accountHolderId,omitempty"` // The identifier of the balance account that belongs to the receiving account holder. @@ -27,25 +27,25 @@ type Counterparty2 struct { TransferInstrumentId *string `json:"transferInstrumentId,omitempty"` } -// NewCounterparty2 instantiates a new Counterparty2 object +// NewCounterparty instantiates a new Counterparty 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 NewCounterparty2() *Counterparty2 { - this := Counterparty2{} +func NewCounterparty() *Counterparty { + this := Counterparty{} return &this } -// NewCounterparty2WithDefaults instantiates a new Counterparty2 object +// NewCounterpartyWithDefaults instantiates a new Counterparty 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 NewCounterparty2WithDefaults() *Counterparty2 { - this := Counterparty2{} +func NewCounterpartyWithDefaults() *Counterparty { + this := Counterparty{} return &this } // GetAccountHolderId returns the AccountHolderId field value if set, zero value otherwise. -func (o *Counterparty2) GetAccountHolderId() string { +func (o *Counterparty) GetAccountHolderId() string { if o == nil || common.IsNil(o.AccountHolderId) { var ret string return ret @@ -55,7 +55,7 @@ func (o *Counterparty2) GetAccountHolderId() string { // GetAccountHolderIdOk returns a tuple with the AccountHolderId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Counterparty2) GetAccountHolderIdOk() (*string, bool) { +func (o *Counterparty) GetAccountHolderIdOk() (*string, bool) { if o == nil || common.IsNil(o.AccountHolderId) { return nil, false } @@ -63,7 +63,7 @@ func (o *Counterparty2) GetAccountHolderIdOk() (*string, bool) { } // HasAccountHolderId returns a boolean if a field has been set. -func (o *Counterparty2) HasAccountHolderId() bool { +func (o *Counterparty) HasAccountHolderId() bool { if o != nil && !common.IsNil(o.AccountHolderId) { return true } @@ -72,12 +72,12 @@ func (o *Counterparty2) HasAccountHolderId() bool { } // SetAccountHolderId gets a reference to the given string and assigns it to the AccountHolderId field. -func (o *Counterparty2) SetAccountHolderId(v string) { +func (o *Counterparty) SetAccountHolderId(v string) { o.AccountHolderId = &v } // GetBalanceAccountId returns the BalanceAccountId field value if set, zero value otherwise. -func (o *Counterparty2) GetBalanceAccountId() string { +func (o *Counterparty) GetBalanceAccountId() string { if o == nil || common.IsNil(o.BalanceAccountId) { var ret string return ret @@ -87,7 +87,7 @@ func (o *Counterparty2) GetBalanceAccountId() string { // GetBalanceAccountIdOk returns a tuple with the BalanceAccountId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Counterparty2) GetBalanceAccountIdOk() (*string, bool) { +func (o *Counterparty) GetBalanceAccountIdOk() (*string, bool) { if o == nil || common.IsNil(o.BalanceAccountId) { return nil, false } @@ -95,7 +95,7 @@ func (o *Counterparty2) GetBalanceAccountIdOk() (*string, bool) { } // HasBalanceAccountId returns a boolean if a field has been set. -func (o *Counterparty2) HasBalanceAccountId() bool { +func (o *Counterparty) HasBalanceAccountId() bool { if o != nil && !common.IsNil(o.BalanceAccountId) { return true } @@ -104,12 +104,12 @@ func (o *Counterparty2) HasBalanceAccountId() bool { } // SetBalanceAccountId gets a reference to the given string and assigns it to the BalanceAccountId field. -func (o *Counterparty2) SetBalanceAccountId(v string) { +func (o *Counterparty) SetBalanceAccountId(v string) { o.BalanceAccountId = &v } // GetTransferInstrumentId returns the TransferInstrumentId field value if set, zero value otherwise. -func (o *Counterparty2) GetTransferInstrumentId() string { +func (o *Counterparty) GetTransferInstrumentId() string { if o == nil || common.IsNil(o.TransferInstrumentId) { var ret string return ret @@ -119,7 +119,7 @@ func (o *Counterparty2) GetTransferInstrumentId() string { // GetTransferInstrumentIdOk returns a tuple with the TransferInstrumentId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Counterparty2) GetTransferInstrumentIdOk() (*string, bool) { +func (o *Counterparty) GetTransferInstrumentIdOk() (*string, bool) { if o == nil || common.IsNil(o.TransferInstrumentId) { return nil, false } @@ -127,7 +127,7 @@ func (o *Counterparty2) GetTransferInstrumentIdOk() (*string, bool) { } // HasTransferInstrumentId returns a boolean if a field has been set. -func (o *Counterparty2) HasTransferInstrumentId() bool { +func (o *Counterparty) HasTransferInstrumentId() bool { if o != nil && !common.IsNil(o.TransferInstrumentId) { return true } @@ -136,11 +136,11 @@ func (o *Counterparty2) HasTransferInstrumentId() bool { } // SetTransferInstrumentId gets a reference to the given string and assigns it to the TransferInstrumentId field. -func (o *Counterparty2) SetTransferInstrumentId(v string) { +func (o *Counterparty) SetTransferInstrumentId(v string) { o.TransferInstrumentId = &v } -func (o Counterparty2) MarshalJSON() ([]byte, error) { +func (o Counterparty) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -148,7 +148,7 @@ func (o Counterparty2) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o Counterparty2) ToMap() (map[string]interface{}, error) { +func (o Counterparty) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !common.IsNil(o.AccountHolderId) { toSerialize["accountHolderId"] = o.AccountHolderId @@ -162,38 +162,38 @@ func (o Counterparty2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableCounterparty2 struct { - value *Counterparty2 +type NullableCounterparty struct { + value *Counterparty isSet bool } -func (v NullableCounterparty2) Get() *Counterparty2 { +func (v NullableCounterparty) Get() *Counterparty { return v.value } -func (v *NullableCounterparty2) Set(val *Counterparty2) { +func (v *NullableCounterparty) Set(val *Counterparty) { v.value = val v.isSet = true } -func (v NullableCounterparty2) IsSet() bool { +func (v NullableCounterparty) IsSet() bool { return v.isSet } -func (v *NullableCounterparty2) Unset() { +func (v *NullableCounterparty) Unset() { v.value = nil v.isSet = false } -func NewNullableCounterparty2(val *Counterparty2) *NullableCounterparty2 { - return &NullableCounterparty2{value: val, isSet: true} +func NewNullableCounterparty(val *Counterparty) *NullableCounterparty { + return &NullableCounterparty{value: val, isSet: true} } -func (v NullableCounterparty2) MarshalJSON() ([]byte, error) { +func (v NullableCounterparty) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCounterparty2) UnmarshalJSON(src []byte) error { +func (v *NullableCounterparty) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/src/transfers/model_counterparty_info_v3.go b/src/transfers/model_counterparty_info_v3.go index 0f1f2a58a..adf7d2876 100644 --- a/src/transfers/model_counterparty_info_v3.go +++ b/src/transfers/model_counterparty_info_v3.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CounterpartyInfoV3 type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_counterparty_v3.go b/src/transfers/model_counterparty_v3.go index d2a6d8c9d..cc0adc150 100644 --- a/src/transfers/model_counterparty_v3.go +++ b/src/transfers/model_counterparty_v3.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CounterpartyV3 type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_cz_local_account_identification.go b/src/transfers/model_cz_local_account_identification.go index 3ea888d5d..5274bb0ef 100644 --- a/src/transfers/model_cz_local_account_identification.go +++ b/src/transfers/model_cz_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CZLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_dk_local_account_identification.go b/src/transfers/model_dk_local_account_identification.go index 82d37af3e..0e0494f7d 100644 --- a/src/transfers/model_dk_local_account_identification.go +++ b/src/transfers/model_dk_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_fee.go b/src/transfers/model_fee.go index 67d4c2932..02735cbd3 100644 --- a/src/transfers/model_fee.go +++ b/src/transfers/model_fee.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Fee type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_hk_local_account_identification.go b/src/transfers/model_hk_local_account_identification.go index 334a6c9ad..649c94b5c 100644 --- a/src/transfers/model_hk_local_account_identification.go +++ b/src/transfers/model_hk_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HKLocalAccountIdentification type satisfies the MappedNullable interface at compile time @@ -19,10 +19,10 @@ var _ common.MappedNullable = &HKLocalAccountIdentification{} // HKLocalAccountIdentification struct for HKLocalAccountIdentification type HKLocalAccountIdentification struct { - // The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. + // The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. AccountNumber string `json:"accountNumber"` - // The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. - BankCode string `json:"bankCode"` + // The 3-digit clearing code, without separators or whitespace. + ClearingCode string `json:"clearingCode"` // **hkLocal** Type string `json:"type"` } @@ -31,10 +31,10 @@ type HKLocalAccountIdentification 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 NewHKLocalAccountIdentification(accountNumber string, bankCode string, type_ string) *HKLocalAccountIdentification { +func NewHKLocalAccountIdentification(accountNumber string, clearingCode string, type_ string) *HKLocalAccountIdentification { this := HKLocalAccountIdentification{} this.AccountNumber = accountNumber - this.BankCode = bankCode + this.ClearingCode = clearingCode this.Type = type_ return &this } @@ -73,28 +73,28 @@ func (o *HKLocalAccountIdentification) SetAccountNumber(v string) { o.AccountNumber = v } -// GetBankCode returns the BankCode field value -func (o *HKLocalAccountIdentification) GetBankCode() string { +// GetClearingCode returns the ClearingCode field value +func (o *HKLocalAccountIdentification) GetClearingCode() string { if o == nil { var ret string return ret } - return o.BankCode + return o.ClearingCode } -// GetBankCodeOk returns a tuple with the BankCode field value +// GetClearingCodeOk returns a tuple with the ClearingCode field value // and a boolean to check if the value has been set. -func (o *HKLocalAccountIdentification) GetBankCodeOk() (*string, bool) { +func (o *HKLocalAccountIdentification) GetClearingCodeOk() (*string, bool) { if o == nil { return nil, false } - return &o.BankCode, true + return &o.ClearingCode, true } -// SetBankCode sets field value -func (o *HKLocalAccountIdentification) SetBankCode(v string) { - o.BankCode = v +// SetClearingCode sets field value +func (o *HKLocalAccountIdentification) SetClearingCode(v string) { + o.ClearingCode = v } // GetType returns the Type field value @@ -132,7 +132,7 @@ func (o HKLocalAccountIdentification) MarshalJSON() ([]byte, error) { func (o HKLocalAccountIdentification) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["accountNumber"] = o.AccountNumber - toSerialize["bankCode"] = o.BankCode + toSerialize["clearingCode"] = o.ClearingCode toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/transfers/model_hu_local_account_identification.go b/src/transfers/model_hu_local_account_identification.go index 4376ccc9e..e45c841ff 100644 --- a/src/transfers/model_hu_local_account_identification.go +++ b/src/transfers/model_hu_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_iban_account_identification.go b/src/transfers/model_iban_account_identification.go index d95ac49e6..6fd28c68b 100644 --- a/src/transfers/model_iban_account_identification.go +++ b/src/transfers/model_iban_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IbanAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_internal_category_data.go b/src/transfers/model_internal_category_data.go new file mode 100644 index 000000000..9e2a06584 --- /dev/null +++ b/src/transfers/model_internal_category_data.go @@ -0,0 +1,213 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the InternalCategoryData type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &InternalCategoryData{} + +// InternalCategoryData struct for InternalCategoryData +type InternalCategoryData struct { + // The capture's merchant reference included in the transfer. + ModificationMerchantReference *string `json:"modificationMerchantReference,omitempty"` + // The capture reference included in the transfer. + ModificationPspReference *string `json:"modificationPspReference,omitempty"` + // **internal** + Type *string `json:"type,omitempty"` +} + +// NewInternalCategoryData instantiates a new InternalCategoryData 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 NewInternalCategoryData() *InternalCategoryData { + this := InternalCategoryData{} + var type_ string = "internal" + this.Type = &type_ + return &this +} + +// NewInternalCategoryDataWithDefaults instantiates a new InternalCategoryData 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 NewInternalCategoryDataWithDefaults() *InternalCategoryData { + this := InternalCategoryData{} + var type_ string = "internal" + this.Type = &type_ + return &this +} + +// GetModificationMerchantReference returns the ModificationMerchantReference field value if set, zero value otherwise. +func (o *InternalCategoryData) GetModificationMerchantReference() string { + if o == nil || common.IsNil(o.ModificationMerchantReference) { + var ret string + return ret + } + return *o.ModificationMerchantReference +} + +// GetModificationMerchantReferenceOk returns a tuple with the ModificationMerchantReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InternalCategoryData) GetModificationMerchantReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.ModificationMerchantReference) { + return nil, false + } + return o.ModificationMerchantReference, true +} + +// HasModificationMerchantReference returns a boolean if a field has been set. +func (o *InternalCategoryData) HasModificationMerchantReference() bool { + if o != nil && !common.IsNil(o.ModificationMerchantReference) { + return true + } + + return false +} + +// SetModificationMerchantReference gets a reference to the given string and assigns it to the ModificationMerchantReference field. +func (o *InternalCategoryData) SetModificationMerchantReference(v string) { + o.ModificationMerchantReference = &v +} + +// GetModificationPspReference returns the ModificationPspReference field value if set, zero value otherwise. +func (o *InternalCategoryData) GetModificationPspReference() string { + if o == nil || common.IsNil(o.ModificationPspReference) { + var ret string + return ret + } + return *o.ModificationPspReference +} + +// GetModificationPspReferenceOk returns a tuple with the ModificationPspReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InternalCategoryData) GetModificationPspReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.ModificationPspReference) { + return nil, false + } + return o.ModificationPspReference, true +} + +// HasModificationPspReference returns a boolean if a field has been set. +func (o *InternalCategoryData) HasModificationPspReference() bool { + if o != nil && !common.IsNil(o.ModificationPspReference) { + return true + } + + return false +} + +// SetModificationPspReference gets a reference to the given string and assigns it to the ModificationPspReference field. +func (o *InternalCategoryData) SetModificationPspReference(v string) { + o.ModificationPspReference = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *InternalCategoryData) GetType() string { + if o == nil || common.IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InternalCategoryData) GetTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *InternalCategoryData) HasType() bool { + if o != nil && !common.IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *InternalCategoryData) SetType(v string) { + o.Type = &v +} + +func (o InternalCategoryData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InternalCategoryData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.ModificationMerchantReference) { + toSerialize["modificationMerchantReference"] = o.ModificationMerchantReference + } + if !common.IsNil(o.ModificationPspReference) { + toSerialize["modificationPspReference"] = o.ModificationPspReference + } + if !common.IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableInternalCategoryData struct { + value *InternalCategoryData + isSet bool +} + +func (v NullableInternalCategoryData) Get() *InternalCategoryData { + return v.value +} + +func (v *NullableInternalCategoryData) Set(val *InternalCategoryData) { + v.value = val + v.isSet = true +} + +func (v NullableInternalCategoryData) IsSet() bool { + return v.isSet +} + +func (v *NullableInternalCategoryData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInternalCategoryData(val *InternalCategoryData) *NullableInternalCategoryData { + return &NullableInternalCategoryData{value: val, isSet: true} +} + +func (v NullableInternalCategoryData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInternalCategoryData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *InternalCategoryData) isValidType() bool { + var allowedEnumValues = []string{"internal"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/transfers/model_invalid_field.go b/src/transfers/model_invalid_field.go index e4ec77527..1ad526f8c 100644 --- a/src/transfers/model_invalid_field.go +++ b/src/transfers/model_invalid_field.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the InvalidField type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_issued_card.go b/src/transfers/model_issued_card.go new file mode 100644 index 000000000..9037fdc3c --- /dev/null +++ b/src/transfers/model_issued_card.go @@ -0,0 +1,304 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the IssuedCard type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &IssuedCard{} + +// IssuedCard struct for IssuedCard +type IssuedCard struct { + // Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + PanEntryMode *string `json:"panEntryMode,omitempty"` + // Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + ProcessingType *string `json:"processingType,omitempty"` + RelayedAuthorisationData *RelayedAuthorisationData `json:"relayedAuthorisationData,omitempty"` + // **issuedCard** + Type *string `json:"type,omitempty"` + // The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + ValidationFacts []TransferNotificationValidationFact `json:"validationFacts,omitempty"` +} + +// NewIssuedCard instantiates a new IssuedCard 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 NewIssuedCard() *IssuedCard { + this := IssuedCard{} + var type_ string = "issuedCard" + this.Type = &type_ + return &this +} + +// NewIssuedCardWithDefaults instantiates a new IssuedCard 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 NewIssuedCardWithDefaults() *IssuedCard { + this := IssuedCard{} + var type_ string = "issuedCard" + this.Type = &type_ + return &this +} + +// GetPanEntryMode returns the PanEntryMode field value if set, zero value otherwise. +func (o *IssuedCard) GetPanEntryMode() string { + if o == nil || common.IsNil(o.PanEntryMode) { + var ret string + return ret + } + return *o.PanEntryMode +} + +// GetPanEntryModeOk returns a tuple with the PanEntryMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IssuedCard) GetPanEntryModeOk() (*string, bool) { + if o == nil || common.IsNil(o.PanEntryMode) { + return nil, false + } + return o.PanEntryMode, true +} + +// HasPanEntryMode returns a boolean if a field has been set. +func (o *IssuedCard) HasPanEntryMode() bool { + if o != nil && !common.IsNil(o.PanEntryMode) { + return true + } + + return false +} + +// SetPanEntryMode gets a reference to the given string and assigns it to the PanEntryMode field. +func (o *IssuedCard) SetPanEntryMode(v string) { + o.PanEntryMode = &v +} + +// GetProcessingType returns the ProcessingType field value if set, zero value otherwise. +func (o *IssuedCard) GetProcessingType() string { + if o == nil || common.IsNil(o.ProcessingType) { + var ret string + return ret + } + return *o.ProcessingType +} + +// GetProcessingTypeOk returns a tuple with the ProcessingType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IssuedCard) GetProcessingTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.ProcessingType) { + return nil, false + } + return o.ProcessingType, true +} + +// HasProcessingType returns a boolean if a field has been set. +func (o *IssuedCard) HasProcessingType() bool { + if o != nil && !common.IsNil(o.ProcessingType) { + return true + } + + return false +} + +// SetProcessingType gets a reference to the given string and assigns it to the ProcessingType field. +func (o *IssuedCard) SetProcessingType(v string) { + o.ProcessingType = &v +} + +// GetRelayedAuthorisationData returns the RelayedAuthorisationData field value if set, zero value otherwise. +func (o *IssuedCard) GetRelayedAuthorisationData() RelayedAuthorisationData { + if o == nil || common.IsNil(o.RelayedAuthorisationData) { + var ret RelayedAuthorisationData + return ret + } + return *o.RelayedAuthorisationData +} + +// GetRelayedAuthorisationDataOk returns a tuple with the RelayedAuthorisationData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IssuedCard) GetRelayedAuthorisationDataOk() (*RelayedAuthorisationData, bool) { + if o == nil || common.IsNil(o.RelayedAuthorisationData) { + return nil, false + } + return o.RelayedAuthorisationData, true +} + +// HasRelayedAuthorisationData returns a boolean if a field has been set. +func (o *IssuedCard) HasRelayedAuthorisationData() bool { + if o != nil && !common.IsNil(o.RelayedAuthorisationData) { + return true + } + + return false +} + +// SetRelayedAuthorisationData gets a reference to the given RelayedAuthorisationData and assigns it to the RelayedAuthorisationData field. +func (o *IssuedCard) SetRelayedAuthorisationData(v RelayedAuthorisationData) { + o.RelayedAuthorisationData = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *IssuedCard) GetType() string { + if o == nil || common.IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IssuedCard) GetTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *IssuedCard) HasType() bool { + if o != nil && !common.IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *IssuedCard) SetType(v string) { + o.Type = &v +} + +// GetValidationFacts returns the ValidationFacts field value if set, zero value otherwise. +func (o *IssuedCard) GetValidationFacts() []TransferNotificationValidationFact { + if o == nil || common.IsNil(o.ValidationFacts) { + var ret []TransferNotificationValidationFact + return ret + } + return o.ValidationFacts +} + +// GetValidationFactsOk returns a tuple with the ValidationFacts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IssuedCard) GetValidationFactsOk() ([]TransferNotificationValidationFact, bool) { + if o == nil || common.IsNil(o.ValidationFacts) { + return nil, false + } + return o.ValidationFacts, true +} + +// HasValidationFacts returns a boolean if a field has been set. +func (o *IssuedCard) HasValidationFacts() bool { + if o != nil && !common.IsNil(o.ValidationFacts) { + return true + } + + return false +} + +// SetValidationFacts gets a reference to the given []TransferNotificationValidationFact and assigns it to the ValidationFacts field. +func (o *IssuedCard) SetValidationFacts(v []TransferNotificationValidationFact) { + o.ValidationFacts = v +} + +func (o IssuedCard) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IssuedCard) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.PanEntryMode) { + toSerialize["panEntryMode"] = o.PanEntryMode + } + if !common.IsNil(o.ProcessingType) { + toSerialize["processingType"] = o.ProcessingType + } + if !common.IsNil(o.RelayedAuthorisationData) { + toSerialize["relayedAuthorisationData"] = o.RelayedAuthorisationData + } + if !common.IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !common.IsNil(o.ValidationFacts) { + toSerialize["validationFacts"] = o.ValidationFacts + } + return toSerialize, nil +} + +type NullableIssuedCard struct { + value *IssuedCard + isSet bool +} + +func (v NullableIssuedCard) Get() *IssuedCard { + return v.value +} + +func (v *NullableIssuedCard) Set(val *IssuedCard) { + v.value = val + v.isSet = true +} + +func (v NullableIssuedCard) IsSet() bool { + return v.isSet +} + +func (v *NullableIssuedCard) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIssuedCard(val *IssuedCard) *NullableIssuedCard { + return &NullableIssuedCard{value: val, isSet: true} +} + +func (v NullableIssuedCard) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIssuedCard) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *IssuedCard) isValidPanEntryMode() bool { + var allowedEnumValues = []string{"chip", "cof", "contactless", "ecommerce", "magstripe", "manual", "token"} + for _, allowed := range allowedEnumValues { + if o.GetPanEntryMode() == allowed { + return true + } + } + return false +} +func (o *IssuedCard) isValidProcessingType() bool { + var allowedEnumValues = []string{"atmWithdraw", "balanceInquiry", "ecommerce", "moto", "pos", "purchaseWithCashback", "recurring", "token"} + for _, allowed := range allowedEnumValues { + if o.GetProcessingType() == allowed { + return true + } + } + return false +} +func (o *IssuedCard) isValidType() bool { + var allowedEnumValues = []string{"issuedCard"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/transfers/model_json_object.go b/src/transfers/model_json_object.go index c0f9cfd2f..3ba406260 100644 --- a/src/transfers/model_json_object.go +++ b/src/transfers/model_json_object.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the JSONObject type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_json_path.go b/src/transfers/model_json_path.go index a22a367f6..98732da5b 100644 --- a/src/transfers/model_json_path.go +++ b/src/transfers/model_json_path.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the JSONPath type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_link.go b/src/transfers/model_link.go index dea1d665a..f771a4189 100644 --- a/src/transfers/model_link.go +++ b/src/transfers/model_link.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Link type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_links.go b/src/transfers/model_links.go index 18d646ccf..1a7e5e2ec 100644 --- a/src/transfers/model_links.go +++ b/src/transfers/model_links.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Links type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_merchant_data.go b/src/transfers/model_merchant_data.go index bf31f9f9e..ff93aaac1 100644 --- a/src/transfers/model_merchant_data.go +++ b/src/transfers/model_merchant_data.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantData type satisfies the MappedNullable interface at compile time @@ -19,6 +19,8 @@ var _ common.MappedNullable = &MerchantData{} // MerchantData struct for MerchantData type MerchantData struct { + // The unique identifier of the merchant's acquirer. + AcquirerId *string `json:"acquirerId,omitempty"` // The merchant category code. Mcc *string `json:"mcc,omitempty"` // The merchant identifier. @@ -45,6 +47,38 @@ func NewMerchantDataWithDefaults() *MerchantData { return &this } +// GetAcquirerId returns the AcquirerId field value if set, zero value otherwise. +func (o *MerchantData) GetAcquirerId() string { + if o == nil || common.IsNil(o.AcquirerId) { + var ret string + return ret + } + return *o.AcquirerId +} + +// GetAcquirerIdOk returns a tuple with the AcquirerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MerchantData) GetAcquirerIdOk() (*string, bool) { + if o == nil || common.IsNil(o.AcquirerId) { + return nil, false + } + return o.AcquirerId, true +} + +// HasAcquirerId returns a boolean if a field has been set. +func (o *MerchantData) HasAcquirerId() bool { + if o != nil && !common.IsNil(o.AcquirerId) { + return true + } + + return false +} + +// SetAcquirerId gets a reference to the given string and assigns it to the AcquirerId field. +func (o *MerchantData) SetAcquirerId(v string) { + o.AcquirerId = &v +} + // GetMcc returns the Mcc field value if set, zero value otherwise. func (o *MerchantData) GetMcc() string { if o == nil || common.IsNil(o.Mcc) { @@ -183,6 +217,9 @@ func (o MerchantData) MarshalJSON() ([]byte, error) { func (o MerchantData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !common.IsNil(o.AcquirerId) { + toSerialize["acquirerId"] = o.AcquirerId + } if !common.IsNil(o.Mcc) { toSerialize["mcc"] = o.Mcc } diff --git a/src/transfers/model_name_location.go b/src/transfers/model_name_location.go index e0f6be78d..f3d3c2bff 100644 --- a/src/transfers/model_name_location.go +++ b/src/transfers/model_name_location.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NameLocation type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_no_local_account_identification.go b/src/transfers/model_no_local_account_identification.go index 689b35c78..d062a75ee 100644 --- a/src/transfers/model_no_local_account_identification.go +++ b/src/transfers/model_no_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NOLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_number_and_bic_account_identification.go b/src/transfers/model_number_and_bic_account_identification.go index fa9bbc66d..aa14fe415 100644 --- a/src/transfers/model_number_and_bic_account_identification.go +++ b/src/transfers/model_number_and_bic_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NumberAndBicAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_nz_local_account_identification.go b/src/transfers/model_nz_local_account_identification.go index a31599b57..6c6278aaa 100644 --- a/src/transfers/model_nz_local_account_identification.go +++ b/src/transfers/model_nz_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NZLocalAccountIdentification type satisfies the MappedNullable interface at compile time @@ -19,12 +19,8 @@ var _ common.MappedNullable = &NZLocalAccountIdentification{} // NZLocalAccountIdentification struct for NZLocalAccountIdentification type NZLocalAccountIdentification struct { - // The 7-digit bank account number, without separators or whitespace. + // The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. AccountNumber string `json:"accountNumber"` - // The 2- to 3-digit account suffix, without separators or whitespace. - AccountSuffix string `json:"accountSuffix"` - // The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace. - BankCode string `json:"bankCode"` // **nzLocal** Type string `json:"type"` } @@ -33,11 +29,9 @@ type NZLocalAccountIdentification 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 NewNZLocalAccountIdentification(accountNumber string, accountSuffix string, bankCode string, type_ string) *NZLocalAccountIdentification { +func NewNZLocalAccountIdentification(accountNumber string, type_ string) *NZLocalAccountIdentification { this := NZLocalAccountIdentification{} this.AccountNumber = accountNumber - this.AccountSuffix = accountSuffix - this.BankCode = bankCode this.Type = type_ return &this } @@ -76,54 +70,6 @@ func (o *NZLocalAccountIdentification) SetAccountNumber(v string) { o.AccountNumber = v } -// GetAccountSuffix returns the AccountSuffix field value -func (o *NZLocalAccountIdentification) GetAccountSuffix() string { - if o == nil { - var ret string - return ret - } - - return o.AccountSuffix -} - -// GetAccountSuffixOk returns a tuple with the AccountSuffix field value -// and a boolean to check if the value has been set. -func (o *NZLocalAccountIdentification) GetAccountSuffixOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AccountSuffix, true -} - -// SetAccountSuffix sets field value -func (o *NZLocalAccountIdentification) SetAccountSuffix(v string) { - o.AccountSuffix = v -} - -// GetBankCode returns the BankCode field value -func (o *NZLocalAccountIdentification) GetBankCode() string { - if o == nil { - var ret string - return ret - } - - return o.BankCode -} - -// GetBankCodeOk returns a tuple with the BankCode field value -// and a boolean to check if the value has been set. -func (o *NZLocalAccountIdentification) GetBankCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BankCode, true -} - -// SetBankCode sets field value -func (o *NZLocalAccountIdentification) SetBankCode(v string) { - o.BankCode = v -} - // GetType returns the Type field value func (o *NZLocalAccountIdentification) GetType() string { if o == nil { @@ -159,8 +105,6 @@ func (o NZLocalAccountIdentification) MarshalJSON() ([]byte, error) { func (o NZLocalAccountIdentification) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["accountNumber"] = o.AccountNumber - toSerialize["accountSuffix"] = o.AccountSuffix - toSerialize["bankCode"] = o.BankCode toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/src/transfers/model_party_identification_2.go b/src/transfers/model_party_identification.go similarity index 68% rename from src/transfers/model_party_identification_2.go rename to src/transfers/model_party_identification.go index fd7fc4591..b4ed1caca 100644 --- a/src/transfers/model_party_identification_2.go +++ b/src/transfers/model_party_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,15 +11,15 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) -// checks if the PartyIdentification2 type satisfies the MappedNullable interface at compile time -var _ common.MappedNullable = &PartyIdentification2{} +// checks if the PartyIdentification type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &PartyIdentification{} -// PartyIdentification2 struct for PartyIdentification2 -type PartyIdentification2 struct { - Address *Address2 `json:"address,omitempty"` +// PartyIdentification struct for PartyIdentification +type PartyIdentification struct { + Address *Address `json:"address,omitempty"` // The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**. DateOfBirth *string `json:"dateOfBirth,omitempty"` // First name of the individual. Allowed only when `type` is **individual**. @@ -34,32 +34,32 @@ type PartyIdentification2 struct { Type *string `json:"type,omitempty"` } -// NewPartyIdentification2 instantiates a new PartyIdentification2 object +// NewPartyIdentification instantiates a new PartyIdentification 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 NewPartyIdentification2(fullName string) *PartyIdentification2 { - this := PartyIdentification2{} +func NewPartyIdentification(fullName string) *PartyIdentification { + this := PartyIdentification{} this.FullName = fullName var type_ string = "unknown" this.Type = &type_ return &this } -// NewPartyIdentification2WithDefaults instantiates a new PartyIdentification2 object +// NewPartyIdentificationWithDefaults instantiates a new PartyIdentification 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 NewPartyIdentification2WithDefaults() *PartyIdentification2 { - this := PartyIdentification2{} +func NewPartyIdentificationWithDefaults() *PartyIdentification { + this := PartyIdentification{} var type_ string = "unknown" this.Type = &type_ return &this } // GetAddress returns the Address field value if set, zero value otherwise. -func (o *PartyIdentification2) GetAddress() Address2 { +func (o *PartyIdentification) GetAddress() Address { if o == nil || common.IsNil(o.Address) { - var ret Address2 + var ret Address return ret } return *o.Address @@ -67,7 +67,7 @@ func (o *PartyIdentification2) GetAddress() Address2 { // GetAddressOk returns a tuple with the Address field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetAddressOk() (*Address2, bool) { +func (o *PartyIdentification) GetAddressOk() (*Address, bool) { if o == nil || common.IsNil(o.Address) { return nil, false } @@ -75,7 +75,7 @@ func (o *PartyIdentification2) GetAddressOk() (*Address2, bool) { } // HasAddress returns a boolean if a field has been set. -func (o *PartyIdentification2) HasAddress() bool { +func (o *PartyIdentification) HasAddress() bool { if o != nil && !common.IsNil(o.Address) { return true } @@ -83,13 +83,13 @@ func (o *PartyIdentification2) HasAddress() bool { return false } -// SetAddress gets a reference to the given Address2 and assigns it to the Address field. -func (o *PartyIdentification2) SetAddress(v Address2) { +// SetAddress gets a reference to the given Address and assigns it to the Address field. +func (o *PartyIdentification) SetAddress(v Address) { o.Address = &v } // GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise. -func (o *PartyIdentification2) GetDateOfBirth() string { +func (o *PartyIdentification) GetDateOfBirth() string { if o == nil || common.IsNil(o.DateOfBirth) { var ret string return ret @@ -99,7 +99,7 @@ func (o *PartyIdentification2) GetDateOfBirth() string { // GetDateOfBirthOk returns a tuple with the DateOfBirth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetDateOfBirthOk() (*string, bool) { +func (o *PartyIdentification) GetDateOfBirthOk() (*string, bool) { if o == nil || common.IsNil(o.DateOfBirth) { return nil, false } @@ -107,7 +107,7 @@ func (o *PartyIdentification2) GetDateOfBirthOk() (*string, bool) { } // HasDateOfBirth returns a boolean if a field has been set. -func (o *PartyIdentification2) HasDateOfBirth() bool { +func (o *PartyIdentification) HasDateOfBirth() bool { if o != nil && !common.IsNil(o.DateOfBirth) { return true } @@ -116,12 +116,12 @@ func (o *PartyIdentification2) HasDateOfBirth() bool { } // SetDateOfBirth gets a reference to the given string and assigns it to the DateOfBirth field. -func (o *PartyIdentification2) SetDateOfBirth(v string) { +func (o *PartyIdentification) SetDateOfBirth(v string) { o.DateOfBirth = &v } // GetFirstName returns the FirstName field value if set, zero value otherwise. -func (o *PartyIdentification2) GetFirstName() string { +func (o *PartyIdentification) GetFirstName() string { if o == nil || common.IsNil(o.FirstName) { var ret string return ret @@ -131,7 +131,7 @@ func (o *PartyIdentification2) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetFirstNameOk() (*string, bool) { +func (o *PartyIdentification) GetFirstNameOk() (*string, bool) { if o == nil || common.IsNil(o.FirstName) { return nil, false } @@ -139,7 +139,7 @@ func (o *PartyIdentification2) GetFirstNameOk() (*string, bool) { } // HasFirstName returns a boolean if a field has been set. -func (o *PartyIdentification2) HasFirstName() bool { +func (o *PartyIdentification) HasFirstName() bool { if o != nil && !common.IsNil(o.FirstName) { return true } @@ -148,12 +148,12 @@ func (o *PartyIdentification2) HasFirstName() bool { } // SetFirstName gets a reference to the given string and assigns it to the FirstName field. -func (o *PartyIdentification2) SetFirstName(v string) { +func (o *PartyIdentification) SetFirstName(v string) { o.FirstName = &v } // GetFullName returns the FullName field value -func (o *PartyIdentification2) GetFullName() string { +func (o *PartyIdentification) GetFullName() string { if o == nil { var ret string return ret @@ -164,7 +164,7 @@ func (o *PartyIdentification2) GetFullName() string { // GetFullNameOk returns a tuple with the FullName field value // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetFullNameOk() (*string, bool) { +func (o *PartyIdentification) GetFullNameOk() (*string, bool) { if o == nil { return nil, false } @@ -172,12 +172,12 @@ func (o *PartyIdentification2) GetFullNameOk() (*string, bool) { } // SetFullName sets field value -func (o *PartyIdentification2) SetFullName(v string) { +func (o *PartyIdentification) SetFullName(v string) { o.FullName = v } // GetLastName returns the LastName field value if set, zero value otherwise. -func (o *PartyIdentification2) GetLastName() string { +func (o *PartyIdentification) GetLastName() string { if o == nil || common.IsNil(o.LastName) { var ret string return ret @@ -187,7 +187,7 @@ func (o *PartyIdentification2) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetLastNameOk() (*string, bool) { +func (o *PartyIdentification) GetLastNameOk() (*string, bool) { if o == nil || common.IsNil(o.LastName) { return nil, false } @@ -195,7 +195,7 @@ func (o *PartyIdentification2) GetLastNameOk() (*string, bool) { } // HasLastName returns a boolean if a field has been set. -func (o *PartyIdentification2) HasLastName() bool { +func (o *PartyIdentification) HasLastName() bool { if o != nil && !common.IsNil(o.LastName) { return true } @@ -204,12 +204,12 @@ func (o *PartyIdentification2) HasLastName() bool { } // SetLastName gets a reference to the given string and assigns it to the LastName field. -func (o *PartyIdentification2) SetLastName(v string) { +func (o *PartyIdentification) SetLastName(v string) { o.LastName = &v } // GetReference returns the Reference field value if set, zero value otherwise. -func (o *PartyIdentification2) GetReference() string { +func (o *PartyIdentification) GetReference() string { if o == nil || common.IsNil(o.Reference) { var ret string return ret @@ -219,7 +219,7 @@ func (o *PartyIdentification2) GetReference() string { // GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetReferenceOk() (*string, bool) { +func (o *PartyIdentification) GetReferenceOk() (*string, bool) { if o == nil || common.IsNil(o.Reference) { return nil, false } @@ -227,7 +227,7 @@ func (o *PartyIdentification2) GetReferenceOk() (*string, bool) { } // HasReference returns a boolean if a field has been set. -func (o *PartyIdentification2) HasReference() bool { +func (o *PartyIdentification) HasReference() bool { if o != nil && !common.IsNil(o.Reference) { return true } @@ -236,12 +236,12 @@ func (o *PartyIdentification2) HasReference() bool { } // SetReference gets a reference to the given string and assigns it to the Reference field. -func (o *PartyIdentification2) SetReference(v string) { +func (o *PartyIdentification) SetReference(v string) { o.Reference = &v } // GetType returns the Type field value if set, zero value otherwise. -func (o *PartyIdentification2) GetType() string { +func (o *PartyIdentification) GetType() string { if o == nil || common.IsNil(o.Type) { var ret string return ret @@ -251,7 +251,7 @@ func (o *PartyIdentification2) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartyIdentification2) GetTypeOk() (*string, bool) { +func (o *PartyIdentification) GetTypeOk() (*string, bool) { if o == nil || common.IsNil(o.Type) { return nil, false } @@ -259,7 +259,7 @@ func (o *PartyIdentification2) GetTypeOk() (*string, bool) { } // HasType returns a boolean if a field has been set. -func (o *PartyIdentification2) HasType() bool { +func (o *PartyIdentification) HasType() bool { if o != nil && !common.IsNil(o.Type) { return true } @@ -268,11 +268,11 @@ func (o *PartyIdentification2) HasType() bool { } // SetType gets a reference to the given string and assigns it to the Type field. -func (o *PartyIdentification2) SetType(v string) { +func (o *PartyIdentification) SetType(v string) { o.Type = &v } -func (o PartyIdentification2) MarshalJSON() ([]byte, error) { +func (o PartyIdentification) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -280,7 +280,7 @@ func (o PartyIdentification2) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PartyIdentification2) ToMap() (map[string]interface{}, error) { +func (o PartyIdentification) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !common.IsNil(o.Address) { toSerialize["address"] = o.Address @@ -304,43 +304,43 @@ func (o PartyIdentification2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullablePartyIdentification2 struct { - value *PartyIdentification2 +type NullablePartyIdentification struct { + value *PartyIdentification isSet bool } -func (v NullablePartyIdentification2) Get() *PartyIdentification2 { +func (v NullablePartyIdentification) Get() *PartyIdentification { return v.value } -func (v *NullablePartyIdentification2) Set(val *PartyIdentification2) { +func (v *NullablePartyIdentification) Set(val *PartyIdentification) { v.value = val v.isSet = true } -func (v NullablePartyIdentification2) IsSet() bool { +func (v NullablePartyIdentification) IsSet() bool { return v.isSet } -func (v *NullablePartyIdentification2) Unset() { +func (v *NullablePartyIdentification) Unset() { v.value = nil v.isSet = false } -func NewNullablePartyIdentification2(val *PartyIdentification2) *NullablePartyIdentification2 { - return &NullablePartyIdentification2{value: val, isSet: true} +func NewNullablePartyIdentification(val *PartyIdentification) *NullablePartyIdentification { + return &NullablePartyIdentification{value: val, isSet: true} } -func (v NullablePartyIdentification2) MarshalJSON() ([]byte, error) { +func (v NullablePartyIdentification) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePartyIdentification2) UnmarshalJSON(src []byte) error { +func (v *NullablePartyIdentification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -func (o *PartyIdentification2) isValidType() bool { +func (o *PartyIdentification) isValidType() bool { var allowedEnumValues = []string{"individual", "organization", "unknown"} for _, allowed := range allowedEnumValues { if o.GetType() == allowed { diff --git a/src/transfers/model_payment_instrument.go b/src/transfers/model_payment_instrument.go index 76e329e1e..755e27268 100644 --- a/src/transfers/model_payment_instrument.go +++ b/src/transfers/model_payment_instrument.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrument type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_pl_local_account_identification.go b/src/transfers/model_pl_local_account_identification.go index 3156f8368..dd8f5669f 100644 --- a/src/transfers/model_pl_local_account_identification.go +++ b/src/transfers/model_pl_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PLLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_platform_payment.go b/src/transfers/model_platform_payment.go new file mode 100644 index 000000000..fb7502371 --- /dev/null +++ b/src/transfers/model_platform_payment.go @@ -0,0 +1,333 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the PlatformPayment type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &PlatformPayment{} + +// PlatformPayment struct for PlatformPayment +type PlatformPayment struct { + // The capture's merchant reference included in the transfer. + ModificationMerchantReference *string `json:"modificationMerchantReference,omitempty"` + // The capture reference included in the transfer. + ModificationPspReference *string `json:"modificationPspReference,omitempty"` + // The payment's merchant reference included in the transfer. + PaymentMerchantReference *string `json:"paymentMerchantReference,omitempty"` + // The type of the related split. + PlatformPaymentType *string `json:"platformPaymentType,omitempty"` + // The payment reference included in the transfer. + PspPaymentReference *string `json:"pspPaymentReference,omitempty"` + // **platformPayment** + Type *string `json:"type,omitempty"` +} + +// NewPlatformPayment instantiates a new PlatformPayment 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 NewPlatformPayment() *PlatformPayment { + this := PlatformPayment{} + var type_ string = "platformPayment" + this.Type = &type_ + return &this +} + +// NewPlatformPaymentWithDefaults instantiates a new PlatformPayment 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 NewPlatformPaymentWithDefaults() *PlatformPayment { + this := PlatformPayment{} + var type_ string = "platformPayment" + this.Type = &type_ + return &this +} + +// GetModificationMerchantReference returns the ModificationMerchantReference field value if set, zero value otherwise. +func (o *PlatformPayment) GetModificationMerchantReference() string { + if o == nil || common.IsNil(o.ModificationMerchantReference) { + var ret string + return ret + } + return *o.ModificationMerchantReference +} + +// GetModificationMerchantReferenceOk returns a tuple with the ModificationMerchantReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformPayment) GetModificationMerchantReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.ModificationMerchantReference) { + return nil, false + } + return o.ModificationMerchantReference, true +} + +// HasModificationMerchantReference returns a boolean if a field has been set. +func (o *PlatformPayment) HasModificationMerchantReference() bool { + if o != nil && !common.IsNil(o.ModificationMerchantReference) { + return true + } + + return false +} + +// SetModificationMerchantReference gets a reference to the given string and assigns it to the ModificationMerchantReference field. +func (o *PlatformPayment) SetModificationMerchantReference(v string) { + o.ModificationMerchantReference = &v +} + +// GetModificationPspReference returns the ModificationPspReference field value if set, zero value otherwise. +func (o *PlatformPayment) GetModificationPspReference() string { + if o == nil || common.IsNil(o.ModificationPspReference) { + var ret string + return ret + } + return *o.ModificationPspReference +} + +// GetModificationPspReferenceOk returns a tuple with the ModificationPspReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformPayment) GetModificationPspReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.ModificationPspReference) { + return nil, false + } + return o.ModificationPspReference, true +} + +// HasModificationPspReference returns a boolean if a field has been set. +func (o *PlatformPayment) HasModificationPspReference() bool { + if o != nil && !common.IsNil(o.ModificationPspReference) { + return true + } + + return false +} + +// SetModificationPspReference gets a reference to the given string and assigns it to the ModificationPspReference field. +func (o *PlatformPayment) SetModificationPspReference(v string) { + o.ModificationPspReference = &v +} + +// GetPaymentMerchantReference returns the PaymentMerchantReference field value if set, zero value otherwise. +func (o *PlatformPayment) GetPaymentMerchantReference() string { + if o == nil || common.IsNil(o.PaymentMerchantReference) { + var ret string + return ret + } + return *o.PaymentMerchantReference +} + +// GetPaymentMerchantReferenceOk returns a tuple with the PaymentMerchantReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformPayment) GetPaymentMerchantReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.PaymentMerchantReference) { + return nil, false + } + return o.PaymentMerchantReference, true +} + +// HasPaymentMerchantReference returns a boolean if a field has been set. +func (o *PlatformPayment) HasPaymentMerchantReference() bool { + if o != nil && !common.IsNil(o.PaymentMerchantReference) { + return true + } + + return false +} + +// SetPaymentMerchantReference gets a reference to the given string and assigns it to the PaymentMerchantReference field. +func (o *PlatformPayment) SetPaymentMerchantReference(v string) { + o.PaymentMerchantReference = &v +} + +// GetPlatformPaymentType returns the PlatformPaymentType field value if set, zero value otherwise. +func (o *PlatformPayment) GetPlatformPaymentType() string { + if o == nil || common.IsNil(o.PlatformPaymentType) { + var ret string + return ret + } + return *o.PlatformPaymentType +} + +// GetPlatformPaymentTypeOk returns a tuple with the PlatformPaymentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformPayment) GetPlatformPaymentTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.PlatformPaymentType) { + return nil, false + } + return o.PlatformPaymentType, true +} + +// HasPlatformPaymentType returns a boolean if a field has been set. +func (o *PlatformPayment) HasPlatformPaymentType() bool { + if o != nil && !common.IsNil(o.PlatformPaymentType) { + return true + } + + return false +} + +// SetPlatformPaymentType gets a reference to the given string and assigns it to the PlatformPaymentType field. +func (o *PlatformPayment) SetPlatformPaymentType(v string) { + o.PlatformPaymentType = &v +} + +// GetPspPaymentReference returns the PspPaymentReference field value if set, zero value otherwise. +func (o *PlatformPayment) GetPspPaymentReference() string { + if o == nil || common.IsNil(o.PspPaymentReference) { + var ret string + return ret + } + return *o.PspPaymentReference +} + +// GetPspPaymentReferenceOk returns a tuple with the PspPaymentReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformPayment) GetPspPaymentReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.PspPaymentReference) { + return nil, false + } + return o.PspPaymentReference, true +} + +// HasPspPaymentReference returns a boolean if a field has been set. +func (o *PlatformPayment) HasPspPaymentReference() bool { + if o != nil && !common.IsNil(o.PspPaymentReference) { + return true + } + + return false +} + +// SetPspPaymentReference gets a reference to the given string and assigns it to the PspPaymentReference field. +func (o *PlatformPayment) SetPspPaymentReference(v string) { + o.PspPaymentReference = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PlatformPayment) GetType() string { + if o == nil || common.IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformPayment) GetTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PlatformPayment) HasType() bool { + if o != nil && !common.IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *PlatformPayment) SetType(v string) { + o.Type = &v +} + +func (o PlatformPayment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlatformPayment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.ModificationMerchantReference) { + toSerialize["modificationMerchantReference"] = o.ModificationMerchantReference + } + if !common.IsNil(o.ModificationPspReference) { + toSerialize["modificationPspReference"] = o.ModificationPspReference + } + if !common.IsNil(o.PaymentMerchantReference) { + toSerialize["paymentMerchantReference"] = o.PaymentMerchantReference + } + if !common.IsNil(o.PlatformPaymentType) { + toSerialize["platformPaymentType"] = o.PlatformPaymentType + } + if !common.IsNil(o.PspPaymentReference) { + toSerialize["pspPaymentReference"] = o.PspPaymentReference + } + if !common.IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullablePlatformPayment struct { + value *PlatformPayment + isSet bool +} + +func (v NullablePlatformPayment) Get() *PlatformPayment { + return v.value +} + +func (v *NullablePlatformPayment) Set(val *PlatformPayment) { + v.value = val + v.isSet = true +} + +func (v NullablePlatformPayment) IsSet() bool { + return v.isSet +} + +func (v *NullablePlatformPayment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlatformPayment(val *PlatformPayment) *NullablePlatformPayment { + return &NullablePlatformPayment{value: val, isSet: true} +} + +func (v NullablePlatformPayment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlatformPayment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *PlatformPayment) isValidPlatformPaymentType() bool { + var allowedEnumValues = []string{"AcquiringFees", "AdyenCommission", "AdyenFees", "AdyenMarkup", "BalanceAccount", "Commission", "Default", "Interchange", "PaymentFee", "Remainder", "SchemeFee", "TopUp", "VAT"} + for _, allowed := range allowedEnumValues { + if o.GetPlatformPaymentType() == allowed { + return true + } + } + return false +} +func (o *PlatformPayment) isValidType() bool { + var allowedEnumValues = []string{"platformPayment"} + for _, allowed := range allowedEnumValues { + if o.GetType() == allowed { + return true + } + } + return false +} diff --git a/src/transfers/model_relayed_authorisation_data.go b/src/transfers/model_relayed_authorisation_data.go new file mode 100644 index 000000000..611e82b55 --- /dev/null +++ b/src/transfers/model_relayed_authorisation_data.go @@ -0,0 +1,162 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the RelayedAuthorisationData type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &RelayedAuthorisationData{} + +// RelayedAuthorisationData struct for RelayedAuthorisationData +type RelayedAuthorisationData struct { + // Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + Metadata *map[string]string `json:"metadata,omitempty"` + // Your reference for the relayed authorisation data. + Reference *string `json:"reference,omitempty"` +} + +// NewRelayedAuthorisationData instantiates a new RelayedAuthorisationData 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 NewRelayedAuthorisationData() *RelayedAuthorisationData { + this := RelayedAuthorisationData{} + return &this +} + +// NewRelayedAuthorisationDataWithDefaults instantiates a new RelayedAuthorisationData 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 NewRelayedAuthorisationDataWithDefaults() *RelayedAuthorisationData { + this := RelayedAuthorisationData{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *RelayedAuthorisationData) GetMetadata() map[string]string { + if o == nil || common.IsNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelayedAuthorisationData) GetMetadataOk() (*map[string]string, bool) { + if o == nil || common.IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *RelayedAuthorisationData) HasMetadata() bool { + if o != nil && !common.IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *RelayedAuthorisationData) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetReference returns the Reference field value if set, zero value otherwise. +func (o *RelayedAuthorisationData) GetReference() string { + if o == nil || common.IsNil(o.Reference) { + var ret string + return ret + } + return *o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelayedAuthorisationData) GetReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.Reference) { + return nil, false + } + return o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *RelayedAuthorisationData) HasReference() bool { + if o != nil && !common.IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given string and assigns it to the Reference field. +func (o *RelayedAuthorisationData) SetReference(v string) { + o.Reference = &v +} + +func (o RelayedAuthorisationData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RelayedAuthorisationData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !common.IsNil(o.Reference) { + toSerialize["reference"] = o.Reference + } + return toSerialize, nil +} + +type NullableRelayedAuthorisationData struct { + value *RelayedAuthorisationData + isSet bool +} + +func (v NullableRelayedAuthorisationData) Get() *RelayedAuthorisationData { + return v.value +} + +func (v *NullableRelayedAuthorisationData) Set(val *RelayedAuthorisationData) { + v.value = val + v.isSet = true +} + +func (v NullableRelayedAuthorisationData) IsSet() bool { + return v.isSet +} + +func (v *NullableRelayedAuthorisationData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelayedAuthorisationData(val *RelayedAuthorisationData) *NullableRelayedAuthorisationData { + return &NullableRelayedAuthorisationData{value: val, isSet: true} +} + +func (v NullableRelayedAuthorisationData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelayedAuthorisationData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/transfers/model_repayment.go b/src/transfers/model_repayment.go index da7e47e94..d679df965 100644 --- a/src/transfers/model_repayment.go +++ b/src/transfers/model_repayment.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Repayment type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_repayment_term.go b/src/transfers/model_repayment_term.go index 3eec8a274..8aca5b777 100644 --- a/src/transfers/model_repayment_term.go +++ b/src/transfers/model_repayment_term.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RepaymentTerm type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_resource_reference.go b/src/transfers/model_resource_reference.go index 14b8f1243..f35d8822c 100644 --- a/src/transfers/model_resource_reference.go +++ b/src/transfers/model_resource_reference.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResourceReference type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_rest_service_error.go b/src/transfers/model_rest_service_error.go index d1a239f84..9f0cb1bf4 100644 --- a/src/transfers/model_rest_service_error.go +++ b/src/transfers/model_rest_service_error.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RestServiceError type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_return_transfer_request.go b/src/transfers/model_return_transfer_request.go new file mode 100644 index 000000000..74bcd3f79 --- /dev/null +++ b/src/transfers/model_return_transfer_request.go @@ -0,0 +1,152 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the ReturnTransferRequest type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &ReturnTransferRequest{} + +// ReturnTransferRequest struct for ReturnTransferRequest +type ReturnTransferRequest struct { + Amount Amount `json:"amount"` + // Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + Reference *string `json:"reference,omitempty"` +} + +// NewReturnTransferRequest instantiates a new ReturnTransferRequest 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 NewReturnTransferRequest(amount Amount) *ReturnTransferRequest { + this := ReturnTransferRequest{} + this.Amount = amount + return &this +} + +// NewReturnTransferRequestWithDefaults instantiates a new ReturnTransferRequest 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 NewReturnTransferRequestWithDefaults() *ReturnTransferRequest { + this := ReturnTransferRequest{} + return &this +} + +// GetAmount returns the Amount field value +func (o *ReturnTransferRequest) GetAmount() Amount { + if o == nil { + var ret Amount + return ret + } + + return o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value +// and a boolean to check if the value has been set. +func (o *ReturnTransferRequest) GetAmountOk() (*Amount, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *ReturnTransferRequest) SetAmount(v Amount) { + o.Amount = v +} + +// GetReference returns the Reference field value if set, zero value otherwise. +func (o *ReturnTransferRequest) GetReference() string { + if o == nil || common.IsNil(o.Reference) { + var ret string + return ret + } + return *o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnTransferRequest) GetReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.Reference) { + return nil, false + } + return o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *ReturnTransferRequest) HasReference() bool { + if o != nil && !common.IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given string and assigns it to the Reference field. +func (o *ReturnTransferRequest) SetReference(v string) { + o.Reference = &v +} + +func (o ReturnTransferRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReturnTransferRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["amount"] = o.Amount + if !common.IsNil(o.Reference) { + toSerialize["reference"] = o.Reference + } + return toSerialize, nil +} + +type NullableReturnTransferRequest struct { + value *ReturnTransferRequest + isSet bool +} + +func (v NullableReturnTransferRequest) Get() *ReturnTransferRequest { + return v.value +} + +func (v *NullableReturnTransferRequest) Set(val *ReturnTransferRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReturnTransferRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReturnTransferRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReturnTransferRequest(val *ReturnTransferRequest) *NullableReturnTransferRequest { + return &NullableReturnTransferRequest{value: val, isSet: true} +} + +func (v NullableReturnTransferRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReturnTransferRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/transfers/model_return_transfer_response.go b/src/transfers/model_return_transfer_response.go new file mode 100644 index 000000000..7de4c37bf --- /dev/null +++ b/src/transfers/model_return_transfer_response.go @@ -0,0 +1,246 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the ReturnTransferResponse type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &ReturnTransferResponse{} + +// ReturnTransferResponse struct for ReturnTransferResponse +type ReturnTransferResponse struct { + // The unique identifier of the return. + Id *string `json:"id,omitempty"` + // Your internal reference for the return. + Reference *string `json:"reference,omitempty"` + // The resulting status of the return. For example: **authorised**, **booked**, **error**. + Status *string `json:"status,omitempty"` + // The unique identifier of the original transfer. + TransferId *string `json:"transferId,omitempty"` +} + +// NewReturnTransferResponse instantiates a new ReturnTransferResponse 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 NewReturnTransferResponse() *ReturnTransferResponse { + this := ReturnTransferResponse{} + return &this +} + +// NewReturnTransferResponseWithDefaults instantiates a new ReturnTransferResponse 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 NewReturnTransferResponseWithDefaults() *ReturnTransferResponse { + this := ReturnTransferResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ReturnTransferResponse) GetId() string { + if o == nil || common.IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnTransferResponse) GetIdOk() (*string, bool) { + if o == nil || common.IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ReturnTransferResponse) HasId() bool { + if o != nil && !common.IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ReturnTransferResponse) SetId(v string) { + o.Id = &v +} + +// GetReference returns the Reference field value if set, zero value otherwise. +func (o *ReturnTransferResponse) GetReference() string { + if o == nil || common.IsNil(o.Reference) { + var ret string + return ret + } + return *o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnTransferResponse) GetReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.Reference) { + return nil, false + } + return o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *ReturnTransferResponse) HasReference() bool { + if o != nil && !common.IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given string and assigns it to the Reference field. +func (o *ReturnTransferResponse) SetReference(v string) { + o.Reference = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ReturnTransferResponse) GetStatus() string { + if o == nil || common.IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnTransferResponse) GetStatusOk() (*string, bool) { + if o == nil || common.IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ReturnTransferResponse) HasStatus() bool { + if o != nil && !common.IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *ReturnTransferResponse) SetStatus(v string) { + o.Status = &v +} + +// GetTransferId returns the TransferId field value if set, zero value otherwise. +func (o *ReturnTransferResponse) GetTransferId() string { + if o == nil || common.IsNil(o.TransferId) { + var ret string + return ret + } + return *o.TransferId +} + +// GetTransferIdOk returns a tuple with the TransferId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnTransferResponse) GetTransferIdOk() (*string, bool) { + if o == nil || common.IsNil(o.TransferId) { + return nil, false + } + return o.TransferId, true +} + +// HasTransferId returns a boolean if a field has been set. +func (o *ReturnTransferResponse) HasTransferId() bool { + if o != nil && !common.IsNil(o.TransferId) { + return true + } + + return false +} + +// SetTransferId gets a reference to the given string and assigns it to the TransferId field. +func (o *ReturnTransferResponse) SetTransferId(v string) { + o.TransferId = &v +} + +func (o ReturnTransferResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReturnTransferResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !common.IsNil(o.Reference) { + toSerialize["reference"] = o.Reference + } + if !common.IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !common.IsNil(o.TransferId) { + toSerialize["transferId"] = o.TransferId + } + return toSerialize, nil +} + +type NullableReturnTransferResponse struct { + value *ReturnTransferResponse + isSet bool +} + +func (v NullableReturnTransferResponse) Get() *ReturnTransferResponse { + return v.value +} + +func (v *NullableReturnTransferResponse) Set(val *ReturnTransferResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReturnTransferResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReturnTransferResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReturnTransferResponse(val *ReturnTransferResponse) *NullableReturnTransferResponse { + return &NullableReturnTransferResponse{value: val, isSet: true} +} + +func (v NullableReturnTransferResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReturnTransferResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +func (o *ReturnTransferResponse) isValidStatus() bool { + var allowedEnumValues = []string{"Authorised", "Declined"} + for _, allowed := range allowedEnumValues { + if o.GetStatus() == allowed { + return true + } + } + return false +} diff --git a/src/transfers/model_se_local_account_identification.go b/src/transfers/model_se_local_account_identification.go index 3d86666e6..4c6b2a357 100644 --- a/src/transfers/model_se_local_account_identification.go +++ b/src/transfers/model_se_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SELocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_service_error.go b/src/transfers/model_service_error.go new file mode 100644 index 000000000..6187b7d3e --- /dev/null +++ b/src/transfers/model_service_error.go @@ -0,0 +1,273 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the ServiceError type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &ServiceError{} + +// ServiceError struct for ServiceError +type ServiceError struct { + // The error code mapped to the error message. + ErrorCode *string `json:"errorCode,omitempty"` + // The category of the error. + ErrorType *string `json:"errorType,omitempty"` + // A short explanation of the issue. + Message *string `json:"message,omitempty"` + // The PSP reference of the payment. + PspReference *string `json:"pspReference,omitempty"` + // The HTTP response status. + Status *int32 `json:"status,omitempty"` +} + +// NewServiceError instantiates a new ServiceError 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 NewServiceError() *ServiceError { + this := ServiceError{} + return &this +} + +// NewServiceErrorWithDefaults instantiates a new ServiceError 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 NewServiceErrorWithDefaults() *ServiceError { + this := ServiceError{} + return &this +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *ServiceError) GetErrorCode() string { + if o == nil || common.IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetErrorCodeOk() (*string, bool) { + if o == nil || common.IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *ServiceError) HasErrorCode() bool { + if o != nil && !common.IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *ServiceError) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorType returns the ErrorType field value if set, zero value otherwise. +func (o *ServiceError) GetErrorType() string { + if o == nil || common.IsNil(o.ErrorType) { + var ret string + return ret + } + return *o.ErrorType +} + +// GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetErrorTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.ErrorType) { + return nil, false + } + return o.ErrorType, true +} + +// HasErrorType returns a boolean if a field has been set. +func (o *ServiceError) HasErrorType() bool { + if o != nil && !common.IsNil(o.ErrorType) { + return true + } + + return false +} + +// SetErrorType gets a reference to the given string and assigns it to the ErrorType field. +func (o *ServiceError) SetErrorType(v string) { + o.ErrorType = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ServiceError) GetMessage() string { + if o == nil || common.IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetMessageOk() (*string, bool) { + if o == nil || common.IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ServiceError) HasMessage() bool { + if o != nil && !common.IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ServiceError) SetMessage(v string) { + o.Message = &v +} + +// GetPspReference returns the PspReference field value if set, zero value otherwise. +func (o *ServiceError) GetPspReference() string { + if o == nil || common.IsNil(o.PspReference) { + var ret string + return ret + } + return *o.PspReference +} + +// GetPspReferenceOk returns a tuple with the PspReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetPspReferenceOk() (*string, bool) { + if o == nil || common.IsNil(o.PspReference) { + return nil, false + } + return o.PspReference, true +} + +// HasPspReference returns a boolean if a field has been set. +func (o *ServiceError) HasPspReference() bool { + if o != nil && !common.IsNil(o.PspReference) { + return true + } + + return false +} + +// SetPspReference gets a reference to the given string and assigns it to the PspReference field. +func (o *ServiceError) SetPspReference(v string) { + o.PspReference = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ServiceError) GetStatus() int32 { + if o == nil || common.IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceError) GetStatusOk() (*int32, bool) { + if o == nil || common.IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ServiceError) HasStatus() bool { + if o != nil && !common.IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ServiceError) SetStatus(v int32) { + o.Status = &v +} + +func (o ServiceError) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !common.IsNil(o.ErrorType) { + toSerialize["errorType"] = o.ErrorType + } + if !common.IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !common.IsNil(o.PspReference) { + toSerialize["pspReference"] = o.PspReference + } + if !common.IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableServiceError struct { + value *ServiceError + isSet bool +} + +func (v NullableServiceError) Get() *ServiceError { + return v.value +} + +func (v *NullableServiceError) Set(val *ServiceError) { + v.value = val + v.isSet = true +} + +func (v NullableServiceError) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceError(val *ServiceError) *NullableServiceError { + return &NullableServiceError{value: val, isSet: true} +} + +func (v NullableServiceError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/transfers/model_sg_local_account_identification.go b/src/transfers/model_sg_local_account_identification.go index 7e92c1ae3..4395eb6cf 100644 --- a/src/transfers/model_sg_local_account_identification.go +++ b/src/transfers/model_sg_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SGLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_threshold_repayment.go b/src/transfers/model_threshold_repayment.go index 1e5701091..1756c77b4 100644 --- a/src/transfers/model_threshold_repayment.go +++ b/src/transfers/model_threshold_repayment.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ThresholdRepayment type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_transaction.go b/src/transfers/model_transaction.go index f3840b73b..fe1de6f4c 100644 --- a/src/transfers/model_transaction.go +++ b/src/transfers/model_transaction.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Transaction type satisfies the MappedNullable interface at compile time @@ -20,41 +20,22 @@ var _ common.MappedNullable = &Transaction{} // Transaction struct for Transaction type Transaction struct { - // Unique identifier of the account holder. - AccountHolderId string `json:"accountHolderId"` - Amount Amount `json:"amount"` - // Unique identifier of the balance account. - BalanceAccountId string `json:"balanceAccountId"` - // Unique identifier of the balance platform. + AccountHolder ResourceReference `json:"accountHolder"` + Amount Amount `json:"amount"` + BalanceAccount ResourceReference `json:"balanceAccount"` + // The unique identifier of the balance platform. BalancePlatform string `json:"balancePlatform"` - // The date the transaction was booked to the balance account. + // The date the transaction was booked into the balance account. BookingDate time.Time `json:"bookingDate"` - // The category of the transaction indicating the type of activity. Possible values: * **platformPayment**: The transaction is a payment or payment modification made with an Adyen merchant account. * **internal**: The transaction resulted from an internal adjustment such as a deposit correction or invoice deduction. * **bank**: The transaction is a bank-related activity, such as sending a payout or receiving funds. * **issuedCard**: The transaction is a card-related activity, such as using an Adyen-issued card to pay online. - Category *string `json:"category,omitempty"` - Counterparty CounterpartyV3 `json:"counterparty"` - // The date the transaction was created. - CreatedAt time.Time `json:"createdAt"` // The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. CreationDate *time.Time `json:"creationDate,omitempty"` - // The `description` from the `/transfers` request. - Description *string `json:"description,omitempty"` - // The PSP reference in the journal. + // The PSP reference of the transaction in the journal. EventId *string `json:"eventId,omitempty"` - // Unique identifier of the transaction. - Id string `json:"id"` - InstructedAmount *Amount `json:"instructedAmount,omitempty"` - // Unique identifier of the payment instrument that was used for the transaction. - PaymentInstrumentId *string `json:"paymentInstrumentId,omitempty"` - // The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. - Reference string `json:"reference"` - // The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. - ReferenceForBeneficiary *string `json:"referenceForBeneficiary,omitempty"` + // The unique identifier of the transaction. + Id string `json:"id"` // The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. - Status string `json:"status"` - // Unique identifier of the related transfer. - TransferId *string `json:"transferId,omitempty"` - // The type of the transaction. Possible values: **payment**, **capture**, **captureReversal**, **refund** **refundReversal**, **chargeback**, **chargebackReversal**, **secondChargeback**, **atmWithdrawal**, **atmWithdrawalReversal**, **internalTransfer**, **manualCorrection**, **invoiceDeduction**, **depositCorrection**, **bankTransfer**, **miscCost**, **paymentCost**, **fee** - Type *string `json:"type,omitempty"` + Status string `json:"status"` + Transfer *TransferData `json:"transfer,omitempty"` // The date the transfer amount becomes available in the balance account. ValueDate time.Time `json:"valueDate"` } @@ -63,17 +44,14 @@ type Transaction 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 NewTransaction(accountHolderId string, amount Amount, balanceAccountId string, balancePlatform string, bookingDate time.Time, counterparty CounterpartyV3, createdAt time.Time, id string, reference string, status string, valueDate time.Time) *Transaction { +func NewTransaction(accountHolder ResourceReference, amount Amount, balanceAccount ResourceReference, balancePlatform string, bookingDate time.Time, id string, status string, valueDate time.Time) *Transaction { this := Transaction{} - this.AccountHolderId = accountHolderId + this.AccountHolder = accountHolder this.Amount = amount - this.BalanceAccountId = balanceAccountId + this.BalanceAccount = balanceAccount this.BalancePlatform = balancePlatform this.BookingDate = bookingDate - this.Counterparty = counterparty - this.CreatedAt = createdAt this.Id = id - this.Reference = reference this.Status = status this.ValueDate = valueDate return &this @@ -87,28 +65,28 @@ func NewTransactionWithDefaults() *Transaction { return &this } -// GetAccountHolderId returns the AccountHolderId field value -func (o *Transaction) GetAccountHolderId() string { +// GetAccountHolder returns the AccountHolder field value +func (o *Transaction) GetAccountHolder() ResourceReference { if o == nil { - var ret string + var ret ResourceReference return ret } - return o.AccountHolderId + return o.AccountHolder } -// GetAccountHolderIdOk returns a tuple with the AccountHolderId field value +// GetAccountHolderOk returns a tuple with the AccountHolder field value // and a boolean to check if the value has been set. -func (o *Transaction) GetAccountHolderIdOk() (*string, bool) { +func (o *Transaction) GetAccountHolderOk() (*ResourceReference, bool) { if o == nil { return nil, false } - return &o.AccountHolderId, true + return &o.AccountHolder, true } -// SetAccountHolderId sets field value -func (o *Transaction) SetAccountHolderId(v string) { - o.AccountHolderId = v +// SetAccountHolder sets field value +func (o *Transaction) SetAccountHolder(v ResourceReference) { + o.AccountHolder = v } // GetAmount returns the Amount field value @@ -135,28 +113,28 @@ func (o *Transaction) SetAmount(v Amount) { o.Amount = v } -// GetBalanceAccountId returns the BalanceAccountId field value -func (o *Transaction) GetBalanceAccountId() string { +// GetBalanceAccount returns the BalanceAccount field value +func (o *Transaction) GetBalanceAccount() ResourceReference { if o == nil { - var ret string + var ret ResourceReference return ret } - return o.BalanceAccountId + return o.BalanceAccount } -// GetBalanceAccountIdOk returns a tuple with the BalanceAccountId field value +// GetBalanceAccountOk returns a tuple with the BalanceAccount field value // and a boolean to check if the value has been set. -func (o *Transaction) GetBalanceAccountIdOk() (*string, bool) { +func (o *Transaction) GetBalanceAccountOk() (*ResourceReference, bool) { if o == nil { return nil, false } - return &o.BalanceAccountId, true + return &o.BalanceAccount, true } -// SetBalanceAccountId sets field value -func (o *Transaction) SetBalanceAccountId(v string) { - o.BalanceAccountId = v +// SetBalanceAccount sets field value +func (o *Transaction) SetBalanceAccount(v ResourceReference) { + o.BalanceAccount = v } // GetBalancePlatform returns the BalancePlatform field value @@ -207,86 +185,6 @@ func (o *Transaction) SetBookingDate(v time.Time) { o.BookingDate = v } -// GetCategory returns the Category field value if set, zero value otherwise. -func (o *Transaction) GetCategory() string { - if o == nil || common.IsNil(o.Category) { - var ret string - return ret - } - return *o.Category -} - -// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Transaction) GetCategoryOk() (*string, bool) { - if o == nil || common.IsNil(o.Category) { - return nil, false - } - return o.Category, true -} - -// HasCategory returns a boolean if a field has been set. -func (o *Transaction) HasCategory() bool { - if o != nil && !common.IsNil(o.Category) { - return true - } - - return false -} - -// SetCategory gets a reference to the given string and assigns it to the Category field. -func (o *Transaction) SetCategory(v string) { - o.Category = &v -} - -// GetCounterparty returns the Counterparty field value -func (o *Transaction) GetCounterparty() CounterpartyV3 { - if o == nil { - var ret CounterpartyV3 - return ret - } - - return o.Counterparty -} - -// GetCounterpartyOk returns a tuple with the Counterparty field value -// and a boolean to check if the value has been set. -func (o *Transaction) GetCounterpartyOk() (*CounterpartyV3, bool) { - if o == nil { - return nil, false - } - return &o.Counterparty, true -} - -// SetCounterparty sets field value -func (o *Transaction) SetCounterparty(v CounterpartyV3) { - o.Counterparty = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *Transaction) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *Transaction) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *Transaction) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - // GetCreationDate returns the CreationDate field value if set, zero value otherwise. func (o *Transaction) GetCreationDate() time.Time { if o == nil || common.IsNil(o.CreationDate) { @@ -319,38 +217,6 @@ func (o *Transaction) SetCreationDate(v time.Time) { o.CreationDate = &v } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *Transaction) 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 *Transaction) 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 *Transaction) 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 *Transaction) SetDescription(v string) { - o.Description = &v -} - // GetEventId returns the EventId field value if set, zero value otherwise. func (o *Transaction) GetEventId() string { if o == nil || common.IsNil(o.EventId) { @@ -407,126 +273,6 @@ func (o *Transaction) SetId(v string) { o.Id = v } -// GetInstructedAmount returns the InstructedAmount field value if set, zero value otherwise. -func (o *Transaction) GetInstructedAmount() Amount { - if o == nil || common.IsNil(o.InstructedAmount) { - var ret Amount - return ret - } - return *o.InstructedAmount -} - -// GetInstructedAmountOk returns a tuple with the InstructedAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Transaction) GetInstructedAmountOk() (*Amount, bool) { - if o == nil || common.IsNil(o.InstructedAmount) { - return nil, false - } - return o.InstructedAmount, true -} - -// HasInstructedAmount returns a boolean if a field has been set. -func (o *Transaction) HasInstructedAmount() bool { - if o != nil && !common.IsNil(o.InstructedAmount) { - return true - } - - return false -} - -// SetInstructedAmount gets a reference to the given Amount and assigns it to the InstructedAmount field. -func (o *Transaction) SetInstructedAmount(v Amount) { - o.InstructedAmount = &v -} - -// GetPaymentInstrumentId returns the PaymentInstrumentId field value if set, zero value otherwise. -func (o *Transaction) GetPaymentInstrumentId() string { - if o == nil || common.IsNil(o.PaymentInstrumentId) { - var ret string - return ret - } - return *o.PaymentInstrumentId -} - -// GetPaymentInstrumentIdOk returns a tuple with the PaymentInstrumentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Transaction) GetPaymentInstrumentIdOk() (*string, bool) { - if o == nil || common.IsNil(o.PaymentInstrumentId) { - return nil, false - } - return o.PaymentInstrumentId, true -} - -// HasPaymentInstrumentId returns a boolean if a field has been set. -func (o *Transaction) HasPaymentInstrumentId() bool { - if o != nil && !common.IsNil(o.PaymentInstrumentId) { - return true - } - - return false -} - -// SetPaymentInstrumentId gets a reference to the given string and assigns it to the PaymentInstrumentId field. -func (o *Transaction) SetPaymentInstrumentId(v string) { - o.PaymentInstrumentId = &v -} - -// GetReference returns the Reference field value -func (o *Transaction) GetReference() string { - if o == nil { - var ret string - return ret - } - - return o.Reference -} - -// GetReferenceOk returns a tuple with the Reference field value -// and a boolean to check if the value has been set. -func (o *Transaction) GetReferenceOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Reference, true -} - -// SetReference sets field value -func (o *Transaction) SetReference(v string) { - o.Reference = v -} - -// GetReferenceForBeneficiary returns the ReferenceForBeneficiary field value if set, zero value otherwise. -func (o *Transaction) GetReferenceForBeneficiary() string { - if o == nil || common.IsNil(o.ReferenceForBeneficiary) { - var ret string - return ret - } - return *o.ReferenceForBeneficiary -} - -// GetReferenceForBeneficiaryOk returns a tuple with the ReferenceForBeneficiary field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Transaction) GetReferenceForBeneficiaryOk() (*string, bool) { - if o == nil || common.IsNil(o.ReferenceForBeneficiary) { - return nil, false - } - return o.ReferenceForBeneficiary, true -} - -// HasReferenceForBeneficiary returns a boolean if a field has been set. -func (o *Transaction) HasReferenceForBeneficiary() bool { - if o != nil && !common.IsNil(o.ReferenceForBeneficiary) { - return true - } - - return false -} - -// SetReferenceForBeneficiary gets a reference to the given string and assigns it to the ReferenceForBeneficiary field. -func (o *Transaction) SetReferenceForBeneficiary(v string) { - o.ReferenceForBeneficiary = &v -} - // GetStatus returns the Status field value func (o *Transaction) GetStatus() string { if o == nil { @@ -551,68 +297,36 @@ func (o *Transaction) SetStatus(v string) { o.Status = v } -// GetTransferId returns the TransferId field value if set, zero value otherwise. -func (o *Transaction) GetTransferId() string { - if o == nil || common.IsNil(o.TransferId) { - var ret string +// GetTransfer returns the Transfer field value if set, zero value otherwise. +func (o *Transaction) GetTransfer() TransferData { + if o == nil || common.IsNil(o.Transfer) { + var ret TransferData return ret } - return *o.TransferId + return *o.Transfer } -// GetTransferIdOk returns a tuple with the TransferId field value if set, nil otherwise +// GetTransferOk returns a tuple with the Transfer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Transaction) GetTransferIdOk() (*string, bool) { - if o == nil || common.IsNil(o.TransferId) { +func (o *Transaction) GetTransferOk() (*TransferData, bool) { + if o == nil || common.IsNil(o.Transfer) { return nil, false } - return o.TransferId, true + return o.Transfer, true } -// HasTransferId returns a boolean if a field has been set. -func (o *Transaction) HasTransferId() bool { - if o != nil && !common.IsNil(o.TransferId) { +// HasTransfer returns a boolean if a field has been set. +func (o *Transaction) HasTransfer() bool { + if o != nil && !common.IsNil(o.Transfer) { return true } return false } -// SetTransferId gets a reference to the given string and assigns it to the TransferId field. -func (o *Transaction) SetTransferId(v string) { - o.TransferId = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *Transaction) GetType() string { - if o == nil || common.IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Transaction) GetTypeOk() (*string, bool) { - if o == nil || common.IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *Transaction) HasType() bool { - if o != nil && !common.IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *Transaction) SetType(v string) { - o.Type = &v +// SetTransfer gets a reference to the given TransferData and assigns it to the Transfer field. +func (o *Transaction) SetTransfer(v TransferData) { + o.Transfer = &v } // GetValueDate returns the ValueDate field value @@ -649,42 +363,21 @@ func (o Transaction) MarshalJSON() ([]byte, error) { func (o Transaction) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["accountHolderId"] = o.AccountHolderId + toSerialize["accountHolder"] = o.AccountHolder toSerialize["amount"] = o.Amount - toSerialize["balanceAccountId"] = o.BalanceAccountId + toSerialize["balanceAccount"] = o.BalanceAccount toSerialize["balancePlatform"] = o.BalancePlatform toSerialize["bookingDate"] = o.BookingDate - if !common.IsNil(o.Category) { - toSerialize["category"] = o.Category - } - toSerialize["counterparty"] = o.Counterparty - toSerialize["createdAt"] = o.CreatedAt if !common.IsNil(o.CreationDate) { toSerialize["creationDate"] = o.CreationDate } - if !common.IsNil(o.Description) { - toSerialize["description"] = o.Description - } if !common.IsNil(o.EventId) { toSerialize["eventId"] = o.EventId } toSerialize["id"] = o.Id - if !common.IsNil(o.InstructedAmount) { - toSerialize["instructedAmount"] = o.InstructedAmount - } - if !common.IsNil(o.PaymentInstrumentId) { - toSerialize["paymentInstrumentId"] = o.PaymentInstrumentId - } - toSerialize["reference"] = o.Reference - if !common.IsNil(o.ReferenceForBeneficiary) { - toSerialize["referenceForBeneficiary"] = o.ReferenceForBeneficiary - } toSerialize["status"] = o.Status - if !common.IsNil(o.TransferId) { - toSerialize["transferId"] = o.TransferId - } - if !common.IsNil(o.Type) { - toSerialize["type"] = o.Type + if !common.IsNil(o.Transfer) { + toSerialize["transfer"] = o.Transfer } toSerialize["valueDate"] = o.ValueDate return toSerialize, nil @@ -726,15 +419,6 @@ func (v *NullableTransaction) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } -func (o *Transaction) isValidCategory() bool { - var allowedEnumValues = []string{"bank", "card", "grants", "internal", "issuedCard", "migration", "platformPayment"} - for _, allowed := range allowedEnumValues { - if o.GetCategory() == allowed { - return true - } - } - return false -} func (o *Transaction) isValidStatus() bool { var allowedEnumValues = []string{"booked", "pending"} for _, allowed := range allowedEnumValues { @@ -744,12 +428,3 @@ func (o *Transaction) isValidStatus() bool { } return false } -func (o *Transaction) isValidType() bool { - var allowedEnumValues = []string{"atmWithdrawal", "atmWithdrawalReversal", "balanceAdjustment", "balanceRollover", "bankTransfer", "capture", "captureReversal", "cardTransfer", "chargeback", "chargebackReversal", "depositCorrection", "fee", "grant", "installment", "installmentReversal", "internalTransfer", "invoiceDeduction", "leftover", "manualCorrection", "miscCost", "payment", "paymentCost", "refund", "refundReversal", "repayment", "reserveAdjustment", "secondChargeback"} - for _, allowed := range allowedEnumValues { - if o.GetType() == allowed { - return true - } - } - return false -} diff --git a/src/transfers/model_transaction_search_response.go b/src/transfers/model_transaction_search_response.go index 82787a3f1..7cfa40f92 100644 --- a/src/transfers/model_transaction_search_response.go +++ b/src/transfers/model_transaction_search_response.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionSearchResponse type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_transfer.go b/src/transfers/model_transfer.go index ba54ff674..0d532f3aa 100644 --- a/src/transfers/model_transfer.go +++ b/src/transfers/model_transfer.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Transfer type satisfies the MappedNullable interface at compile time @@ -23,12 +23,10 @@ type Transfer struct { AccountHolder *ResourceReference `json:"accountHolder,omitempty"` Amount Amount `json:"amount"` BalanceAccount *ResourceReference `json:"balanceAccount,omitempty"` - // The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - // Deprecated - BalanceAccountId *string `json:"balanceAccountId,omitempty"` - // The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. - Category string `json:"category"` - Counterparty CounterpartyV3 `json:"counterparty"` + // The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + Category string `json:"category"` + CategoryData *TransferCategoryData `json:"categoryData,omitempty"` + Counterparty CounterpartyV3 `json:"counterparty"` // The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. CreationDate *time.Time `json:"creationDate,omitempty"` // Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** @@ -38,11 +36,6 @@ type Transfer struct { // The ID of the resource. Id *string `json:"id,omitempty"` PaymentInstrument *PaymentInstrument `json:"paymentInstrument,omitempty"` - // The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) used in the transfer. - // Deprecated - PaymentInstrumentId *string `json:"paymentInstrumentId,omitempty"` - // The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). - Priority *string `json:"priority,omitempty"` // Additional information about the status of the transfer. Reason *string `json:"reason,omitempty"` // Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. @@ -162,41 +155,6 @@ func (o *Transfer) SetBalanceAccount(v ResourceReference) { o.BalanceAccount = &v } -// GetBalanceAccountId returns the BalanceAccountId field value if set, zero value otherwise. -// Deprecated -func (o *Transfer) GetBalanceAccountId() string { - if o == nil || common.IsNil(o.BalanceAccountId) { - var ret string - return ret - } - return *o.BalanceAccountId -} - -// GetBalanceAccountIdOk returns a tuple with the BalanceAccountId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *Transfer) GetBalanceAccountIdOk() (*string, bool) { - if o == nil || common.IsNil(o.BalanceAccountId) { - return nil, false - } - return o.BalanceAccountId, true -} - -// HasBalanceAccountId returns a boolean if a field has been set. -func (o *Transfer) HasBalanceAccountId() bool { - if o != nil && !common.IsNil(o.BalanceAccountId) { - return true - } - - return false -} - -// SetBalanceAccountId gets a reference to the given string and assigns it to the BalanceAccountId field. -// Deprecated -func (o *Transfer) SetBalanceAccountId(v string) { - o.BalanceAccountId = &v -} - // GetCategory returns the Category field value func (o *Transfer) GetCategory() string { if o == nil { @@ -221,6 +179,38 @@ func (o *Transfer) SetCategory(v string) { o.Category = v } +// GetCategoryData returns the CategoryData field value if set, zero value otherwise. +func (o *Transfer) GetCategoryData() TransferCategoryData { + if o == nil || common.IsNil(o.CategoryData) { + var ret TransferCategoryData + return ret + } + return *o.CategoryData +} + +// GetCategoryDataOk returns a tuple with the CategoryData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Transfer) GetCategoryDataOk() (*TransferCategoryData, bool) { + if o == nil || common.IsNil(o.CategoryData) { + return nil, false + } + return o.CategoryData, true +} + +// HasCategoryData returns a boolean if a field has been set. +func (o *Transfer) HasCategoryData() bool { + if o != nil && !common.IsNil(o.CategoryData) { + return true + } + + return false +} + +// SetCategoryData gets a reference to the given TransferCategoryData and assigns it to the CategoryData field. +func (o *Transfer) SetCategoryData(v TransferCategoryData) { + o.CategoryData = &v +} + // GetCounterparty returns the Counterparty field value func (o *Transfer) GetCounterparty() CounterpartyV3 { if o == nil { @@ -405,73 +395,6 @@ func (o *Transfer) SetPaymentInstrument(v PaymentInstrument) { o.PaymentInstrument = &v } -// GetPaymentInstrumentId returns the PaymentInstrumentId field value if set, zero value otherwise. -// Deprecated -func (o *Transfer) GetPaymentInstrumentId() string { - if o == nil || common.IsNil(o.PaymentInstrumentId) { - var ret string - return ret - } - return *o.PaymentInstrumentId -} - -// GetPaymentInstrumentIdOk returns a tuple with the PaymentInstrumentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *Transfer) GetPaymentInstrumentIdOk() (*string, bool) { - if o == nil || common.IsNil(o.PaymentInstrumentId) { - return nil, false - } - return o.PaymentInstrumentId, true -} - -// HasPaymentInstrumentId returns a boolean if a field has been set. -func (o *Transfer) HasPaymentInstrumentId() bool { - if o != nil && !common.IsNil(o.PaymentInstrumentId) { - return true - } - - return false -} - -// SetPaymentInstrumentId gets a reference to the given string and assigns it to the PaymentInstrumentId field. -// Deprecated -func (o *Transfer) SetPaymentInstrumentId(v string) { - o.PaymentInstrumentId = &v -} - -// GetPriority returns the Priority field value if set, zero value otherwise. -func (o *Transfer) GetPriority() string { - if o == nil || common.IsNil(o.Priority) { - var ret string - return ret - } - return *o.Priority -} - -// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Transfer) GetPriorityOk() (*string, bool) { - if o == nil || common.IsNil(o.Priority) { - return nil, false - } - return o.Priority, true -} - -// HasPriority returns a boolean if a field has been set. -func (o *Transfer) HasPriority() bool { - if o != nil && !common.IsNil(o.Priority) { - return true - } - - return false -} - -// SetPriority gets a reference to the given string and assigns it to the Priority field. -func (o *Transfer) SetPriority(v string) { - o.Priority = &v -} - // GetReason returns the Reason field value if set, zero value otherwise. func (o *Transfer) GetReason() string { if o == nil || common.IsNil(o.Reason) { @@ -609,10 +532,10 @@ func (o Transfer) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.BalanceAccount) { toSerialize["balanceAccount"] = o.BalanceAccount } - if !common.IsNil(o.BalanceAccountId) { - toSerialize["balanceAccountId"] = o.BalanceAccountId - } toSerialize["category"] = o.Category + if !common.IsNil(o.CategoryData) { + toSerialize["categoryData"] = o.CategoryData + } toSerialize["counterparty"] = o.Counterparty if !common.IsNil(o.CreationDate) { toSerialize["creationDate"] = o.CreationDate @@ -629,12 +552,6 @@ func (o Transfer) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.PaymentInstrument) { toSerialize["paymentInstrument"] = o.PaymentInstrument } - if !common.IsNil(o.PaymentInstrumentId) { - toSerialize["paymentInstrumentId"] = o.PaymentInstrumentId - } - if !common.IsNil(o.Priority) { - toSerialize["priority"] = o.Priority - } if !common.IsNil(o.Reason) { toSerialize["reason"] = o.Reason } @@ -702,17 +619,8 @@ func (o *Transfer) isValidDirection() bool { } return false } -func (o *Transfer) isValidPriority() bool { - var allowedEnumValues = []string{"crossBorder", "directDebit", "fast", "instant", "internal", "regular", "wire"} - for _, allowed := range allowedEnumValues { - if o.GetPriority() == allowed { - return true - } - } - return false -} func (o *Transfer) isValidReason() bool { - var allowedEnumValues = []string{"amountLimitExceeded", "approved", "counterpartyAccountBlocked", "counterpartyAccountClosed", "counterpartyAccountNotFound", "counterpartyAddressRequired", "counterpartyBankTimedOut", "counterpartyBankUnavailable", "error", "notEnoughBalance", "refusedByCounterpartyBank", "routeNotFound", "unknown"} + var allowedEnumValues = []string{"amountLimitExceeded", "approved", "balanceAccountTemporarilyBlockedByTransactionRule", "counterpartyAccountBlocked", "counterpartyAccountClosed", "counterpartyAccountNotFound", "counterpartyAddressRequired", "counterpartyBankTimedOut", "counterpartyBankUnavailable", "declinedByTransactionRule", "error", "notEnoughBalance", "refusedByCounterpartyBank", "routeNotFound", "scaFailed", "unknown"} for _, allowed := range allowedEnumValues { if o.GetReason() == allowed { return true @@ -721,7 +629,7 @@ func (o *Transfer) isValidReason() bool { return false } func (o *Transfer) isValidStatus() bool { - var allowedEnumValues = []string{"approvalPending", "atmWithdrawal", "atmWithdrawalReversalPending", "atmWithdrawalReversed", "authAdjustmentAuthorised", "authAdjustmentError", "authAdjustmentRefused", "authorised", "bankTransfer", "bankTransferPending", "booked", "bookingPending", "cancelled", "capturePending", "captureReversalPending", "captureReversed", "captured", "capturedExternally", "chargeback", "chargebackExternally", "chargebackPending", "chargebackReversalPending", "chargebackReversed", "credited", "depositCorrection", "depositCorrectionPending", "dispute", "disputeClosed", "disputeExpired", "disputeNeedsReview", "error", "expired", "failed", "fee", "feePending", "internalTransfer", "internalTransferPending", "invoiceDeduction", "invoiceDeductionPending", "manualCorrectionPending", "manuallyCorrected", "matchedStatement", "matchedStatementPending", "merchantPayin", "merchantPayinPending", "merchantPayinReversed", "merchantPayinReversedPending", "miscCost", "miscCostPending", "operationAuthorized", "operationBooked", "operationPending", "operationReceived", "paymentCost", "paymentCostPending", "received", "refundPending", "refundReversalPending", "refundReversed", "refunded", "refundedExternally", "refused", "reserveAdjustment", "reserveAdjustmentPending", "returned", "secondChargeback", "secondChargebackPending", "undefined"} + var allowedEnumValues = []string{"approvalPending", "atmWithdrawal", "atmWithdrawalReversalPending", "atmWithdrawalReversed", "authAdjustmentAuthorised", "authAdjustmentError", "authAdjustmentRefused", "authorised", "bankTransfer", "bankTransferPending", "booked", "bookingPending", "cancelled", "capturePending", "captureReversalPending", "captureReversed", "captured", "capturedExternally", "chargeback", "chargebackExternally", "chargebackPending", "chargebackReversalPending", "chargebackReversed", "credited", "depositCorrection", "depositCorrectionPending", "dispute", "disputeClosed", "disputeExpired", "disputeNeedsReview", "error", "expired", "failed", "fee", "feePending", "internalTransfer", "internalTransferPending", "invoiceDeduction", "invoiceDeductionPending", "manualCorrectionPending", "manuallyCorrected", "matchedStatement", "matchedStatementPending", "merchantPayin", "merchantPayinPending", "merchantPayinReversed", "merchantPayinReversedPending", "miscCost", "miscCostPending", "paymentCost", "paymentCostPending", "received", "refundPending", "refundReversalPending", "refundReversed", "refunded", "refundedExternally", "refused", "reserveAdjustment", "reserveAdjustmentPending", "returned", "secondChargeback", "secondChargebackPending", "undefined"} for _, allowed := range allowedEnumValues { if o.GetStatus() == allowed { return true diff --git a/src/transfers/model_transfer_category_data.go b/src/transfers/model_transfer_category_data.go new file mode 100644 index 000000000..2bd14af25 --- /dev/null +++ b/src/transfers/model_transfer_category_data.go @@ -0,0 +1,203 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + "fmt" +) + +// TransferCategoryData - The relevant data according to the transfer category. +type TransferCategoryData struct { + BankCategoryData *BankCategoryData + InternalCategoryData *InternalCategoryData + IssuedCard *IssuedCard + PlatformPayment *PlatformPayment +} + +// BankCategoryDataAsTransferCategoryData is a convenience function that returns BankCategoryData wrapped in TransferCategoryData +func BankCategoryDataAsTransferCategoryData(v *BankCategoryData) TransferCategoryData { + return TransferCategoryData{ + BankCategoryData: v, + } +} + +// InternalCategoryDataAsTransferCategoryData is a convenience function that returns InternalCategoryData wrapped in TransferCategoryData +func InternalCategoryDataAsTransferCategoryData(v *InternalCategoryData) TransferCategoryData { + return TransferCategoryData{ + InternalCategoryData: v, + } +} + +// IssuedCardAsTransferCategoryData is a convenience function that returns IssuedCard wrapped in TransferCategoryData +func IssuedCardAsTransferCategoryData(v *IssuedCard) TransferCategoryData { + return TransferCategoryData{ + IssuedCard: v, + } +} + +// PlatformPaymentAsTransferCategoryData is a convenience function that returns PlatformPayment wrapped in TransferCategoryData +func PlatformPaymentAsTransferCategoryData(v *PlatformPayment) TransferCategoryData { + return TransferCategoryData{ + PlatformPayment: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *TransferCategoryData) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into BankCategoryData + err = json.Unmarshal(data, &dst.BankCategoryData) + if err == nil { + jsonBankCategoryData, _ := json.Marshal(dst.BankCategoryData) + if string(jsonBankCategoryData) == "{}" || !dst.BankCategoryData.isValidType() { // empty struct + dst.BankCategoryData = nil + } else { + match++ + } + } else { + dst.BankCategoryData = nil + } + + // try to unmarshal data into InternalCategoryData + err = json.Unmarshal(data, &dst.InternalCategoryData) + if err == nil { + jsonInternalCategoryData, _ := json.Marshal(dst.InternalCategoryData) + if string(jsonInternalCategoryData) == "{}" || !dst.InternalCategoryData.isValidType() { // empty struct + dst.InternalCategoryData = nil + } else { + match++ + } + } else { + dst.InternalCategoryData = nil + } + + // try to unmarshal data into IssuedCard + err = json.Unmarshal(data, &dst.IssuedCard) + if err == nil { + jsonIssuedCard, _ := json.Marshal(dst.IssuedCard) + if string(jsonIssuedCard) == "{}" || !dst.IssuedCard.isValidType() { // empty struct + dst.IssuedCard = nil + } else { + match++ + } + } else { + dst.IssuedCard = nil + } + + // try to unmarshal data into PlatformPayment + err = json.Unmarshal(data, &dst.PlatformPayment) + if err == nil { + jsonPlatformPayment, _ := json.Marshal(dst.PlatformPayment) + if string(jsonPlatformPayment) == "{}" || !dst.PlatformPayment.isValidType() { // empty struct + dst.PlatformPayment = nil + } else { + match++ + } + } else { + dst.PlatformPayment = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.BankCategoryData = nil + dst.InternalCategoryData = nil + dst.IssuedCard = nil + dst.PlatformPayment = nil + + return fmt.Errorf("data matches more than one schema in oneOf(TransferCategoryData)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(TransferCategoryData)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src TransferCategoryData) MarshalJSON() ([]byte, error) { + if src.BankCategoryData != nil { + return json.Marshal(&src.BankCategoryData) + } + + if src.InternalCategoryData != nil { + return json.Marshal(&src.InternalCategoryData) + } + + if src.IssuedCard != nil { + return json.Marshal(&src.IssuedCard) + } + + if src.PlatformPayment != nil { + return json.Marshal(&src.PlatformPayment) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *TransferCategoryData) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.BankCategoryData != nil { + return obj.BankCategoryData + } + + if obj.InternalCategoryData != nil { + return obj.InternalCategoryData + } + + if obj.IssuedCard != nil { + return obj.IssuedCard + } + + if obj.PlatformPayment != nil { + return obj.PlatformPayment + } + + // all schemas are nil + return nil +} + +type NullableTransferCategoryData struct { + value *TransferCategoryData + isSet bool +} + +func (v NullableTransferCategoryData) Get() *TransferCategoryData { + return v.value +} + +func (v *NullableTransferCategoryData) Set(val *TransferCategoryData) { + v.value = val + v.isSet = true +} + +func (v NullableTransferCategoryData) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferCategoryData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferCategoryData(val *TransferCategoryData) *NullableTransferCategoryData { + return &NullableTransferCategoryData{value: val, isSet: true} +} + +func (v NullableTransferCategoryData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferCategoryData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/transfers/model_transfer_data.go b/src/transfers/model_transfer_data.go new file mode 100644 index 000000000..505030479 --- /dev/null +++ b/src/transfers/model_transfer_data.go @@ -0,0 +1,153 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the TransferData type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TransferData{} + +// TransferData struct for TransferData +type TransferData struct { + // The ID of the resource. + Id *string `json:"id,omitempty"` + // The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + Reference string `json:"reference"` +} + +// NewTransferData instantiates a new TransferData 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 NewTransferData(reference string) *TransferData { + this := TransferData{} + this.Reference = reference + return &this +} + +// NewTransferDataWithDefaults instantiates a new TransferData 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 NewTransferDataWithDefaults() *TransferData { + this := TransferData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TransferData) GetId() string { + if o == nil || common.IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferData) GetIdOk() (*string, bool) { + if o == nil || common.IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TransferData) HasId() bool { + if o != nil && !common.IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *TransferData) SetId(v string) { + o.Id = &v +} + +// GetReference returns the Reference field value +func (o *TransferData) GetReference() string { + if o == nil { + var ret string + return ret + } + + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value +// and a boolean to check if the value has been set. +func (o *TransferData) GetReferenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reference, true +} + +// SetReference sets field value +func (o *TransferData) SetReference(v string) { + o.Reference = v +} + +func (o TransferData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Id) { + toSerialize["id"] = o.Id + } + toSerialize["reference"] = o.Reference + return toSerialize, nil +} + +type NullableTransferData struct { + value *TransferData + isSet bool +} + +func (v NullableTransferData) Get() *TransferData { + return v.value +} + +func (v *NullableTransferData) Set(val *TransferData) { + v.value = val + v.isSet = true +} + +func (v NullableTransferData) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferData(val *TransferData) *NullableTransferData { + return &NullableTransferData{value: val, isSet: true} +} + +func (v NullableTransferData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/transfers/model_transfer_info.go b/src/transfers/model_transfer_info.go index 583e624ff..53a86feae 100644 --- a/src/transfers/model_transfer_info.go +++ b/src/transfers/model_transfer_info.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferInfo type satisfies the MappedNullable interface at compile time @@ -27,8 +27,6 @@ type TransferInfo struct { Counterparty CounterpartyInfoV3 `json:"counterparty"` // Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** Description *string `json:"description,omitempty"` - // The ID of the resource. - Id *string `json:"id,omitempty"` // The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id). PaymentInstrumentId *string `json:"paymentInstrumentId,omitempty"` // The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). @@ -196,38 +194,6 @@ func (o *TransferInfo) SetDescription(v string) { o.Description = &v } -// GetId returns the Id field value if set, zero value otherwise. -func (o *TransferInfo) GetId() string { - if o == nil || common.IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransferInfo) GetIdOk() (*string, bool) { - if o == nil || common.IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TransferInfo) HasId() bool { - if o != nil && !common.IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *TransferInfo) SetId(v string) { - o.Id = &v -} - // GetPaymentInstrumentId returns the PaymentInstrumentId field value if set, zero value otherwise. func (o *TransferInfo) GetPaymentInstrumentId() string { if o == nil || common.IsNil(o.PaymentInstrumentId) { @@ -407,9 +373,6 @@ func (o TransferInfo) ToMap() (map[string]interface{}, error) { if !common.IsNil(o.Description) { toSerialize["description"] = o.Description } - if !common.IsNil(o.Id) { - toSerialize["id"] = o.Id - } if !common.IsNil(o.PaymentInstrumentId) { toSerialize["paymentInstrumentId"] = o.PaymentInstrumentId } @@ -474,7 +437,7 @@ func (o *TransferInfo) isValidCategory() bool { return false } func (o *TransferInfo) isValidPriority() bool { - var allowedEnumValues = []string{"crossBorder", "directDebit", "fast", "instant", "internal", "regular", "wire"} + var allowedEnumValues = []string{"crossBorder", "fast", "instant", "internal", "regular", "wire"} for _, allowed := range allowedEnumValues { if o.GetPriority() == allowed { return true diff --git a/src/transfers/model_transfer_notification_validation_fact.go b/src/transfers/model_transfer_notification_validation_fact.go new file mode 100644 index 000000000..55458d8a9 --- /dev/null +++ b/src/transfers/model_transfer_notification_validation_fact.go @@ -0,0 +1,162 @@ +/* +Transfers API + +API version: 4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package transfers + +import ( + "encoding/json" + + "github.com/adyen/adyen-go-api-library/v8/src/common" +) + +// checks if the TransferNotificationValidationFact type satisfies the MappedNullable interface at compile time +var _ common.MappedNullable = &TransferNotificationValidationFact{} + +// TransferNotificationValidationFact struct for TransferNotificationValidationFact +type TransferNotificationValidationFact struct { + // The evaluation result of the validation fact. + Result *string `json:"result,omitempty"` + // The type of the validation fact. + Type *string `json:"type,omitempty"` +} + +// NewTransferNotificationValidationFact instantiates a new TransferNotificationValidationFact 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 NewTransferNotificationValidationFact() *TransferNotificationValidationFact { + this := TransferNotificationValidationFact{} + return &this +} + +// NewTransferNotificationValidationFactWithDefaults instantiates a new TransferNotificationValidationFact 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 NewTransferNotificationValidationFactWithDefaults() *TransferNotificationValidationFact { + this := TransferNotificationValidationFact{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *TransferNotificationValidationFact) GetResult() string { + if o == nil || common.IsNil(o.Result) { + var ret string + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferNotificationValidationFact) GetResultOk() (*string, bool) { + if o == nil || common.IsNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *TransferNotificationValidationFact) HasResult() bool { + if o != nil && !common.IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given string and assigns it to the Result field. +func (o *TransferNotificationValidationFact) SetResult(v string) { + o.Result = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *TransferNotificationValidationFact) GetType() string { + if o == nil || common.IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransferNotificationValidationFact) GetTypeOk() (*string, bool) { + if o == nil || common.IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *TransferNotificationValidationFact) HasType() bool { + if o != nil && !common.IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *TransferNotificationValidationFact) SetType(v string) { + o.Type = &v +} + +func (o TransferNotificationValidationFact) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferNotificationValidationFact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !common.IsNil(o.Result) { + toSerialize["result"] = o.Result + } + if !common.IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableTransferNotificationValidationFact struct { + value *TransferNotificationValidationFact + isSet bool +} + +func (v NullableTransferNotificationValidationFact) Get() *TransferNotificationValidationFact { + return v.value +} + +func (v *NullableTransferNotificationValidationFact) Set(val *TransferNotificationValidationFact) { + v.value = val + v.isSet = true +} + +func (v NullableTransferNotificationValidationFact) IsSet() bool { + return v.isSet +} + +func (v *NullableTransferNotificationValidationFact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransferNotificationValidationFact(val *TransferNotificationValidationFact) *NullableTransferNotificationValidationFact { + return &NullableTransferNotificationValidationFact{value: val, isSet: true} +} + +func (v NullableTransferNotificationValidationFact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransferNotificationValidationFact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/src/transfers/model_uk_local_account_identification.go b/src/transfers/model_uk_local_account_identification.go index c345fdad7..41599e706 100644 --- a/src/transfers/model_uk_local_account_identification.go +++ b/src/transfers/model_uk_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transfers/model_ultimate_party_identification.go b/src/transfers/model_ultimate_party_identification.go index fc895397a..e42e47d9f 100644 --- a/src/transfers/model_ultimate_party_identification.go +++ b/src/transfers/model_ultimate_party_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UltimatePartyIdentification type satisfies the MappedNullable interface at compile time @@ -19,7 +19,7 @@ var _ common.MappedNullable = &UltimatePartyIdentification{} // UltimatePartyIdentification struct for UltimatePartyIdentification type UltimatePartyIdentification struct { - Address *Address2 `json:"address,omitempty"` + Address *Address `json:"address,omitempty"` // The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**. DateOfBirth *string `json:"dateOfBirth,omitempty"` // First name of the individual. Allowed only when `type` is **individual**. @@ -57,9 +57,9 @@ func NewUltimatePartyIdentificationWithDefaults() *UltimatePartyIdentification { } // GetAddress returns the Address field value if set, zero value otherwise. -func (o *UltimatePartyIdentification) GetAddress() Address2 { +func (o *UltimatePartyIdentification) GetAddress() Address { if o == nil || common.IsNil(o.Address) { - var ret Address2 + var ret Address return ret } return *o.Address @@ -67,7 +67,7 @@ func (o *UltimatePartyIdentification) GetAddress() Address2 { // GetAddressOk returns a tuple with the Address field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UltimatePartyIdentification) GetAddressOk() (*Address2, bool) { +func (o *UltimatePartyIdentification) GetAddressOk() (*Address, bool) { if o == nil || common.IsNil(o.Address) { return nil, false } @@ -83,8 +83,8 @@ func (o *UltimatePartyIdentification) HasAddress() bool { return false } -// SetAddress gets a reference to the given Address2 and assigns it to the Address field. -func (o *UltimatePartyIdentification) SetAddress(v Address2) { +// SetAddress gets a reference to the given Address and assigns it to the Address field. +func (o *UltimatePartyIdentification) SetAddress(v Address) { o.Address = &v } diff --git a/src/transfers/model_us_local_account_identification.go b/src/transfers/model_us_local_account_identification.go index 9787d9b99..1086c2d4f 100644 --- a/src/transfers/model_us_local_account_identification.go +++ b/src/transfers/model_us_local_account_identification.go @@ -1,7 +1,7 @@ /* Transfers API -API version: 3 +API version: 4 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,7 @@ package transfers import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the USLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/client.go b/src/transferwebhook/client.go index 3f726f1d4..7f9f0c651 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/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the Transfer webhooks API v3 diff --git a/src/transferwebhook/model_additional_bank_identification.go b/src/transferwebhook/model_additional_bank_identification.go index a4f13e3ef..122183baf 100644 --- a/src/transferwebhook/model_additional_bank_identification.go +++ b/src/transferwebhook/model_additional_bank_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AdditionalBankIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_address.go b/src/transferwebhook/model_address.go index 48087c531..3b09c42a2 100644 --- a/src/transferwebhook/model_address.go +++ b/src/transferwebhook/model_address.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Address type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_amount.go b/src/transferwebhook/model_amount.go index 9a0f3442f..96a6753f0 100644 --- a/src/transferwebhook/model_amount.go +++ b/src/transferwebhook/model_amount.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Amount type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_amount_adjustment.go b/src/transferwebhook/model_amount_adjustment.go index 63fa18a76..556344e5b 100644 --- a/src/transferwebhook/model_amount_adjustment.go +++ b/src/transferwebhook/model_amount_adjustment.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AmountAdjustment type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_au_local_account_identification.go b/src/transferwebhook/model_au_local_account_identification.go index b7f4c64ec..05cb5e3ee 100644 --- a/src/transferwebhook/model_au_local_account_identification.go +++ b/src/transferwebhook/model_au_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the AULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_balance_mutation.go b/src/transferwebhook/model_balance_mutation.go index b6b7c2622..b38a6897f 100644 --- a/src/transferwebhook/model_balance_mutation.go +++ b/src/transferwebhook/model_balance_mutation.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalanceMutation type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_balance_platform_notification_response.go b/src/transferwebhook/model_balance_platform_notification_response.go index bc4f8e7fa..2ec7cd2ad 100644 --- a/src/transferwebhook/model_balance_platform_notification_response.go +++ b/src/transferwebhook/model_balance_platform_notification_response.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BalancePlatformNotificationResponse type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_bank_account_v3.go b/src/transferwebhook/model_bank_account_v3.go index a719e43e7..0c3fc99eb 100644 --- a/src/transferwebhook/model_bank_account_v3.go +++ b/src/transferwebhook/model_bank_account_v3.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BankAccountV3 type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_br_local_account_identification.go b/src/transferwebhook/model_br_local_account_identification.go index 424ce2cc6..c4bd58d9e 100644 --- a/src/transferwebhook/model_br_local_account_identification.go +++ b/src/transferwebhook/model_br_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the BRLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_ca_local_account_identification.go b/src/transferwebhook/model_ca_local_account_identification.go index 870554938..1383521ce 100644 --- a/src/transferwebhook/model_ca_local_account_identification.go +++ b/src/transferwebhook/model_ca_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CALocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_counterparty_v3.go b/src/transferwebhook/model_counterparty_v3.go index 262ea589e..1eafb0b6b 100644 --- a/src/transferwebhook/model_counterparty_v3.go +++ b/src/transferwebhook/model_counterparty_v3.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CounterpartyV3 type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_cz_local_account_identification.go b/src/transferwebhook/model_cz_local_account_identification.go index eee7fa507..7f213aae2 100644 --- a/src/transferwebhook/model_cz_local_account_identification.go +++ b/src/transferwebhook/model_cz_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the CZLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_dk_local_account_identification.go b/src/transferwebhook/model_dk_local_account_identification.go index af4561a44..590e580e3 100644 --- a/src/transferwebhook/model_dk_local_account_identification.go +++ b/src/transferwebhook/model_dk_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the DKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_hk_local_account_identification.go b/src/transferwebhook/model_hk_local_account_identification.go index b0c4feca3..76d2cdaeb 100644 --- a/src/transferwebhook/model_hk_local_account_identification.go +++ b/src/transferwebhook/model_hk_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_hu_local_account_identification.go b/src/transferwebhook/model_hu_local_account_identification.go index 9f46c1ae2..96640f236 100644 --- a/src/transferwebhook/model_hu_local_account_identification.go +++ b/src/transferwebhook/model_hu_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the HULocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_iban_account_identification.go b/src/transferwebhook/model_iban_account_identification.go index dc8221043..6e77c6c7d 100644 --- a/src/transferwebhook/model_iban_account_identification.go +++ b/src/transferwebhook/model_iban_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the IbanAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_merchant_data.go b/src/transferwebhook/model_merchant_data.go index 69d316a2d..080d913d1 100644 --- a/src/transferwebhook/model_merchant_data.go +++ b/src/transferwebhook/model_merchant_data.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the MerchantData type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_name_location.go b/src/transferwebhook/model_name_location.go index 459bd7f2c..e32271476 100644 --- a/src/transferwebhook/model_name_location.go +++ b/src/transferwebhook/model_name_location.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NameLocation type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_no_local_account_identification.go b/src/transferwebhook/model_no_local_account_identification.go index 2551c2bc1..10f077f3d 100644 --- a/src/transferwebhook/model_no_local_account_identification.go +++ b/src/transferwebhook/model_no_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NOLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_number_and_bic_account_identification.go b/src/transferwebhook/model_number_and_bic_account_identification.go index 51c04bda6..a30964dcc 100644 --- a/src/transferwebhook/model_number_and_bic_account_identification.go +++ b/src/transferwebhook/model_number_and_bic_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NumberAndBicAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_nz_local_account_identification.go b/src/transferwebhook/model_nz_local_account_identification.go index 275cea1be..6261840aa 100644 --- a/src/transferwebhook/model_nz_local_account_identification.go +++ b/src/transferwebhook/model_nz_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the NZLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_party_identification.go b/src/transferwebhook/model_party_identification.go index 676a4b04b..1db60e5a9 100644 --- a/src/transferwebhook/model_party_identification.go +++ b/src/transferwebhook/model_party_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PartyIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_payment_instrument.go b/src/transferwebhook/model_payment_instrument.go index 75b0941d6..9de2b2089 100644 --- a/src/transferwebhook/model_payment_instrument.go +++ b/src/transferwebhook/model_payment_instrument.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PaymentInstrument type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_pl_local_account_identification.go b/src/transferwebhook/model_pl_local_account_identification.go index 3727f05d2..448cfb849 100644 --- a/src/transferwebhook/model_pl_local_account_identification.go +++ b/src/transferwebhook/model_pl_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the PLLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_relayed_authorisation_data.go b/src/transferwebhook/model_relayed_authorisation_data.go index 18804b846..44fbcf92a 100644 --- a/src/transferwebhook/model_relayed_authorisation_data.go +++ b/src/transferwebhook/model_relayed_authorisation_data.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the RelayedAuthorisationData type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_resource.go b/src/transferwebhook/model_resource.go index 32580f5d8..85a8725b4 100644 --- a/src/transferwebhook/model_resource.go +++ b/src/transferwebhook/model_resource.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the Resource type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_resource_reference.go b/src/transferwebhook/model_resource_reference.go index 565aa2bb7..71e524f70 100644 --- a/src/transferwebhook/model_resource_reference.go +++ b/src/transferwebhook/model_resource_reference.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the ResourceReference type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_se_local_account_identification.go b/src/transferwebhook/model_se_local_account_identification.go index 09db743c1..146f13365 100644 --- a/src/transferwebhook/model_se_local_account_identification.go +++ b/src/transferwebhook/model_se_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SELocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_sg_local_account_identification.go b/src/transferwebhook/model_sg_local_account_identification.go index a09f371b8..f35c56212 100644 --- a/src/transferwebhook/model_sg_local_account_identification.go +++ b/src/transferwebhook/model_sg_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the SGLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transaction_event_violation.go b/src/transferwebhook/model_transaction_event_violation.go index cfae6fa48..9bf9db1d6 100644 --- a/src/transferwebhook/model_transaction_event_violation.go +++ b/src/transferwebhook/model_transaction_event_violation.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionEventViolation type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transaction_rule_reference.go b/src/transferwebhook/model_transaction_rule_reference.go index e446ebe61..4f795d3ff 100644 --- a/src/transferwebhook/model_transaction_rule_reference.go +++ b/src/transferwebhook/model_transaction_rule_reference.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleReference type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transaction_rule_source.go b/src/transferwebhook/model_transaction_rule_source.go index 77dd6dddf..379e75f19 100644 --- a/src/transferwebhook/model_transaction_rule_source.go +++ b/src/transferwebhook/model_transaction_rule_source.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRuleSource type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transaction_rules_result.go b/src/transferwebhook/model_transaction_rules_result.go index c3d70bc18..0468d481a 100644 --- a/src/transferwebhook/model_transaction_rules_result.go +++ b/src/transferwebhook/model_transaction_rules_result.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransactionRulesResult type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_data.go b/src/transferwebhook/model_transfer_data.go index 1f52c3bef..29ee0af56 100644 --- a/src/transferwebhook/model_transfer_data.go +++ b/src/transferwebhook/model_transfer_data.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferData type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_event.go b/src/transferwebhook/model_transfer_event.go index 8a8c3f6b9..2f1ec1613 100644 --- a/src/transferwebhook/model_transfer_event.go +++ b/src/transferwebhook/model_transfer_event.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferEvent type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_notification_data.go b/src/transferwebhook/model_transfer_notification_data.go index 48923d092..b25df1d86 100644 --- a/src/transferwebhook/model_transfer_notification_data.go +++ b/src/transferwebhook/model_transfer_notification_data.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferNotificationData type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_notification_request.go b/src/transferwebhook/model_transfer_notification_request.go index e0d4c3c31..df09ce6fb 100644 --- a/src/transferwebhook/model_transfer_notification_request.go +++ b/src/transferwebhook/model_transfer_notification_request.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferNotificationRequest type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_notification_transfer_tracking.go b/src/transferwebhook/model_transfer_notification_transfer_tracking.go index 88319da31..1c6673738 100644 --- a/src/transferwebhook/model_transfer_notification_transfer_tracking.go +++ b/src/transferwebhook/model_transfer_notification_transfer_tracking.go @@ -12,7 +12,7 @@ import ( "encoding/json" "time" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferNotificationTransferTracking type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_notification_validation_fact.go b/src/transferwebhook/model_transfer_notification_validation_fact.go index 72fd6c8dc..e3c9e050c 100644 --- a/src/transferwebhook/model_transfer_notification_validation_fact.go +++ b/src/transferwebhook/model_transfer_notification_validation_fact.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferNotificationValidationFact type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_transfer_operation.go b/src/transferwebhook/model_transfer_operation.go index 2de5dcd67..f42af7f99 100644 --- a/src/transferwebhook/model_transfer_operation.go +++ b/src/transferwebhook/model_transfer_operation.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the TransferOperation type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_uk_local_account_identification.go b/src/transferwebhook/model_uk_local_account_identification.go index 1e418cdf1..51f2181c8 100644 --- a/src/transferwebhook/model_uk_local_account_identification.go +++ b/src/transferwebhook/model_uk_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the UKLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/src/transferwebhook/model_us_local_account_identification.go b/src/transferwebhook/model_us_local_account_identification.go index 91bf3c5dd..df4be937f 100644 --- a/src/transferwebhook/model_us_local_account_identification.go +++ b/src/transferwebhook/model_us_local_account_identification.go @@ -11,7 +11,7 @@ package transferwebhook import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // checks if the USLocalAccountIdentification type satisfies the MappedNullable interface at compile time diff --git a/templates/custom/api.mustache b/templates/custom/api.mustache index 049ccd215..f8366ce5d 100644 --- a/templates/custom/api.mustache +++ b/templates/custom/api.mustache @@ -9,7 +9,7 @@ import ( "net/http" "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // {{classname}} service diff --git a/templates/custom/client.mustache b/templates/custom/client.mustache index 1e364fb14..794fde36c 100644 --- a/templates/custom/client.mustache +++ b/templates/custom/client.mustache @@ -2,7 +2,7 @@ package {{packageName}} import ( - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // APIClient manages communication with the {{appName}} API v{{version}} diff --git a/templates/custom/model.mustache b/templates/custom/model.mustache index 2b0fb4d0a..d3b911482 100644 --- a/templates/custom/model.mustache +++ b/templates/custom/model.mustache @@ -4,7 +4,7 @@ package {{packageName}} {{#models}} import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" {{#imports}} "{{import}}" {{/imports}} diff --git a/templates/custom/rest_api.mustache b/templates/custom/rest_api.mustache index 14d372593..61ae35823 100644 --- a/templates/custom/rest_api.mustache +++ b/templates/custom/rest_api.mustache @@ -9,7 +9,7 @@ import ( _nethttp "net/http" "net/url" "strings" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/common" ) // {{classname}} {{classname}} service diff --git a/tests/api_modifications_test.go b/tests/api_modifications_test.go index b0e27348f..aecd1a469 100644 --- a/tests/api_modifications_test.go +++ b/tests/api_modifications_test.go @@ -2,9 +2,9 @@ package tests import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/balancecontrol_test.go b/tests/balancecontrol_test.go index 8964fd01f..279bfd541 100644 --- a/tests/balancecontrol_test.go +++ b/tests/balancecontrol_test.go @@ -2,14 +2,14 @@ package tests import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/balancecontrol" + "github.com/adyen/adyen-go-api-library/v8/src/balancecontrol" "io" "net/http" "net/http/httptest" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -45,16 +45,16 @@ func Test_BalanceControl(t *testing.T) { client.BalanceControl().BasePath = func() string { return mockServer.URL } service := client.BalanceControl() - t.Run("Configuration", func(t *testing.T) { - testClient := adyen.NewClient(&common.Config{ - Environment: common.TestEnv, - }) - assert.Equal(t, "https://pal-test.adyen.com/pal/servlet/BalanceControl/v1", testClient.BalanceControl().BasePath()) - liveClient := adyen.NewClient(&common.Config{ - Environment: common.LiveEnv, - }) - assert.Equal(t, "https://pal-live.adyen.com/pal/servlet/BalanceControl/v1", liveClient.BalanceControl().BasePath()) - }) + t.Run("Configuration", func(t *testing.T) { + testClient := adyen.NewClient(&common.Config{ + Environment: common.TestEnv, + }) + assert.Equal(t, "https://pal-test.adyen.com/pal/servlet/BalanceControl/v1", testClient.BalanceControl().BasePath()) + liveClient := adyen.NewClient(&common.Config{ + Environment: common.LiveEnv, + }) + assert.Equal(t, "https://pal-live.adyen.com/pal/servlet/BalanceControl/v1", liveClient.BalanceControl().BasePath()) + }) t.Run("Start a balance transfer", func(t *testing.T) { request := service.BalanceTransferInput().BalanceTransferRequest(balancecontrol.BalanceTransferRequest{ diff --git a/tests/balanceplatform_acs_webhooks_handler_test.go b/tests/balanceplatform_acs_webhooks_handler_test.go index 0a96995fe..3498b9bff 100644 --- a/tests/balanceplatform_acs_webhooks_handler_test.go +++ b/tests/balanceplatform_acs_webhooks_handler_test.go @@ -1,7 +1,7 @@ package tests import ( - "github.com/adyen/adyen-go-api-library/v7/src/acswebhook" + "github.com/adyen/adyen-go-api-library/v8/src/acswebhook" "testing" "github.com/stretchr/testify/assert" diff --git a/tests/balanceplatform_configuration_webhooks_handler_test.go b/tests/balanceplatform_configuration_webhooks_handler_test.go index a4a1c0ef9..95f783648 100644 --- a/tests/balanceplatform_configuration_webhooks_handler_test.go +++ b/tests/balanceplatform_configuration_webhooks_handler_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" // "github.com///testify/require" - "github.com/adyen/adyen-go-api-library/v7/src/configurationwebhook" + "github.com/adyen/adyen-go-api-library/v8/src/configurationwebhook" ) func Test_BalancePlatform_Configuration_Webhooks_HandleRequest(t *testing.T) { diff --git a/tests/balanceplatform_report_webhooks_handler_test.go b/tests/balanceplatform_report_webhooks_handler_test.go index 300b1dd89..19daada61 100644 --- a/tests/balanceplatform_report_webhooks_handler_test.go +++ b/tests/balanceplatform_report_webhooks_handler_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/adyen/adyen-go-api-library/v7/src/reportwebhook" + "github.com/adyen/adyen-go-api-library/v8/src/reportwebhook" ) func Test_BalancePlatform_Report_Webhooks_HandleRequest(t *testing.T) { diff --git a/tests/balanceplatform_test.go b/tests/balanceplatform_test.go index 6327540c0..251b0218d 100644 --- a/tests/balanceplatform_test.go +++ b/tests/balanceplatform_test.go @@ -3,9 +3,9 @@ package tests import ( "context" "errors" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/balanceplatform" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/balanceplatform" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "io" @@ -154,7 +154,7 @@ func Test_BalancePlatform(t *testing.T) { t.Run("Gateway Timeout error", func(t *testing.T) { req := service.BalanceAccountsApi.CreateBalanceAccountInput().BalanceAccountInfo(balanceplatform.BalanceAccountInfo{ AccountHolderId: "AH123ABC", - Description: common.PtrString("S.Hopper - Main balance account"), + Description: common.PtrString("S.Hopper - Main balance account"), }) _, httpRes, err := service.BalanceAccountsApi.CreateBalanceAccount(context.Background(), req) diff --git a/tests/balanceplatform_transfer_webhooks_handler_test.go b/tests/balanceplatform_transfer_webhooks_handler_test.go index 1d2de7cb0..47a5d57df 100644 --- a/tests/balanceplatform_transfer_webhooks_handler_test.go +++ b/tests/balanceplatform_transfer_webhooks_handler_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/adyen/adyen-go-api-library/v7/src/transferwebhook" + "github.com/adyen/adyen-go-api-library/v8/src/transferwebhook" ) func Test_BalancePlatform_Transfer_Webhooks_HandleRequest(t *testing.T) { diff --git a/tests/binlookup_test.go b/tests/binlookup_test.go index 3eabbae30..d2adfcb34 100644 --- a/tests/binlookup_test.go +++ b/tests/binlookup_test.go @@ -2,12 +2,12 @@ package tests import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/binlookup" + "github.com/adyen/adyen-go-api-library/v8/src/binlookup" "os" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/checkout_test.go b/tests/checkout_test.go index 9836c00f8..07ff0d5f5 100644 --- a/tests/checkout_test.go +++ b/tests/checkout_test.go @@ -3,9 +3,9 @@ package tests import ( "context" "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/google/uuid" "io/ioutil" _nethttp "net/http" diff --git a/tests/checkoutidempotency_test.go b/tests/checkoutidempotency_test.go index 922059aa1..fee7f38ff 100644 --- a/tests/checkoutidempotency_test.go +++ b/tests/checkoutidempotency_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/google/uuid" "github.com/stretchr/testify/require" ) diff --git a/tests/data_protection_test.go b/tests/data_protection_test.go index 730cd6f44..a6a547bea 100644 --- a/tests/data_protection_test.go +++ b/tests/data_protection_test.go @@ -4,9 +4,9 @@ import ( "bytes" "context" "errors" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/dataprotection" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/dataprotection" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "io" diff --git a/tests/disputes_test.go b/tests/disputes_test.go index 921739594..bec385bbd 100644 --- a/tests/disputes_test.go +++ b/tests/disputes_test.go @@ -2,140 +2,150 @@ package tests import ( "context" + "io" + "net/http" + "net/http/httptest" "os" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/disputes" - "github.com/adyen/adyen-go-api-library/v7/src/payments" - "github.com/joho/godotenv" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/disputes" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func Test_Disputes(t *testing.T) { - godotenv.Load("./../.env") - - var ( - MerchantAccount = os.Getenv("ADYEN_MERCHANT") - APIKey = os.Getenv("ADYEN_API_KEY") - ) - client := adyen.NewClient(&common.Config{ - ApiKey: APIKey, + ApiKey: "YOUR_ADYEN_API_KEY", Environment: "TEST", + Debug: "true" == os.Getenv("DEBUG"), }) - service := client.Checkout() - - createTestPayment := func() string { - card := checkout.NewCardDetails() - card.SetEncryptedCardNumber("test_4111111111111111") - card.SetEncryptedExpiryMonth("test_03") - card.SetEncryptedExpiryYear("test_2030") - card.SetEncryptedSecurityCode("test_737") - card.SetHolderName("chargeback:10.4") - req := service.PaymentsApi.PaymentsInput().PaymentRequest(checkout.PaymentRequest{ - Amount: checkout.Amount{ - Currency: "EUR", - Value: 1000, - }, - Reference: "DISPUTES_CHARGEBACK", - PaymentMethod: checkout.CardDetailsAsCheckoutPaymentMethod(card), - ReturnUrl: "https://adyen.com", - MerchantAccount: MerchantAccount, + + mux := http.NewServeMux() + + // Success cases + mux.HandleFunc("/retrieveApplicableDefenseReasons", func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, "POST", r.Method) + w.Header().Set("Content-Type", "application/json") + io.WriteString(w, `{"disputeServiceResult":{"errorMessage":"Dispute not found.","success":false}}`) + }) + + mux.HandleFunc("/supplyDefenseDocument", func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, "POST", r.Method) + w.Header().Set("Content-Type", "application/json") + io.WriteString(w, `{"disputeServiceResult":{"errorMessage":"Unknown dispute","success":false}}`) + }) + + mux.HandleFunc("/deleteDisputeDefenseDocument", func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, "POST", r.Method) + w.Header().Set("Content-Type", "application/json") + io.WriteString(w, `{"disputeServiceResult":{"errorMessage":"Unknown dispute","success":false}}`) + }) + + mux.HandleFunc("/defendDispute", func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, "POST", r.Method) + w.Header().Set("Content-Type", "application/json") + io.WriteString(w, `{"disputeServiceResult":{"errorMessage":"Dispute not found.","success":false}}`) + }) + + // Error case + mux.HandleFunc("/downloadDisputeDefenseDocument", func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, "POST", r.Method) + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusForbidden) + io.WriteString(w, `{"status":403,"errorCode":"010","message":"Not allowed","errorType":"security"}`) + }) + + mockServer := httptest.NewServer(mux) + defer mockServer.Close() + + service := client.Disputes() + service.BasePath = func() string { return mockServer.URL } + pspReference := "FOO12345BAR" + merchantAccount := "YOUR_MERCHANT_ACCOUNT" + + t.Run("Configuration", func(t *testing.T) { + testClient := adyen.NewClient(&common.Config{ + Environment: common.TestEnv, }) - res, _, _ := service.PaymentsApi.Payments(context.Background(), req) - - reference := "MODIFICATION_REFERENCE" - body := payments.CaptureRequest{ - OriginalReference: res.GetPspReference(), - ModificationAmount: payments.Amount{ - Currency: "EUR", - Value: 1000, - }, - Reference: &reference, - MerchantAccount: MerchantAccount, - } - paymentsApi := client.Payments() - captureReq := paymentsApi.ModificationsApi.CaptureInput().CaptureRequest(body) - captureRes, _, _ := paymentsApi.ModificationsApi.Capture(context.Background(), captureReq) - return captureRes.GetPspReference() - } - - t.Run("Disputes", func(t *testing.T) { - t.Run("Retrieve applicable defense reasons", func(t *testing.T) { - pspReference := createTestPayment() - res, httpRes, err := client.Disputes().RetrieveApplicableDefenseReasons(&disputes.DefenseReasonsRequest{ - DisputePspReference: pspReference, - MerchantAccountCode: MerchantAccount, - }) - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - assert.NotNil(t, res) - assert.Equal(t, "Dispute not found.", res.DisputeServiceResult.ErrorMessage) + assert.Equal(t, "https://ca-test.adyen.com/ca/services/DisputeService/v30", testClient.Disputes().BasePath()) + liveClient := adyen.NewClient(&common.Config{ + Environment: common.LiveEnv, + }) + assert.Equal(t, "https://ca-live.adyen.com/ca/services/DisputeService/v30", liveClient.Disputes().BasePath()) + }) + + t.Run("Retrieve applicable defense reasons", func(t *testing.T) { + req := service.RetrieveApplicableDefenseReasonsInput().DefenseReasonsRequest(disputes.DefenseReasonsRequest{ + DisputePspReference: pspReference, + MerchantAccountCode: merchantAccount, }) + res, httpRes, err := service.RetrieveApplicableDefenseReasons(context.Background(), req) + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + assert.NotNil(t, res) + assert.Equal(t, "Dispute not found.", res.DisputeServiceResult.GetErrorMessage()) + }) - t.Run("Supply defense document", func(t *testing.T) { - pspReference := createTestPayment() - res, httpRes, err := client.Disputes().SupplyDefenseDocument(&disputes.SupplyDefenseDocumentRequest{ - DefenseDocuments: []disputes.DefenseDocument{ - { - Content: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==", - ContentType: "image/jpg", - DefenseDocumentTypeCode: "DefenseMaterial", - }, + t.Run("Supply defense document", func(t *testing.T) { + req := service.SupplyDefenseDocumentInput().SupplyDefenseDocumentRequest(disputes.SupplyDefenseDocumentRequest{ + DefenseDocuments: []disputes.DefenseDocument{ + { + Content: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==", + ContentType: "image/jpg", + DefenseDocumentTypeCode: "DefenseMaterial", }, - DisputePspReference: pspReference, - MerchantAccountCode: MerchantAccount, - }) - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - assert.NotNil(t, res) - assert.Equal(t, "Unknown dispute", res.DisputeServiceResult.ErrorMessage) + }, + DisputePspReference: pspReference, + MerchantAccountCode: merchantAccount, }) + res, httpRes, err := service.SupplyDefenseDocument(context.Background(), req) + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + assert.NotNil(t, res) + assert.Equal(t, "Unknown dispute", res.DisputeServiceResult.GetErrorMessage()) + }) - t.Run("Delete dispute defense document", func(t *testing.T) { - pspReference := createTestPayment() - res, httpRes, err := client.Disputes().DeleteDisputeDefenseDocument(&disputes.DeleteDefenseDocumentRequest{ - DefenseDocumentType: "DefenseMaterial", - DisputePspReference: pspReference, - MerchantAccountCode: MerchantAccount, - }) - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - assert.NotNil(t, res) - assert.Equal(t, "Unknown dispute", res.DisputeServiceResult.ErrorMessage) + t.Run("Delete dispute defense document", func(t *testing.T) { + req := service.DeleteDisputeDefenseDocumentInput().DeleteDefenseDocumentRequest(disputes.DeleteDefenseDocumentRequest{ + DefenseDocumentType: "DefenseMaterial", + DisputePspReference: pspReference, + MerchantAccountCode: merchantAccount, }) + res, httpRes, err := service.DeleteDisputeDefenseDocument(context.Background(), req) - t.Run("Defend dispute", func(t *testing.T) { - pspReference := createTestPayment() - res, httpRes, err := client.Disputes().DefendDispute(&disputes.DefendDisputeRequest{ - DefenseReasonCode: "DuplicateChargeback", - DisputePspReference: pspReference, - MerchantAccountCode: MerchantAccount, - }) - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - assert.NotNil(t, res) - assert.Equal(t, "Dispute not found.", res.DisputeServiceResult.ErrorMessage) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + assert.NotNil(t, res) + assert.Equal(t, "Unknown dispute", res.DisputeServiceResult.GetErrorMessage()) + }) + + t.Run("Defend dispute", func(t *testing.T) { + req := service.DefendDisputeInput().DefendDisputeRequest(disputes.DefendDisputeRequest{ + DefenseReasonCode: "DuplicateChargeback", + DisputePspReference: pspReference, + MerchantAccountCode: merchantAccount, }) + res, httpRes, err := service.DefendDispute(context.Background(), req) - t.Run("Download dispute defense document", func(t *testing.T) { - pspReference := createTestPayment() - _, httpRes, err := client.Disputes().DownloadDisputeDefenseDocument(&disputes.DownloadDefenseDocumentRequest{ - DefenseDocumentType: "DefenseMaterial", - DisputePspReference: pspReference, - MerchantAccountCode: MerchantAccount, - }) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + assert.NotNil(t, res) + assert.Equal(t, "Dispute not found.", res.DisputeServiceResult.GetErrorMessage()) + }) - require.NotNil(t, err) - assert.Equal(t, 403, httpRes.StatusCode) + t.Run("Download dispute defense document", func(t *testing.T) { + req := service.DownloadDisputeDefenseDocumentInput().DownloadDefenseDocumentRequest(disputes.DownloadDefenseDocumentRequest{ + DefenseDocumentType: "DefenseMaterial", + DisputePspReference: pspReference, + MerchantAccountCode: merchantAccount, }) + _, httpRes, err := service.DownloadDisputeDefenseDocument(context.Background(), req) + + require.NotNil(t, err) + assert.Equal(t, 403, httpRes.StatusCode) }) } diff --git a/tests/fixtures/all_transactions.json b/tests/fixtures/all_transactions.json new file mode 100644 index 000000000..35a2a4a5f --- /dev/null +++ b/tests/fixtures/all_transactions.json @@ -0,0 +1,109 @@ +{ + "data": [ + { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "creationDate": "2023-08-10T14:51:20+02:00", + "id": "EVJN42272224222B5JB8BRC84N686ZEUR", + "accountHolder": { + "description": "Your description for the account holder", + "id": "AH00000000000000000000001" + }, + "amount": { + "currency": "USD", + "value": -1000 + }, + "balanceAccount": { + "description": "Your description for the account holder", + "id": "BA00000000000000000000001" + }, + "bookingDate": "2023-08-10T14:51:33+02:00", + "eventId": "EVJN42272224222B5JB8BRC84N686Z", + "status": "booked", + "transfer": { + "id": "3JNC3O5ZVFLLGV4B", + "reference": "Your internal reference for the transfer" + }, + "valueDate": "2023-08-10T14:51:20+02:00" + }, + { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "creationDate": "2023-08-10T15:34:31+02:00", + "id": "EVJN4227C224222B5JB8G3Q89N2NB6EUR", + "accountHolder": { + "description": "Your description for the account holder", + "id": "AH00000000000000000000001" + }, + "amount": { + "currency": "USD", + "value": 123 + }, + "balanceAccount": { + "description": "Your description for the account holder", + "id": "BA00000000000000000000001" + }, + "bookingDate": "2023-08-10T15:34:40+02:00", + "eventId": "EVJN4227C224222B5JB8G3Q89N2NB6", + "status": "booked", + "transfer": { + "id": "48POO45ZVG11166J", + "reference": "Your internal reference for the transfer" + }, + "valueDate": "2023-08-10T15:34:31+02:00" + }, + { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "creationDate": "2023-08-11T13:45:46+02:00", + "id": "EVJN4227C224222B5JBD3XHF8P3L8GUSD", + "accountHolder": { + "description": "Your description for the account holder", + "id": "AH00000000000000000000001" + }, + "amount": { + "currency": "USD", + "value": -10000 + }, + "balanceAccount": { + "description": "Your description for the account holder", + "id": "BA00000000000000000000001" + }, + "bookingDate": "2023-08-11T13:45:57+02:00", + "eventId": "EVJN4227C224222B5JBD3XHF8P3L8G", + "status": "booked", + "transfer": { + "id": "48RTTW5ZVT8KU9DV", + "reference": "my-reference" + }, + "valueDate": "2023-08-11T13:45:46+02:00" + }, + { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "creationDate": "2023-08-11T13:45:51+02:00", + "id": "EVJN42272224222B5JBD3XJGHF4J26USD", + "accountHolder": { + "description": "Your description for the account holder", + "id": "AH00000000000000000000001" + }, + "amount": { + "currency": "USD", + "value": 1000 + }, + "balanceAccount": { + "description": "Your description for the account holder", + "id": "BA00000000000000000000001" + }, + "bookingDate": "2023-08-11T13:45:58+02:00", + "eventId": "EVJN42272224222B5JBD3XJGHF4J26", + "status": "booked", + "transfer": { + "id": "48TYZO5ZVT8M1K47", + "reference": "my-reference" + }, + "valueDate": "2023-08-11T13:45:51+02:00" + } + ], + "_links": { + "next": { + "href": "https://balanceplatform-api-test.adyen.com/btl/v4/transactions?balancePlatform=TestBalancePlatform&createdUntil=2023-08-20T13%3A07%3A40Z&createdSince=2023-08-10T10%3A50%3A40Z&cursor=S2B-c0p1N0tdN0l6RGhYK1YpM0lgOTUyMDlLXElyKE9LMCtyaFEuMj1NMHgidCsrJi1ZNnhqXCtqVi5JPGpRK1F2fCFqWzU33JTojSVNJc1J1VXhncS10QDd6JX9FQFl5Zn0uNyUvSXJNQTo" + } + } +} \ No newline at end of file diff --git a/tests/legalentity/configuration_test.go b/tests/legalentity/configuration_test.go index aa633c591..e5dee28f5 100644 --- a/tests/legalentity/configuration_test.go +++ b/tests/legalentity/configuration_test.go @@ -3,8 +3,8 @@ package legalentity import ( "context" "encoding/json" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" diff --git a/tests/legalentity/integration_test.go b/tests/legalentity/integration_test.go index 297505124..96a56acc2 100644 --- a/tests/legalentity/integration_test.go +++ b/tests/legalentity/integration_test.go @@ -2,8 +2,8 @@ package legalentity import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/legalentity/unit_test.go b/tests/legalentity/unit_test.go index 4b7c55dbb..9b26ec098 100644 --- a/tests/legalentity/unit_test.go +++ b/tests/legalentity/unit_test.go @@ -2,9 +2,9 @@ package legalentity import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/legalentity" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/legalentity" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" diff --git a/tests/management/integration_test.go b/tests/management/integration_test.go index 523cb3003..f30d67e6e 100644 --- a/tests/management/integration_test.go +++ b/tests/management/integration_test.go @@ -2,15 +2,14 @@ package management import ( "context" - "os" - "reflect" - "testing" - - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "errors" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "os" + "testing" ) func Test_ManagementAPI_Integration(t *testing.T) { @@ -48,12 +47,24 @@ func Test_ManagementAPI_Integration(t *testing.T) { _, httpRes, serviceErr := invalidKeyClient.Management().MyAPICredentialApi.GetApiCredentialDetails(context.Background(), req) - restServiceErr := serviceErr.(common.RestServiceError) + var restServiceErr common.RestServiceError + errors.As(serviceErr, &restServiceErr) assert.Equal(t, 401, httpRes.StatusCode) require.NotNil(t, restServiceErr) }) }) + t.Run("List merchant accounts", func(t *testing.T) { + req := service.AccountMerchantLevelApi.ListMerchantAccountsInput() + req = req.PageNumber(1).PageSize(1) + + resp, httpRes, serviceErr := service.AccountMerchantLevelApi.ListMerchantAccounts(context.Background(), req) + + require.Nil(t, serviceErr) + assert.Equal(t, 200, httpRes.StatusCode) + require.Equal(t, 1, len(resp.Data), "Should contain only one merchant account") + }) + t.Run("List terminals", func(t *testing.T) { req := service.TerminalsTerminalLevelApi.ListTerminalsInput() req = req.Countries("NL").PageSize(1) @@ -71,11 +82,11 @@ func Test_ManagementAPI_Integration(t *testing.T) { _, httpRes, serviceErr := service.AccountCompanyLevelApi.GetCompanyAccount(context.Background(), req) - restServiceErr := serviceErr.(common.RestServiceError) + var restServiceErr common.RestServiceError + errors.As(serviceErr, &restServiceErr) assert.NotEmpty(t, restServiceErr.GetRequestId()) assert.Equal(t, "010", restServiceErr.GetErrorCode()) assert.Equal(t, int32(403), restServiceErr.GetStatus()) assert.Equal(t, 403, httpRes.StatusCode) - assert.Equal(t, reflect.TypeOf(serviceErr), reflect.TypeOf(common.RestServiceError{})) }) } diff --git a/tests/management/unit_test.go b/tests/management/unit_test.go index 514b96b34..5a275d249 100644 --- a/tests/management/unit_test.go +++ b/tests/management/unit_test.go @@ -3,10 +3,11 @@ package management import ( "context" "encoding/json" + "errors" "fmt" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/management" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/management" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "net/http" @@ -68,11 +69,11 @@ func Test_ManagementAPI(t *testing.T) { testClient := adyen.NewClient(&common.Config{ Environment: common.TestEnv, }) - assert.Equal(t, "https://management-test.adyen.com/v1", testClient.Management().MyAPICredentialApi.BasePath()) + assert.Equal(t, "https://management-test.adyen.com/v3", testClient.Management().MyAPICredentialApi.BasePath()) liveClient := adyen.NewClient(&common.Config{ Environment: common.LiveEnv, }) - assert.Equal(t, "https://management-live.adyen.com/v1", liveClient.Management().WebhooksCompanyLevelApi.BasePath()) + assert.Equal(t, "https://management-live.adyen.com/v3", liveClient.Management().WebhooksCompanyLevelApi.BasePath()) }) t.Run("Test ListCompanyAccounts", func(t *testing.T) { @@ -104,7 +105,8 @@ func Test_ManagementAPI(t *testing.T) { companyId := "notExisting" req := service.AccountCompanyLevelApi.GetCompanyAccountInput(companyId) resp, httpRes, serviceError := service.AccountCompanyLevelApi.GetCompanyAccount(context.Background(), req) - restServiceErr := serviceError.(common.RestServiceError) + var restServiceErr common.RestServiceError + errors.As(serviceError, &restServiceErr) if restServiceErr.ErrorCode != "500" { fmt.Fprintf(os.Stderr, "Error: %v\n", serviceError) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) @@ -133,7 +135,8 @@ func Test_ManagementAPI(t *testing.T) { companyId := "notExisting" req := service.AccountCompanyLevelApi.ListMerchantAccountsInput(companyId) resp, httpRes, serviceError := service.AccountCompanyLevelApi.ListMerchantAccounts(context.Background(), req) - restServiceErr := serviceError.(common.RestServiceError) + var restServiceErr common.RestServiceError + errors.As(serviceError, &restServiceErr) if restServiceErr.ErrorCode != "500" { fmt.Fprintf(os.Stderr, "Error: %v\n", serviceError) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) diff --git a/tests/management_webhooks_handler_test.go b/tests/management_webhooks_handler_test.go index 14885dbe9..38660273f 100644 --- a/tests/management_webhooks_handler_test.go +++ b/tests/management_webhooks_handler_test.go @@ -1,7 +1,7 @@ package tests import ( - "github.com/adyen/adyen-go-api-library/v7/src/managementwebhook" + "github.com/adyen/adyen-go-api-library/v8/src/managementwebhook" "testing" "github.com/stretchr/testify/assert" diff --git a/tests/model_payment_request_test.go b/tests/model_payment_request_test.go index d7b18813e..85fd8682d 100644 --- a/tests/model_payment_request_test.go +++ b/tests/model_payment_request_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/model_payment_response_test.go b/tests/model_payment_response_test.go index 33d90171b..415f1f16d 100644 --- a/tests/model_payment_response_test.go +++ b/tests/model_payment_response_test.go @@ -14,7 +14,7 @@ import ( "encoding/json" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/payment_test.go b/tests/payment_test.go index dec3119fe..05d0c6e98 100644 --- a/tests/payment_test.go +++ b/tests/payment_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/payments" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/payments" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/payout_test.go b/tests/payout_test.go index 121cb2a6d..f0625e57a 100644 --- a/tests/payout_test.go +++ b/tests/payout_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/payout" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/payout" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/platforms_test.go b/tests/platforms_test.go index 25452e3aa..217d12f00 100644 --- a/tests/platforms_test.go +++ b/tests/platforms_test.go @@ -15,11 +15,11 @@ import ( "os" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/platformsaccount" - "github.com/adyen/adyen-go-api-library/v7/src/platformsfund" - "github.com/adyen/adyen-go-api-library/v7/src/platformsnotificationconfiguration" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/platformsaccount" + "github.com/adyen/adyen-go-api-library/v8/src/platformsfund" + "github.com/adyen/adyen-go-api-library/v8/src/platformsnotificationconfiguration" "github.com/google/uuid" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/tests/pos_terminal_management_test.go b/tests/pos_terminal_management_test.go index 177133871..fdcf69113 100644 --- a/tests/pos_terminal_management_test.go +++ b/tests/pos_terminal_management_test.go @@ -7,8 +7,8 @@ import ( "net/http/httptest" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tests/readme_test.go b/tests/readme_test.go index 71de78d10..27c8bfd4c 100644 --- a/tests/readme_test.go +++ b/tests/readme_test.go @@ -3,11 +3,11 @@ package tests import ( "context" "fmt" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/checkout" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/recurring" - "github.com/adyen/adyen-go-api-library/v7/src/webhook" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/checkout" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/recurring" + "github.com/adyen/adyen-go-api-library/v8/src/webhook" "net/http" "net/url" "time" diff --git a/tests/recurring_test.go b/tests/recurring_test.go index 7f048d134..901b9e0af 100644 --- a/tests/recurring_test.go +++ b/tests/recurring_test.go @@ -6,10 +6,10 @@ import ( "strings" "testing" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/recurring" + "github.com/adyen/adyen-go-api-library/v8/src/recurring" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/tests/storedvalue_test.go b/tests/storedvalue_test.go index 09f8045d7..2fff17fdd 100644 --- a/tests/storedvalue_test.go +++ b/tests/storedvalue_test.go @@ -2,9 +2,9 @@ package tests import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" - "github.com/adyen/adyen-go-api-library/v7/src/storedvalue" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/storedvalue" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "io" diff --git a/tests/transfers_test.go b/tests/transfers_test.go index d6de33506..4c795de17 100644 --- a/tests/transfers_test.go +++ b/tests/transfers_test.go @@ -2,14 +2,17 @@ package tests import ( "context" - "github.com/adyen/adyen-go-api-library/v7/src/transfers" + "errors" + "github.com/adyen/adyen-go-api-library/v8/src/transfers" "io" "net/http" "net/http/httptest" + "os" "testing" + "time" - "github.com/adyen/adyen-go-api-library/v7/src/adyen" - "github.com/adyen/adyen-go-api-library/v7/src/common" + "github.com/adyen/adyen-go-api-library/v8/src/adyen" + "github.com/adyen/adyen-go-api-library/v8/src/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -89,9 +92,16 @@ func Test_Transfers(t *testing.T) { "status": "Pending" }`) }) + mux.HandleFunc("/transactions", func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, "GET", r.Method) + assert.Equal(t, "2022-01-01T01:02:03Z", r.URL.Query().Get("createdSince")) + w.Header().Set("Content-Type", "application/json") + file, _ := os.Open("fixtures/all_transactions.json") + io.Copy(w, file) + }) // Error case - mux.HandleFunc("/transactions", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/transactions/ERRForbidden403", func(w http.ResponseWriter, r *http.Request) { require.Equal(t, "GET", r.Method) w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusForbidden) @@ -109,6 +119,17 @@ func Test_Transfers(t *testing.T) { client.Transfers().TransfersApi.BasePath = func() string { return mockServer.URL } service := client.Transfers() + t.Run("Configuration", func(t *testing.T) { + testClient := adyen.NewClient(&common.Config{ + Environment: common.TestEnv, + }) + assert.Equal(t, "https://balanceplatform-api-test.adyen.com/btl/v4", testClient.Transfers().CapitalApi.BasePath()) + liveClient := adyen.NewClient(&common.Config{ + Environment: common.LiveEnv, + }) + assert.Equal(t, "https://balanceplatform-api-live.adyen.com/btl/v4", liveClient.Transfers().TransfersApi.BasePath()) + }) + t.Run("make successful transfer", func(t *testing.T) { request := service.TransfersApi.TransferFundsInput() @@ -119,26 +140,40 @@ func Test_Transfers(t *testing.T) { require.Nil(t, err) }) - t.Run("make unsuccessful get transactions call", func(t *testing.T) { - _, httpRes, err := service.TransactionsApi.GetAllTransactions( - context.Background(), - service.TransactionsApi.GetAllTransactionsInput(), - ) + t.Run("Get a transaction", func(t *testing.T) { + req := service.TransactionsApi.GetTransactionInput("ERRForbidden403") + + _, httpRes, err := service.TransactionsApi.GetTransaction(context.Background(), req) assert.Equal(t, 403, httpRes.StatusCode) require.NotNil(t, err) - serviceError := err.(common.RestServiceError) + var serviceError common.RestServiceError + errors.As(err, &serviceError) assert.Equal(t, int32(403), serviceError.Status) assert.Equal(t, "00_403", serviceError.GetErrorCode()) assert.Equal(t, "Forbidden", serviceError.GetTitle()) assert.Equal(t, "Not allowed", serviceError.GetDetail()) }) + t.Run("Get all transactions", func(t *testing.T) { + req := service.TransactionsApi.GetAllTransactionsInput() + since := time.Date(2022, 1, 1, 1, 2, 3, 0, time.UTC) + until := time.Date(2022, 12, 31, 0, 0, 0, 0, time.UTC) + req = req.BalancePlatform("Your balance platform").CreatedSince(since).CreatedUntil(until) + + res, httpRes, err := service.TransactionsApi.GetAllTransactions(context.Background(), req) + + assert.Equal(t, 200, httpRes.StatusCode) + require.NoError(t, err) + require.Len(t, res.Data, 4) + assert.Equal(t, 2023, res.GetData()[0].GetCreationDate().Year()) + }) + t.Run("Request a grant payout", func(t *testing.T) { request := service.CapitalApi.RequestGrantPayoutInput().CapitalGrantInfo(transfers.CapitalGrantInfo{ GrantAccountId: "CG00000000000000000000001", GrantOfferId: "0000000000000001", - Counterparty: &transfers.Counterparty2{ + Counterparty: &transfers.Counterparty{ AccountHolderId: common.PtrString("AH00000000000000000000001"), BalanceAccountId: common.PtrString("BA00000000000000000000001"), }, diff --git a/tests/webhook_handler_test.go b/tests/webhook_handler_test.go index 00abf52e6..50145a669 100644 --- a/tests/webhook_handler_test.go +++ b/tests/webhook_handler_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/adyen/adyen-go-api-library/v7/src/webhook" + "github.com/adyen/adyen-go-api-library/v8/src/webhook" ) func TestWebhook_HandleRequest(t *testing.T) {