sources

package
v0.0.0-...-ff628f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSepaSourceRequest

func NewSepaSourceRequest() *sepaSourceRequest

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client

func (*Client) CreateSepaSource

func (c *Client) CreateSepaSource(request *sepaSourceRequest) (*CreateSepaSourceResponse, error)

func (*Client) CreateSepaSourceWithContext

func (c *Client) CreateSepaSourceWithContext(ctx context.Context, request *sepaSourceRequest) (*CreateSepaSourceResponse, error)

type CreateSepaSourceResponse

type CreateSepaSourceResponse struct {
	HttpResponse   common.HttpMetadata
	SourceResponse *SourceResponse
	ResponseData   map[string]string `json:"response_data,omitempty"`
}

Response

type MandateType

type MandateType string
const (
	Single    MandateType = "single"
	Recurring MandateType = "recurring"
)

type SourceData

type SourceData struct {
	FirstName         string      `json:"first_name,omitempty"`
	LastName          string      `json:"last_name,omitempty"`
	AccountIban       string      `json:"account_iban,omitempty"`
	Bic               string      `json:"bic,omitempty"`
	BillingDescriptor string      `json:"billing_descriptor,omitempty"`
	MandateType       MandateType `json:"mandate_type,omitempty"`
}

Request

type SourceResponse

type SourceResponse struct {
	SourceType   SourceType               `json:"type,omitempty"`
	Id           string                   `json:"id,omitempty"`
	ResponseCode string                   `json:"response_code,omitempty"`
	Customer     *common.CustomerResponse `json:"customer,omitempty"`
	Links        map[string]common.Link   `json:"_links"`
}

Response

type SourceType

type SourceType string
const (
	Sepa SourceType = "Sepa"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL