suppliers

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumverifyErrorResponse added in v2.8.0

type NumverifyErrorResponse struct {
	Message string `json:"message"`
}

type NumverifyRequest added in v2.11.0

type NumverifyRequest struct {
	// contains filtered or unexported fields
}

func (*NumverifyRequest) SetApiKey added in v2.11.0

func (*NumverifyRequest) ValidateNumber added in v2.11.0

func (r *NumverifyRequest) ValidateNumber(internationalNumber string) (res *NumverifyValidateResponse, err error)

type NumverifySupplier

type NumverifySupplier struct {
	Uri string
}

func NewNumverifySupplier

func NewNumverifySupplier() *NumverifySupplier

func (*NumverifySupplier) Request added in v2.11.0

type NumverifySupplierInterface

type NumverifySupplierInterface interface {
	Request() NumverifySupplierRequestInterface
}

type NumverifySupplierRequestInterface added in v2.11.0

type NumverifySupplierRequestInterface interface {
	SetApiKey(string) NumverifySupplierRequestInterface
	ValidateNumber(string) (*NumverifyValidateResponse, error)
}

type NumverifyValidateResponse

type NumverifyValidateResponse struct {
	Valid               bool   `json:"valid"`
	Number              string `json:"number"`
	LocalFormat         string `json:"local_format"`
	InternationalFormat string `json:"international_format"`
	CountryPrefix       string `json:"country_prefix"`
	CountryCode         string `json:"country_code"`
	CountryName         string `json:"country_name"`
	Location            string `json:"location"`
	Carrier             string `json:"carrier"`
	LineType            string `json:"line_type"`
}

NumverifyValidateResponse REST API response

type OVHAPIErrorResponse added in v2.8.1

type OVHAPIErrorResponse struct {
	Message string `json:"message"`
}

type OVHAPIResponseNumber

type OVHAPIResponseNumber struct {
	MatchingCriteria    interface{} `json:"matchingCriteria"`
	City                string      `json:"city"`
	ZneList             []string    `json:"zne-list"`
	InternationalNumber string      `json:"internationalNumber"`
	Country             string      `json:"country"`
	AskedCity           interface{} `json:"askedCity"`
	ZipCode             string      `json:"zipCode"`
	Number              string      `json:"number"`
	Prefix              int         `json:"prefix"`
}

OVHAPIResponseNumber is a type that describes an OVH number range

type OVHScannerResponse

type OVHScannerResponse struct {
	Found       bool
	NumberRange string
	City        string
	ZipCode     string
}

OVHScannerResponse is the OVH scanner response

type OVHSupplier

type OVHSupplier struct{}

func NewOVHSupplier

func NewOVHSupplier() *OVHSupplier

func (*OVHSupplier) Search

func (s *OVHSupplier) Search(num number.Number) (*OVHScannerResponse, error)

type OVHSupplierInterface

type OVHSupplierInterface interface {
	Search(number.Number) (*OVHScannerResponse, error)
}

Jump to

Keyboard shortcuts

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