diyamodule

package module
v0.0.0-...-87f4dd4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 14 Imported by: 0

README

go-diyamodule

golang module for diya sharing

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACQUIRER_TOKEN string
View Source
var AUTH_ACQUIRER_TOKEN string
View Source
var App core.App
View Source
var URL = "api2s.diia.gov.ua"

Functions

func Configure

func Configure(a core.App, acquirer_token string, auth_acquirer_token string)

func CreateBranch

func CreateBranch(session_token string) (string, error)

func CreateOffer

func CreateOffer(branch_id, session_token string) (string, error)

func GenMD5Hash

func GenMD5Hash() string
func RequestDeeplink(branch_id, offer_id, session_token, request_id string) (string, error)

func RequestSessionToken

func RequestSessionToken() (string, error)

Types

type DeepLinkData

type DeepLinkData struct {
	Deeplink string `json:"deeplink"`
}

type DiyaData

type DiyaData struct {
	gorm.Model
	Userrequestid string `json:"userrequestid"`
	Deeplink      string `json:"deeplink"`
	Rawdata       string `json:"rawdata"`
}

type DiyaDeepLinkRes

type DiyaDeepLinkRes struct {
	DeepLink      string `json:"deeplink"`
	UserRequestID string `json:"userrequestid"`
}

type IDRequesData

type IDRequesData struct {
	ID string `json:"_id"`
}

type TokenRequesData

type TokenRequesData struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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