Documentation
¶
Index ¶
- Constants
- Variables
- type CreatePendingLineHandler
- type CreatePendingLineRequest
- type CreatePendingLineResponse
- type CreateProfileHandler
- type CreateProfileRequest
- type CreateProfileResponse
- type DeleteInvoiceHandler
- type DeleteInvoiceParams
- type DeleteInvoiceRequest
- type DeleteInvoiceResponse
- type DeleteProfileHandler
- type DeleteProfileRequest
- type DeleteProfileResponse
- type GetInvoiceHandler
- type GetInvoiceParams
- type GetInvoiceRequest
- type GetInvoiceResponse
- type GetProfileHandler
- type GetProfileParams
- type GetProfileRequest
- type GetProfileResponse
- type Handler
- type InvoiceHandler
- type InvoiceLineHandler
- type InvoicePendingLinesActionHandler
- type InvoicePendingLinesActionRequest
- type InvoicePendingLinesActionResponse
- type ListInvoicesHandler
- type ListInvoicesParams
- type ListInvoicesRequest
- type ListInvoicesResponse
- type ListProfilesHandler
- type ListProfilesParams
- type ListProfilesRequest
- type ListProfilesResponse
- type ProfileHandler
- type ProgressAction
- type ProgressInvoiceHandler
- type ProgressInvoiceParams
- type ProgressInvoiceRequest
- type ProgressInvoiceResponse
- type SimulateInvoiceHandler
- type SimulateInvoiceParams
- type SimulateInvoiceRequest
- type SimulateInvoiceResponse
- type UpdateInvoiceHandler
- type UpdateInvoiceParams
- type UpdateInvoiceRequest
- type UpdateInvoiceResponse
- type UpdateProfileHandler
- type UpdateProfileRequest
- type UpdateProfileResponse
Constants ¶
View Source
const ( DefaultPageSize = 100 DefaultPageNumber = 1 DefaultIncludeArchived = false DefaultInvoiceTimezone = "UTC" )
Variables ¶
View Source
var ( InvoiceProgressActions = []ProgressAction{ InvoiceProgressActionApprove, InvoiceProgressActionRetry, InvoiceProgressActionAdvance, } )
Functions ¶
This section is empty.
Types ¶
type CreatePendingLineHandler ¶
type CreatePendingLineHandler = httptransport.Handler[CreatePendingLineRequest, CreatePendingLineResponse]
type CreatePendingLineRequest ¶
type CreatePendingLineRequest = billing.CreateInvoiceLinesInput
type CreatePendingLineResponse ¶
type CreatePendingLineResponse = []api.InvoiceLine
type CreateProfileHandler ¶
type CreateProfileHandler httptransport.Handler[CreateProfileRequest, CreateProfileResponse]
type CreateProfileRequest ¶
type CreateProfileRequest = billing.CreateProfileInput
type CreateProfileResponse ¶
type CreateProfileResponse = api.BillingProfile
type DeleteInvoiceHandler ¶
type DeleteInvoiceHandler httptransport.HandlerWithArgs[DeleteInvoiceRequest, DeleteInvoiceResponse, DeleteInvoiceParams]
type DeleteInvoiceParams ¶
type DeleteInvoiceParams struct {
InvoiceID string
}
type DeleteInvoiceRequest ¶
type DeleteInvoiceRequest = billing.DeleteInvoiceInput
type DeleteInvoiceResponse ¶
type DeleteInvoiceResponse = struct{}
type DeleteProfileHandler ¶
type DeleteProfileHandler httptransport.HandlerWithArgs[DeleteProfileRequest, DeleteProfileResponse, string]
type DeleteProfileRequest ¶
type DeleteProfileRequest = billing.DeleteProfileInput
type DeleteProfileResponse ¶
type DeleteProfileResponse = struct{}
type GetInvoiceHandler ¶
type GetInvoiceHandler httptransport.HandlerWithArgs[GetInvoiceRequest, GetInvoiceResponse, GetInvoiceParams]
type GetInvoiceParams ¶
type GetInvoiceParams struct {
InvoiceID string
Expand []api.InvoiceExpand
IncludeDeletedLines bool
}
type GetInvoiceRequest ¶
type GetInvoiceRequest = billing.GetInvoiceByIdInput
type GetInvoiceResponse ¶
type GetProfileHandler ¶
type GetProfileHandler httptransport.HandlerWithArgs[GetProfileRequest, GetProfileResponse, GetProfileParams]
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( 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 InvoicePendingLinesActionHandler ¶
type InvoicePendingLinesActionHandler httptransport.Handler[InvoicePendingLinesActionRequest, InvoicePendingLinesActionResponse]
type InvoicePendingLinesActionRequest ¶
type InvoicePendingLinesActionRequest = billing.InvoicePendingLinesInput
type ListInvoicesHandler ¶
type ListInvoicesHandler httptransport.HandlerWithArgs[ListInvoicesRequest, ListInvoicesResponse, ListInvoicesParams]
type ListInvoicesParams ¶
type ListInvoicesParams = api.ListInvoicesParams
type ListInvoicesRequest ¶
type ListInvoicesRequest = billing.ListInvoicesInput
type ListInvoicesResponse ¶
type ListInvoicesResponse = api.InvoicePaginatedResponse
type ListProfilesHandler ¶
type ListProfilesHandler httptransport.HandlerWithArgs[ListProfilesRequest, ListProfilesResponse, ListProfilesParams]
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 ProgressInvoiceHandler ¶
type ProgressInvoiceHandler httptransport.HandlerWithArgs[ProgressInvoiceRequest, ProgressInvoiceResponse, ProgressInvoiceParams]
type ProgressInvoiceParams ¶
type ProgressInvoiceParams struct {
InvoiceID string
}
type ProgressInvoiceRequest ¶
type ProgressInvoiceResponse ¶
type SimulateInvoiceHandler ¶
type SimulateInvoiceHandler httptransport.HandlerWithArgs[SimulateInvoiceRequest, SimulateInvoiceResponse, SimulateInvoiceParams]
type SimulateInvoiceParams ¶
type SimulateInvoiceParams struct {
CustomerID string
}
type SimulateInvoiceRequest ¶
type SimulateInvoiceRequest = billing.SimulateInvoiceInput
type SimulateInvoiceResponse ¶
type UpdateInvoiceHandler ¶
type UpdateInvoiceHandler httptransport.HandlerWithArgs[UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateInvoiceParams]
type UpdateInvoiceParams ¶
type UpdateInvoiceParams struct {
InvoiceID string
}
type UpdateInvoiceRequest ¶
type UpdateInvoiceRequest struct {
InvoiceID billing.InvoiceID
Input api.InvoiceReplaceUpdate
}
type UpdateInvoiceResponse ¶
type UpdateProfileHandler ¶
type UpdateProfileHandler httptransport.HandlerWithArgs[UpdateProfileRequest, UpdateProfileResponse, string]
type UpdateProfileRequest ¶
type UpdateProfileRequest = billing.UpdateProfileInput
type UpdateProfileResponse ¶
type UpdateProfileResponse = api.BillingProfile
Click to show internal directories.
Click to hide internal directories.