httpdriver

package
v1.0.0-beta.187 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageSize        = 100
	DefaultPageNumber      = 1
	DefaultIncludeArchived = false
	DefaultInvoiceTimezone = "UTC"
)

Variables

Functions

func MapProfileToApi

func MapProfileToApi(p *billing.Profile) (api.BillingProfile, error)

Types

type CreatePendingLineRequest

type CreatePendingLineRequest = billing.CreateInvoiceLinesInput

type CreatePendingLineResponse

type CreatePendingLineResponse = []api.InvoiceLine

type CreateProfileRequest

type CreateProfileRequest = billing.CreateProfileInput

type CreateProfileResponse

type CreateProfileResponse = api.BillingProfile

type DeleteInvoiceParams

type DeleteInvoiceParams struct {
	InvoiceID string
}

type DeleteInvoiceRequest

type DeleteInvoiceRequest = billing.DeleteInvoiceInput

type DeleteInvoiceResponse

type DeleteInvoiceResponse = struct{}

type DeleteLineParams

type DeleteLineParams struct {
	InvoiceID string
	LineID    string
}

type DeleteLineRequest

type DeleteLineRequest = billing.DeleteInvoiceLineInput

type DeleteProfileRequest

type DeleteProfileRequest = billing.DeleteProfileInput

type DeleteProfileResponse

type DeleteProfileResponse = struct{}

type GetInvoiceParams

type GetInvoiceParams struct {
	InvoiceID           string
	Expand              []api.InvoiceExpand
	IncludeDeletedLines bool
}

type GetInvoiceRequest

type GetInvoiceRequest = billing.GetInvoiceByIdInput

type GetInvoiceResponse

type GetInvoiceResponse = api.Invoice

type GetLineParams

type GetLineParams struct {
	CustomerID string
	InvoiceID  string
	LineID     string
}

type GetLineRequest

type GetLineRequest struct {
	GetInvoiceLineInput billing.GetInvoiceLineInput
	CustomerID          string
}

type GetLineResponse

type GetLineResponse = api.InvoiceLine

type GetProfileParams

type GetProfileParams struct {
	ID     string
	Expand []api.BillingProfileExpand
}

type GetProfileRequest

type GetProfileRequest = billing.GetProfileInput

type GetProfileResponse

type GetProfileResponse = api.BillingProfile

type Handler

type Handler interface {
	ProfileHandler
	InvoiceLineHandler
	InvoiceHandler
}

func New

func New(
	namespaceDecoder namespacedriver.NamespaceDecoder,
	service billing.Service,
	options ...httptransport.HandlerOption,
) Handler

type InvoiceHandler

type InvoiceHandler interface {
	ListInvoices() ListInvoicesHandler
	InvoicePendingLinesAction() InvoicePendingLinesActionHandler
	DeleteInvoice() DeleteInvoiceHandler
	GetInvoice() GetInvoiceHandler
	ProgressInvoice(ProgressAction) ProgressInvoiceHandler
}

type InvoiceLineHandler

type InvoiceLineHandler interface {
	CreatePendingLine() CreatePendingLineHandler
	GetLine() GetLineHandler
	DeleteLine() DeleteLineHandler
	UpdateLine() UpdateLineHandler
}

type InvoicePendingLinesActionRequest

type InvoicePendingLinesActionRequest = billing.InvoicePendingLinesInput

type InvoicePendingLinesActionResponse

type InvoicePendingLinesActionResponse = []api.Invoice

type ListInvoicesParams

type ListInvoicesParams = api.ListInvoicesParams

type ListInvoicesRequest

type ListInvoicesRequest = billing.ListInvoicesInput

type ListInvoicesResponse

type ListInvoicesResponse = api.InvoicePaginatedResponse

type ListProfilesParams

type ListProfilesParams = api.ListBillingProfilesParams

type ListProfilesRequest

type ListProfilesRequest = billing.ListProfilesInput

type ListProfilesResponse

type ListProfilesResponse = api.BillingProfilePaginatedResponse

type ProfileHandler

type ProfileHandler interface {
	CreateProfile() CreateProfileHandler
	GetProfile() GetProfileHandler
	DeleteProfile() DeleteProfileHandler
	UpdateProfile() UpdateProfileHandler
	ListProfiles() ListProfilesHandler
}

type ProgressAction

type ProgressAction string
const (
	InvoiceProgressActionApprove ProgressAction = "approve"
	InvoiceProgressActionRetry   ProgressAction = "retry"
	InvoiceProgressActionAdvance ProgressAction = "advance"
)

type ProgressInvoiceParams

type ProgressInvoiceParams struct {
	InvoiceID string
}

type ProgressInvoiceRequest

type ProgressInvoiceRequest struct {
	Invoice billing.InvoiceID
}

type ProgressInvoiceResponse

type ProgressInvoiceResponse = api.Invoice

type UpdateLineParams

type UpdateLineParams struct {
	InvoiceID string
	LineID    string
}

type UpdateLineRequest

type UpdateLineRequest = billing.UpdateInvoiceLineInput

type UpdateLineResponse

type UpdateLineResponse = api.InvoiceLine

type UpdateProfileRequest

type UpdateProfileRequest = billing.UpdateProfileInput

type UpdateProfileResponse

type UpdateProfileResponse = api.BillingProfile

Jump to

Keyboard shortcuts

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