# README
SWIFT SDK in GO
This package is written to cover low level stuff for integration with SWIFT Payments. All code is written according to specification from Developers API, checkout the link to discover more. References for the moment package implements:
INSTALL
go get github.com/alifcapital/swift
TESTS
// provide `tests.json` file (example: `tests.json.example`) and run
go test -cover
// to see coverage details
go test . -coverprofile tests.cover && go tool cover -html tests.cover && rm tests.cover
Contributing
Pull requests are welcome. For any changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.
# Packages
No description provided by the author
# Functions
HTTPClient creates new option for using custom http.Client.
NewAPI return new API based on given args and options.
No description provided by the author
No description provided by the author
No description provided by the author
ValidateBic - validates BIC format BIC - code allocated to a financial or non-financial institution by the ISO 9362 Registration Authority.
ValidateBicFi - same as `ValidateBic`.
ValidateCountryCode - ISO 3166, Alpha-2 code.
ValidateCreditorAccount - strings, between 1 and 34 chars.
ValidateCreditorName - strings, between 1 and 140 chars.
# Constants
Production is a production environment.
Sandbox is a testing environment, but can be used in production for some services from docs: ..
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
API aggregates swiftref, bank-analytics APIs and deals with authentication (gets access token as needed).
AppCredentials is a credentials to make OAuth2 request.
AuthenticationToken returned after successful authentication `AccessToken` used in http Authorization headers `ExpiresIn` by default is 1800-1 seconds (30min) `RefreshToken` used for requiring new AuthenticationToken and is alive for 86400-1 seconds (1 day) `TokenType` is a part of Authorization header: ex.
No description provided by the author
# Type aliases
Option is a function that sets some option on API.