schema

package
v0.0.0-...-b5784f9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplePaymentResponse

type ApplePaymentResponse struct {
	Data struct {
		OrderID string `json:"orderId"`
	} `json:"data"`
	OrderStatus struct {
		ActionCode            int    `json:"actionCode"`
		ActionCodeDescription string `json:"actionCodeDescription"`
		Amount                int    `json:"amount"`
		Attributes            []struct {
			Name  string `json:"name"`
			Value string `json:"value"`
		} `json:"attributes"`
		AuthDateTime int    `json:"authDateTime"`
		AuthRefNum   string `json:"authRefNum"`
		BankInfo     struct {
			BankCountryName string `json:"bankCountryName"`
		} `json:"bankInfo"`
		CardAuthInfo struct {
			ApprovalCode   string `json:"approvalCode"`
			CardholderName string `json:"cardholderName"`
			Expiration     string `json:"expiration"`
			Pan            string `json:"pan"`
		} `json:"cardAuthInfo"`
		Currency            string `json:"currency"`
		Date                int    `json:"date"`
		ErrorCode           string `json:"errorCode"`
		IP                  string `json:"ip"`
		MerchantOrderParams []struct {
			Name  string `json:"name"`
			Value string `json:"value"`
		} `json:"merchantOrderParams"`
		OrderNumber       string `json:"orderNumber"`
		OrderStatus       int    `json:"orderStatus"`
		PaymentAmountInfo struct {
			ApprovedAmount  int    `json:"approvedAmount"`
			DepositedAmount int    `json:"depositedAmount"`
			PaymentState    string `json:"paymentState"`
			RefundedAmount  int    `json:"refundedAmount"`
		} `json:"paymentAmountInfo"`
		TerminalID string `json:"terminalId"`
	} `json:"orderStatus"`
	Success bool `json:"success"`
	Error   struct {
		Code        string `json:"code"`
		Description string `json:"description"`
		Message     string `json:"message"`
	} `json:"error,omitempty"`
}

ApplePaymentResponse is response from PayWithApplePay request

type BindingsResponse

type BindingsResponse struct {
	ErrorCode    int    `json:"errorCode,string"`
	ErrorMessage string `json:"errorMessage,omitempty"`
	Bindings     []struct {
		BindingId  string `json:"bindingId,omitempty"`
		MaskedPan  string `json:"maskedPan,omitempty"`
		ExpiryDate string `json:"expiryDate,omitempty"`
	} `json:"bindings,omitempty"`
}

BindingsResponse is mapped Binding response from GetBindings request

type EnrollmentResponse

type EnrollmentResponse struct {
	ErrorCode          int    `json:"errorCode,string,omitempty"`
	ErrorMessage       string `json:"errorMessage,omitempty"`
	Enrolled           byte   `json:"enrollment,omitempty"`
	EmitterName        string `json:"emitterName,omitempty"`
	EmitterCountryCode string `json:"emitterCountryCode,omitempty"`
}

EnrollmentResponse is response mapping from Enrollment request

type GooglePaymentResponse

type GooglePaymentResponse struct {
	Success bool `json:"success"`
	Data    struct {
		OrderID string `json:"orderId,omitempty"`
	} `json:"data"`
	Error struct {
		Code        int    `json:"code"`
		Description string `json:"description"`
		Message     string `json:"message"`
	} `json:"error,omitempty"`
}

GooglePaymentResponse is response from PayWithGooglePay request

type OrderResponse

type OrderResponse struct {
	OrderId      string `json:"orderId,omitempty"`
	FormUrl      string `json:"formUrl,omitempty"`
	ErrorCode    int    `json:"errorCode,string,omitempty"`
	ErrorMessage string `json:"errorMessage,omitempty"`
}

OrderResponse is response received from RegisterOrder and RegisterOrderPreAuth requests

type OrderStatusResponse

type OrderStatusResponse struct {
	OrderNumber           string `json:"orderNumber"`
	OrderStatus           int    `json:"orderStatus,omitempty"`
	ActionCode            int    `json:"actionCode"`
	ActionCodeDescription string `json:"actionCodeDescription"`
	ErrorCode             int    `json:"errorCode,string,omitempty"`
	ErrorMessage          string `json:"errorMessage,omitempty"`
	Amount                int    `json:"amount"`
	Currency              string `json:"currency,omitempty"`
	Date                  int64  `json:"date"`
	OrderDescription      string `json:"orderDescription,omitempty"`
	Ip                    string `json:"ip"`
	MerchantOrderParams   []struct {
		Name  string `json:"name"`
		Value string `json:"value"`
	} `json:"merchantOrderParams"`
	Attributes []struct {
		Name  string `json:"name"`
		Value string `json:"value"`
	}
	CardAuthInfo struct {
		MaskedPan      string `json:"maskedPan,omitempty"`
		Expiration     string `json:"expiration,omitempty"`
		CardholderName string `json:"cardholderName,omitempty"`
		ApprovalCode   string `json:"approvalCode,omitempty"`
		Chargeback     string `json:"chargeback,omitempty"`
		PaymentSystem  string `json:"paymentSystem"`
		Product        string `json:"product"`
		PaymentWay     string `json:"paymentWay"`
		SecureAuthInfo struct {
			Eci         int `json:"eci"`
			ThreeDSInfo struct {
				Xid string `json:"xid"`
			} `json:"threeDSInfo"`
		} `json:"secureAuthInfo"`
	} `json:"cardAuthInfo"`
	BankInfo struct {
		BankName        string `json:"bankName"`
		BankCountryCode string `json:"bankCountryCode"`
		BankCountryName string `json:"bankCountryName"`
	} `json:"bankName,omitempty"`
	TerminalId        string `json:"terminalId"`
	PaymentAmountInfo struct {
		ApprovedAmount  int    `json:"approvedAmount,omitempty"`
		DepositedAmount int    `json:"depositedAmount,omitempty"`
		RefundedAmount  int    `json:"refundedAmount,omitempty"`
		PaymentState    string `json:"paymentState"`
		FeeAmount       int    `json:"feeAmount"`
	} `json:"paymentAmountInfo,omitempty"`
}

OrderStatusResponse is response from GetOrderStatus request

type ReceiptStatus

type ReceiptStatus struct {
	ErrorCode    int    `json:"errorCode,string,omitempty"`
	ErrorMessage string `json:"errorMessage,omitempty"`
	OrderNumber  string `json:"orderNumber,omitempty"`
	OrderId      string `json:"orderId,omitempty"`
	DaemonCode   string `json:"daemonCode,omitempty"`
	DeviceCode   string `json:"deviceCode,omitempty"`
	Receipt      []struct {
		ReceiptStatus           int    `json:"receiptStatus,omitempty"`
		Uuid                    string `json:"uuid,omitempty"`
		ShiftNumber             int    `json:"shift_number,omitempty"`
		ReceiptNumber           int    `json:"receipt_number,omitempty"`
		ReceiptDatetime         string `json:"receipt_datetime,omitempty"`
		FnNumber                string `json:"fn_number,omitempty"`
		DeviceNumber            string `json:"device_number,omitempty"`
		FiscalDocumentNumber    int    `json:"fiscal_document_number,omitempty"`
		FiscalDocumentAttribute string `json:"fiscal_document_attribute,omitempty"`
		AmountTotal             string `json:"amount_total,omitempty"`
		SerialNumber            string `json:"serial_number,omitempty"`
		FnsSite                 string `json:"fnsSite,omitempty"`
		OFD                     struct {
			Name    string `json:"name,omitempty"`
			Website string `json:"website,omitempty"`
			INN     string `json:"receipt_number,omitempty"`
		} `json:"OFD,omitempty"`
	} `json:"receipt"`
}

ReceiptStatus is response received from GetReceiptStatus

type Response

type Response struct {
	ErrorCode    int    `json:"errorCode,string,omitempty"`
	ErrorMessage string `json:"errorMessage,omitempty"`
}

Response is mapped response received from Sberbank API

type SamsungPaymentResponse

type SamsungPaymentResponse struct {
	Success bool `json:"success"`
	Data    struct {
		OrderID string `json:"orderId,omitempty"`
	} `json:"data"`
	Error struct {
		Code        int    `json:"code"`
		Description string `json:"description"`
		Message     string `json:"message"`
	} `json:"error,omitempty"`
}

SamsungPaymentResponse is response from PayWithSamsungPay request

Jump to

Keyboard shortcuts

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