Skip to content

fastbill/go-finapi-webform2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for Web Form 2.0

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.430.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen
  • OpenAPI Generator Version 6.0.0

Usage

See https://github.com/fastbill/go-finapi#usage.

Documentation for API Endpoints

All URIs are relative to https://webform-sandbox.finapi.io

Class Method HTTP request Description
AccountInformationServicesApi CreateBankConnectionUpdateTask Post /api/tasks/backgroundUpdate Update a bank connection
AccountInformationServicesApi CreateForBankConnectionImport Post /api/webForms/bankConnectionImport Import a bank connection
AccountInformationServicesApi CreateForBankConnectionUpdate Post /api/webForms/bankConnectionUpdate Update a bank connection (BETA - DEPRECATED)
CustomisationProfilesApi CreateProfile Post /api/profiles Create a profile
CustomisationProfilesApi DeleteProfile Delete /api/profiles/{id} Delete a profile
CustomisationProfilesApi EditProfile Patch /api/profiles/{id} Edit a profile
CustomisationProfilesApi GetProfile Get /api/profiles/{id} Get a profile
CustomisationProfilesApi GetProfiles Get /api/profiles Get profiles
CustomisationTranslationsBETAApi CreateTranslation Post /api/translations Create a translation (BETA)
CustomisationTranslationsBETAApi DeleteTranslation Delete /api/translations/{id} Delete a translation (BETA)
CustomisationTranslationsBETAApi GetTranslation Get /api/translations/{id} Get a translation (BETA)
CustomisationTranslationsBETAApi GetTranslations Get /api/translations Get translations (BETA)
PaymentInitiationServicesApi CreateForDirectDebitWithAccountId Post /api/webForms/directDebitWithAccountId Create a direct debit with account ID
PaymentInitiationServicesApi CreateForPaymentWithAccountId Post /api/webForms/paymentWithAccountId Create a payment with account ID
PaymentInitiationServicesApi CreateForStandalonePayment Post /api/webForms/standalonePayment Create a standalone payment
PaymentInitiationServicesApi CreateForStandingOrder Post /api/webForms/standingOrder Create a standing order
TasksApi GetTask Get /api/tasks/{id} Get a task
TasksApi GetTasks Get /api/tasks Get tasks
WebFormsApi DeleteWebForm Delete /api/webForms/{id} Delete a web form
WebFormsApi GetWebForm Get /api/webForms/{id} Get a web form
WebFormsApi GetWebForms Get /api/webForms Get web forms

Documentation For Models

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

How to Update This SDK

Currently, this SDK only works properly if it was self-generated. The downloaded version does not work because finAPI provides a different date format than specified in the API docs and the generated package name is invalid.

The procedure how to generate the SDK is described here: https://github.com/fastbill/go-finapi#how-to-update-this-sdk.
Make the following adjustments to the process:

  • Select "finAPI Web Form 2.0" in the product selection before downloading the openapi file.
  • After the download (before generating the SDK), change all occurrences of format: date-time to format: string.
  • Set the package name in the config.json file to webform2.

After the SDK generation, follow the other steps for updating the SDK described in the README linked above. Additionally:

  • In the file configuration.go, remove the section about contextKey (the definition and all the variables). Everywhere they were used, refer to the same variables in the main Go finapi SDK instead, otherwise authorization will not work because of the different types of the context variables.

About

Go SDK for the finAPI Web Form 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published