mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* Use formance-sdk-go/v3 to in connector uninstall e2e test * Compile API docs from openapi spec * Generate go SDK locally for use in integration tests * Get rid of unnecessary redirect in e2e tests now that SDK is generated * Omit generated SDK code from codecoverage checks * Add flake and envrc for nix * Run Dirty and Tests CI steps with nix * Run pre-commit using nix * Remove duplicated steps from Earthfile * Fixes for linter * Add go generate to Justfile pre-commit * Still run Deploy on ubuntu-latest * Address coderabbit feedback
70 lines
1.3 KiB
Go
70 lines
1.3 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
import (
|
|
"github.com/formancehq/payments/pkg/client/internal/utils"
|
|
)
|
|
|
|
type V3GenericConfig struct {
|
|
APIKey string `json:"apiKey"`
|
|
Endpoint string `json:"endpoint"`
|
|
Name string `json:"name"`
|
|
PageSize *int64 `default:"25" json:"pageSize"`
|
|
PollingPeriod *string `default:"2m" json:"pollingPeriod"`
|
|
Provider *string `default:"Generic" json:"provider"`
|
|
}
|
|
|
|
func (v V3GenericConfig) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(v, "", false)
|
|
}
|
|
|
|
func (v *V3GenericConfig) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *V3GenericConfig) GetAPIKey() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.APIKey
|
|
}
|
|
|
|
func (o *V3GenericConfig) GetEndpoint() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Endpoint
|
|
}
|
|
|
|
func (o *V3GenericConfig) GetName() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Name
|
|
}
|
|
|
|
func (o *V3GenericConfig) GetPageSize() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.PageSize
|
|
}
|
|
|
|
func (o *V3GenericConfig) GetPollingPeriod() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.PollingPeriod
|
|
}
|
|
|
|
func (o *V3GenericConfig) GetProvider() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Provider
|
|
}
|