httpdriver

package
v1.0.0-beta.205 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

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

Variables

Functions

This section is empty.

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 CustomerOverrideHandler

type CustomerOverrideHandler interface {
	ListCustomerOverrides() ListCustomerOverridesHandler
	UpsertCustomerOverride() UpsertCustomerOverrideHandler
	GetCustomerOverride() GetCustomerOverrideHandler
	DeleteCustomerOverride() DeleteCustomerOverrideHandler
}

type DeleteCustomerOverrideParams

type DeleteCustomerOverrideParams struct {
	CustomerId string `json:"customerId"`
}

type DeleteCustomerOverrideRequest

type DeleteCustomerOverrideRequest = billing.DeleteCustomerOverrideInput

type DeleteCustomerOverrideResponse

type DeleteCustomerOverrideResponse = struct{}

type DeleteInvoiceParams

type DeleteInvoiceParams struct {
	InvoiceID string
}

type DeleteInvoiceRequest

type DeleteInvoiceRequest = billing.DeleteInvoiceInput

type DeleteInvoiceResponse

type DeleteInvoiceResponse = struct{}

type DeleteProfileRequest

type DeleteProfileRequest = billing.DeleteProfileInput

type DeleteProfileResponse

type DeleteProfileResponse = struct{}

type GetCustomerOverrideParams

type GetCustomerOverrideParams struct {
	CustomerId string `json:"customerId"`
	Expand     *api.BillingProfileListCustomerOverridesParamsExpand
}

type GetCustomerOverrideRequest

type GetCustomerOverrideRequest = billing.GetCustomerOverrideInput

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 GetProfileParams

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

type GetProfileRequest

type GetProfileRequest = billing.GetProfileInput

type GetProfileResponse

type GetProfileResponse = api.BillingProfile

type Handler

func New

func New(
	logger *slog.Logger,
	namespaceDecoder namespacedriver.NamespaceDecoder,
	service billing.Service,
	stripeAppService appstripe.Service,
	options ...httptransport.HandlerOption,
) Handler

type InvoiceHandler

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

type InvoiceLineHandler

type InvoiceLineHandler interface {
	CreatePendingLine() CreatePendingLineHandler
}

type InvoicePendingLinesActionRequest

type InvoicePendingLinesActionRequest = billing.InvoicePendingLinesInput

type InvoicePendingLinesActionResponse

type InvoicePendingLinesActionResponse = []api.Invoice

type ListCustomerOverridesRequest

type ListCustomerOverridesRequest = billing.ListCustomerOverridesInput

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 SimulateInvoiceParams

type SimulateInvoiceParams struct {
	CustomerID string
}

type SimulateInvoiceRequest

type SimulateInvoiceRequest = billing.SimulateInvoiceInput

type SimulateInvoiceResponse

type SimulateInvoiceResponse = api.Invoice

type UpdateInvoiceParams

type UpdateInvoiceParams struct {
	InvoiceID string
}

type UpdateInvoiceRequest

type UpdateInvoiceRequest struct {
	InvoiceID billing.InvoiceID
	Input     api.InvoiceReplaceUpdate
}

type UpdateInvoiceResponse

type UpdateInvoiceResponse = api.Invoice

type UpdateProfileRequest

type UpdateProfileRequest = billing.UpdateProfileInput

type UpdateProfileResponse

type UpdateProfileResponse = api.BillingProfile

type UpsertCustomerOverrideParams

type UpsertCustomerOverrideParams struct {
	CustomerId string `json:"customerId"`
}

type UpsertCustomerOverrideRequest

type UpsertCustomerOverrideRequest = billing.UpsertCustomerOverrideInput

Jump to

Keyboard shortcuts

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