rest

package
v0.0.0-...-a0cf74a Latest Latest
Warning

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

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

Documentation

Overview

@openapi 3.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeMe

func AuthorizeMe(s *service.Services) gin.HandlerFunc
func GetInvoicePaymentLink(services *service.Services) gin.HandlerFunc

func RedirectToPayInvoice

func RedirectToPayInvoice(services *service.Services) gin.HandlerFunc

func SendError

func SendError(c *gin.Context, span opentracing.Span, httpStatusCode int, err *enum.ErrorResponse)

func ValidateAndOpenCsvFile

func ValidateAndOpenCsvFile(c *gin.Context, span opentracing.Span) (multipart.File, error)

func ValidateTenant

func ValidateTenant(c *gin.Context, ctx context.Context, span opentracing.Span) string

Types

type ApiRequestCreatePaymentLinks struct {
	Input ApiRequestCreatePaymentLinksInput `json:"input"`
}

type ApiRequestCreatePaymentLinksInput

type ApiRequestCreatePaymentLinksInput struct {
	InvoiceId                    string `json:"invoiceId"`
	AmountInSmallestCurrencyUnit int64  `json:"amountInSmallestCurrencyUnit"`
	Currency                     string `json:"currency"`
	InvoiceDescription           string `json:"invoiceDescription"`
	CustomerEmail                string `json:"customerEmail"`
	PrimaryStripeCustomerId      string `json:"stripeCustomerId"`
}

type MeResponse

type MeResponse struct {
	enum.BaseResponse
	Tenant string `json:"tenant"`
}

Directories

Path Synopsis
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0
@openapi 3.0.0

Jump to

Keyboard shortcuts

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