fraud

package
v0.0.0-...-e0d82eb Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(logger *slog.Logger) http.Handler

Router implements the http.Handler interface for the Billing API

Types

type FraudCheckInput

type FraudCheckInput struct {
	CustomerID string `json:"customerId"`
	Charge     int32  `json:"charge"`
}

FraudCheckInput is the input for the check endpoint.

type FraudCheckResult

type FraudCheckResult struct {
	Declined bool `json:"declined"`
}

FraudCheckResult is the result for the check endpoint.

type FraudLimitInput

type FraudLimitInput struct {
	Limit int32 `json:"limit"`
}

FraudLimitInput is the input for the SetLimit API.

type FraudSettingsResult

type FraudSettingsResult struct {
	Limit           int32 `json:"limit"`
	MaintenanceMode bool  `json:"maintenanceMode"`
}

FraudSettingsResult is the result for the GetSettings API.

Jump to

Keyboard shortcuts

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