Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSepaSourceRequest ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (c *Client) CreateSepaSource(request *sepaSourceRequest) (*CreateSepaSourceResponse, error)
type CreateSepaSourceResponse ¶ added in v1.0.0
type CreateSepaSourceResponse struct {
HttpResponse common.HttpMetadata
SourceResponse *SourceResponse
ResponseData map[string]string `json:"response_data,omitempty"`
}
Response
type MandateType ¶ added in v1.0.0
type MandateType string
const ( Single MandateType = "single" Recurring MandateType = "recurring" )
type SourceData ¶ added in v1.0.0
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 ¶ added in v1.0.0
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
Click to show internal directories.
Click to hide internal directories.