This library is generated from an OpenAPI schema (OAS). See full changelog here for schema changes.
- Updating to OAS 2020-09-14_1.54.0
- Updating to OAS 2020-09-14_1.44.0
- Updating to OAS 2020-09-14_1.40.3
- Updating to OAS 2020-09-14_1.36.1
- Updating to OAS 2020-09-14_1.36.1
- Updating to OAS 2020-09-14_1.33.0.
- Updated to OAS 2020-09-14_1.31.1.
- Updated to OAS 2020-09-14_1.26.1.
- Moved officially to
GOMODULES
, as well as GA'd the generated version ofplaid-go
! This is ported over from our beta branch / release. - Pinned to OpenAPI version
2020-09-14_1.21.0
. Make sure to check the OpenAPI changelog.
- Introduce the
ToPlaidError
helper function to convert generic errors to the plaid.Error struct - Type fixes from
OpenAPI version 2020-09-14_1.20.6
, see full changelog here
We first are reversioning this package, as we are now using GOMODULES.
This version represents a transition in how we maintain our external client libraries. We are now using an API spec written in OpenAPI 3.0.0
and running our definition file through OpenAPITool's go
generator.
Go Migration Guide:
From:
import (
"github.com/plaid/plaid-go/plaid"
)
client, err := plaid.NewClient(plaid.ClientOptions{
os.Getenv("PLAID_CLIENT_ID"),
os.Getenv("PLAID_SECRET"),
plaid.Sandbox,
})
To:
import (
"github.com/plaid/plaid-go/plaid"
)
configuration := plaid.NewConfiguration()
configuration.AddDefaultHeader("PLAID-CLIENT-ID", os.Getenv("CLIENT_ID"))
configuration.AddDefaultHeader("PLAID-SECRET", os.Getenv("SECRET"))
configuration.UseEnvironment(plaid.Sandbox)
client := plaid.NewAPIClient(configuration)
All endpoint rquests now take a request model and the functions have been renamed to move the
verb to the end (e.g. GetBalances
is now BalancesGet
). We now accept a context
object in order to give the caller more control over the http request.
From:
response, err := client.CreateSandboxPublicToken(SandboxInstitution, TestProducts)
To:
response, httpResponse, err := client.PlaidApi.SandboxPublicTokenCreate(context.Background()).SandboxPublicTokenCreateRequest(
*plaid.NewSandboxPublicTokenCreateRequest(
SandboxInstitution,
TestProducts,
),
).Execute()
From:
response, err := client.CreateSandboxPublicToken(SandboxInstitution, TestProducts)
plaidErr := err.(plaid.Error)
To:
response, httpResponse, err := client.PlaidApi.SandboxPublicTokenCreate(context.Background()).SandboxPublicTokenCreateRequest(
*plaid.NewSandboxPublicTokenCreateRequest(
SandboxInstitution,
TestProducts,
),
).Execute()
plaidErr, _ := plaid.ToPlaidError(err)
- Add support for
options
to/payment_initiation/payment/create
- Add support for
last_updated_datetime
to/accounts/balance/get
- Add Standing Orders support to Payment Initiation
- Add institution status types for health incidents and investment updates
- Add back (deprecated)
/payment_initiation/payment/token/create
endpoint - Add back (deprecated)
/item/public_token/create
endpoint
BREAKING CHANGES:
- Add Standing Order support to the
/payment_initiation/payment/create
endpoint
BREAKING CHANGES:
- The library has been pinned to the '2020-09-14' API release. Visit the docs to see what changed.
- the
/item/public_token/create
endpoint has been disabled in favor of the /link/token/create endpoint - The
/item/add_token/create endpoint
has been disabled in favor of the /link/token/create - The
/payment_initiation/payment/token/create
endpoint has been disabled in favor of the /link/token/create endpoint - The
/item/remove
endpoint will no longer return aremoved
boolean. - The
/institutions/get
,/institutions/get_by_id
, and/institutions/search
now requirecountry_codes
to be passed in.
- Add support for Link Token get endpoint (#142)
/link/token/get
BREAKING CHANGES:
- Add BACS as a parameter to
/recipient/create
(#137)
- Add
MerchantName
toTransaction
struct
BREAKING CHANGES:
- Removes the public key as input to
ClientOptions
. The public key is no longer needed by the API. - Add support for the
/link/token/create
endpoint
AuthorizedDate
andPaymentChannel
added to theTransaction
structItem
added to theGetAuthResponse
struct
- Adds support for
/sandbox/item/set_verification_status
PaymentRecipientAddress
can now be null- Removed support for deprecated
/item/access_token/update_version
endpoint
BREAKING CHANGES:
- Removed
client.UpdateAccessTokenVersion
PaymentRecipientAddress
can now be null