payment

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePrice

type BasePrice struct {
	Value    float32 `json:"value"`
	Currency string  `json:"currency"`
	Unit     string  `json:"unit,omitempty"`
}

type PaymentClient

type PaymentClient interface {
	ListPlans() ([]Plan, error)
}

func NewPaymentClient

func NewPaymentClient(client *lowlevel.SpacesLowlevelClient) PaymentClient

type PaymentOption

type PaymentOption struct {
	Type          string `json:"type"`
	IBAN          string `json:"iban,omitempty"`
	BIC           string `json:"bic,omitempty"`
	AccountHolder string `json:"accountHolder,omitempty"`
}

type PaymentProfile

type PaymentProfile struct {
	ID              string                         `json:"id"`
	CreatedAt       time.Time                      `json:"createdAt"`
	ModifiedAt      time.Time                      `json:"modifiedAt"`
	ContractPartner PaymentProfileContactWithPhone `json:"contractPartner"`
	InvoiceSettings PaymentProfileInvoiceSettings  `json:"invoiceSettings"`
	Payment         PaymentOption                  `json:"payment"`
}

type PaymentProfileContact

type PaymentProfileContact struct {
	FirstName    string                       `json:"firstName"`
	LastName     string                       `json:"lastName"`
	Title        string                       `json:"title,omitempty"`
	Salutation   string                       `json:"salutation"`
	Company      string                       `json:"company,omitempty"`
	Address      PaymentProfileContactAddress `json:"address"`
	EmailAddress string                       `json:"emailAddress"`
}

type PaymentProfileContactAddress

type PaymentProfileContactAddress struct {
	Street      string `json:"street"`
	HouseNumber string `json:"houseNumber"`
	City        string `json:"city"`
	ZIP         string `json:"zip"`
	Country     string `json:"country"`
}

type PaymentProfileContactWithPhone

type PaymentProfileContactWithPhone struct {
	FirstName    string                       `json:"firstName"`
	LastName     string                       `json:"lastName"`
	Title        string                       `json:"title,omitempty"`
	Salutation   string                       `json:"salutation"`
	Company      string                       `json:"company,omitempty"`
	Address      PaymentProfileContactAddress `json:"address"`
	EmailAddress string                       `json:"emailAddress"`
	Phone        string                       `json:"phone"`
}

type PaymentProfileInvoiceSettings

type PaymentProfileInvoiceSettings struct {
	InvoiceRecipient          *PaymentProfileContact `json:"invoiceRecipient,omitempty"`
	AdditionalEmailRecipients []string               `json:"additionalEmailRecipients,omitempty"`
	PrintedInvoices           bool                   `json:"printedInvoices"`
	VatID                     string                 `json:"vatID,omitempty"`
}

type PaymentProfileReferenceInput

type PaymentProfileReferenceInput struct {
	ID string `json:"id"`
}

type Plan

type Plan struct {
	ID        string     `json:"id"`
	Name      string     `json:"name"`
	BasePrice *BasePrice `json:"basePrice"`
}

type PlanReferenceInput

type PlanReferenceInput struct {
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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