chast

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chast

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

func NewChast

func NewChast(opts Opts) *Chast

type Client

type Client struct {
	Inn  string `json:"inn"`
	Name Name   `json:"name"`
}

type ErrorBody

type ErrorBody struct {
	ErrorDescription string `json:"errorDescription"`
}

func (ErrorBody) Error

func (e ErrorBody) Error() string

type Name

type Name struct {
	Last   string `json:"last"`
	First  string `json:"first"`
	Middle string `json:"middle"`
}

type Opts

type Opts struct {
	// Mode - режим роботи, може бути test, stage, prod
	Mode    string
	StoreID string
	Key     string
	Client  *http.Client
}

type PersonalDataRequest

type PersonalDataRequest struct {
	CallbackURL string `json:"callbackUrl"`
	Extref      string `json:"extref"`
	Phone       string `json:"phone"`
}

PersonalDataRequest тіло запиту на отримання персональних даних

type PersonalDataResponse

type PersonalDataResponse struct {
	Extref        string  `json:"extref"`
	ClientPhone   string  `json:"clientPhone,omitempty"`
	OrderSubState string  `json:"order_sub_state"`
	Client        *Client `json:"client,omitempty"`
}

PersonalDataResponse тіло відповіді на отримання персональних даних

Jump to

Keyboard shortcuts

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