Skip to content

Instantly share code, notes, and snippets.

@jehy

jehy/smth.tlh Secret

Created August 4, 2016 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jehy/bbd9606406587ef98f308a3c65a4b3c1 to your computer and use it in GitHub Desktop.
Save jehy/bbd9606406587ef98f308a3c65a4b3c1 to your computer and use it in GitHub Desktop.
// Created by Microsoft (R) C/C++ Compiler Version 14.00.24210.0 (a9e57904).
//
// c:\all\mobile\windemo\paymedemo\paymedemo.comconsoledemo\debug\paymesdk.tlh
//
// C++ source equivalent of Win32 type library COM\PayMeSDK.tlb
// compiler-generated file created 08/04/16 at 18:27:28 - DO NOT EDIT!
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
namespace PayMeSDK {
//
// Forward references and typedefs
//
struct __declspec(uuid("5b188c96-1019-3fa6-8af6-dc10d5a52280"))
/* LIBID */ __PayMeSDK;
struct /* coclass */ Limits;
struct /* coclass */ BluetoothDeviceModel;
struct /* coclass */ GeoLocationModel;
struct /* coclass */ AppVersionHelper;
enum Status;
struct __declspec(uuid("364c5e66-4412-48e3-8bd8-7b2bf09e8922"))
/* dual interface */ IPayMeLogic;
struct /* coclass */ ComPayMeLogic;
struct /* coclass */ PayMeLogic;
struct /* coclass */ ErrorResponseModel;
struct /* coclass */ PaymentResponseModel;
struct /* coclass */ Payments;
struct /* coclass */ Payment;
struct /* coclass */ PushReceiptRequestModel;
struct /* coclass */ PaymentLimits;
struct /* coclass */ PurchaseReply;
enum Language;
enum LoginStatus;
enum PurchaseStatus;
enum ReaderType;
struct __declspec(uuid("cd836320-7148-3e93-8078-75ac151997b4"))
/* dual interface */ _Limits;
struct __declspec(uuid("de3e6761-c439-3d81-9192-4dc0472a2808"))
/* dual interface */ _BluetoothDeviceModel;
struct __declspec(uuid("aa11ee20-0045-375c-b6c4-b3b291e86b39"))
/* dual interface */ _GeoLocationModel;
struct __declspec(uuid("be65bb39-8acc-324b-92db-da9aa238640a"))
/* dual interface */ _AppVersionHelper;
struct __declspec(uuid("476f3108-fc6f-39bf-9729-2ed926963d8a"))
/* dual interface */ _PayMeLogic;
struct __declspec(uuid("73377daf-6f8c-3ffb-82a6-8c8b5d12f4ea"))
/* dual interface */ _ErrorResponseModel;
struct __declspec(uuid("431affe5-61e4-3985-89fb-64f6d1bd9ad4"))
/* dual interface */ _PaymentResponseModel;
struct __declspec(uuid("930caa63-d54c-3abe-a812-d57624c658d8"))
/* dual interface */ _Payments;
struct __declspec(uuid("7003a837-b4d5-3eb1-8120-590cb341050e"))
/* dual interface */ _Payment;
struct __declspec(uuid("d9ed64b5-43f8-38e9-9d43-f358229dd9d5"))
/* dual interface */ _PushReceiptRequestModel;
struct __declspec(uuid("a140b65c-cc54-324e-926a-3243e03b89e2"))
/* dual interface */ _PaymentLimits;
struct __declspec(uuid("299b5fee-a07a-3f66-a407-fa842661de8a"))
/* dual interface */ _PurchaseReply;
//
// Smart pointer typedef declarations
//
_COM_SMARTPTR_TYPEDEF(_Limits, __uuidof(_Limits));
_COM_SMARTPTR_TYPEDEF(_BluetoothDeviceModel, __uuidof(_BluetoothDeviceModel));
_COM_SMARTPTR_TYPEDEF(_GeoLocationModel, __uuidof(_GeoLocationModel));
_COM_SMARTPTR_TYPEDEF(_AppVersionHelper, __uuidof(_AppVersionHelper));
_COM_SMARTPTR_TYPEDEF(_PayMeLogic, __uuidof(_PayMeLogic));
_COM_SMARTPTR_TYPEDEF(_ErrorResponseModel, __uuidof(_ErrorResponseModel));
_COM_SMARTPTR_TYPEDEF(_PaymentResponseModel, __uuidof(_PaymentResponseModel));
_COM_SMARTPTR_TYPEDEF(_Payments, __uuidof(_Payments));
_COM_SMARTPTR_TYPEDEF(_Payment, __uuidof(_Payment));
_COM_SMARTPTR_TYPEDEF(_PushReceiptRequestModel, __uuidof(_PushReceiptRequestModel));
_COM_SMARTPTR_TYPEDEF(_PaymentLimits, __uuidof(_PaymentLimits));
_COM_SMARTPTR_TYPEDEF(_PurchaseReply, __uuidof(_PurchaseReply));
_COM_SMARTPTR_TYPEDEF(IPayMeLogic, __uuidof(IPayMeLogic));
//
// Type library items
//
struct __declspec(uuid("a4ebf0fd-58fb-38dc-86b3-7d02d16f2fd1"))
Limits;
// [ default ] interface _Limits
// interface _Object
struct __declspec(uuid("a0eb45f0-03b9-3945-855b-7c00a4702917"))
BluetoothDeviceModel;
// [ default ] interface _BluetoothDeviceModel
// interface _Object
struct __declspec(uuid("3e82d82d-e351-3e18-ac23-27452be50857"))
GeoLocationModel;
// [ default ] interface _GeoLocationModel
// interface _Object
struct __declspec(uuid("70f12b3e-2336-3dbd-850c-a44cbfc4b017"))
AppVersionHelper;
// [ default ] interface _AppVersionHelper
// interface _Object
enum __declspec(uuid("67bae2fc-1eff-33ef-990b-1b35df054120"))
Status
{
Status_Success = 0,
Status_Error = 1
};
struct __declspec(uuid("8c034f6a-1a30-4db8-bc99-b73873d8c297"))
ComPayMeLogic;
// interface _Object
// [ default ] interface IPayMeLogic
struct __declspec(uuid("337a36d8-8296-32d9-9031-979d9aff42fb"))
PayMeLogic;
// [ default ] interface _PayMeLogic
// interface _Object
struct __declspec(uuid("fcd0742f-bb8c-35af-8cd5-7b61a0076868"))
ErrorResponseModel;
// [ default ] interface _ErrorResponseModel
// interface _Object
struct __declspec(uuid("f3bd556f-dfd3-33b7-84ce-98aebc8cb486"))
PaymentResponseModel;
// [ default ] interface _PaymentResponseModel
// interface _Object
struct __declspec(uuid("0efa4f46-e562-3d5c-bd31-329a0ab186ae"))
Payments;
// [ default ] interface _Payments
// interface _Object
struct __declspec(uuid("ea27ddf4-8c79-3ee5-bc38-201018e156eb"))
Payment;
// [ default ] interface _Payment
// interface _Object
struct __declspec(uuid("039faf41-1a93-32c9-bd38-08db0647ef51"))
PushReceiptRequestModel;
// [ default ] interface _PushReceiptRequestModel
// interface _Object
struct __declspec(uuid("504c17d0-155c-3e8e-944a-d631753084ad"))
PaymentLimits;
// [ default ] interface _PaymentLimits
// interface _Object
struct __declspec(uuid("659b2fb1-ef05-34b9-b0f8-7cfb422a804d"))
PurchaseReply;
// [ default ] interface _PurchaseReply
// interface _Object
enum __declspec(uuid("594c3237-a55e-3b90-85c9-a3108593ea7f"))
Language
{
Language_ru = 0,
Language_en = 1
};
enum __declspec(uuid("bb458456-c903-3859-b2a9-b90f1364bc36"))
LoginStatus
{
LoginStatus_Success = 0,
LoginStatus_Error = 1,
LoginStatus_WrongData = 2,
LoginStatus_TokenNotFound = 3
};
enum __declspec(uuid("9ae46ea0-ddc8-33c0-b420-02fb9b373978"))
PurchaseStatus
{
PurchaseStatus_Success = 0,
PurchaseStatus_ConnectingReader = 1,
PurchaseStatus_Error = 2,
PurchaseStatus_ReaderReady = 3,
PurchaseStatus_Processing = 4,
PurchaseStatus_ReaderDisconnected = 5,
PurchaseStatus_SignatureRequared = 6,
PurchaseStatus_ReaderConnectError = 7
};
enum __declspec(uuid("ad824013-15ca-3340-86f8-7b9aaf554939"))
ReaderType
{
ReaderType_SunyardPinPad = 0
};
struct __declspec(uuid("cd836320-7148-3e93-8078-75ac151997b4"))
_Limits : IDispatch
{};
struct __declspec(uuid("de3e6761-c439-3d81-9192-4dc0472a2808"))
_BluetoothDeviceModel : IDispatch
{};
struct __declspec(uuid("aa11ee20-0045-375c-b6c4-b3b291e86b39"))
_GeoLocationModel : IDispatch
{};
struct __declspec(uuid("be65bb39-8acc-324b-92db-da9aa238640a"))
_AppVersionHelper : IDispatch
{};
struct __declspec(uuid("476f3108-fc6f-39bf-9729-2ed926963d8a"))
_PayMeLogic : IDispatch
{};
struct __declspec(uuid("73377daf-6f8c-3ffb-82a6-8c8b5d12f4ea"))
_ErrorResponseModel : IDispatch
{};
struct __declspec(uuid("431affe5-61e4-3985-89fb-64f6d1bd9ad4"))
_PaymentResponseModel : IDispatch
{};
struct __declspec(uuid("930caa63-d54c-3abe-a812-d57624c658d8"))
_Payments : IDispatch
{};
struct __declspec(uuid("7003a837-b4d5-3eb1-8120-590cb341050e"))
_Payment : IDispatch
{};
struct __declspec(uuid("d9ed64b5-43f8-38e9-9d43-f358229dd9d5"))
_PushReceiptRequestModel : IDispatch
{};
struct __declspec(uuid("a140b65c-cc54-324e-926a-3243e03b89e2"))
_PaymentLimits : IDispatch
{};
struct __declspec(uuid("299b5fee-a07a-3f66-a407-fa842661de8a"))
_PurchaseReply : IDispatch
{};
struct __declspec(uuid("364c5e66-4412-48e3-8bd8-7b2bf09e8922"))
IPayMeLogic : IDispatch
{
//
// Wrapper methods for error-handling
//
enum LoginStatus Login (
_bstr_t Login,
_bstr_t password,
VARIANT_BOOL testEnviroment,
enum Language locale,
VARIANT_BOOL savePassword,
_bstr_t applicationToken );
enum LoginStatus LoginWithToken (
_bstr_t locale,
VARIANT_BOOL testEnviroment,
_bstr_t applicationToken );
HRESULT CancelPurchase ( );
HRESULT Purchase (
struct _BluetoothDeviceModel * readerId,
const DECIMAL & amount,
_bstr_t describe,
_bstr_t email,
_bstr_t phone,
const _variant_t & additionalFields );
VARIANT_BOOL PushReceipt (
VARIANT_BOOL fiscalMode,
_bstr_t transactionId,
_bstr_t printerSerialNumb );
_PaymentsPtr GetPayments (
DATE dateFrom,
DATE dateTo );
enum Status DoReversal (
_bstr_t paymentId );
SAFEARRAY * GetAvailableDevices ( );
enum PurchaseStatus ContinuePurchaseWithSignature (
SAFEARRAY * signature );
_PurchaseReplyPtr CheckPurchaseStatus ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Login (
/*[in]*/ BSTR Login,
/*[in]*/ BSTR password,
/*[in]*/ VARIANT_BOOL testEnviroment,
/*[in]*/ enum Language locale,
/*[in]*/ VARIANT_BOOL savePassword,
/*[in]*/ BSTR applicationToken,
/*[out,retval]*/ enum LoginStatus * pRetVal ) = 0;
virtual HRESULT __stdcall raw_LoginWithToken (
/*[in]*/ BSTR locale,
/*[in]*/ VARIANT_BOOL testEnviroment,
/*[in]*/ BSTR applicationToken,
/*[out,retval]*/ enum LoginStatus * pRetVal ) = 0;
virtual HRESULT __stdcall raw_CancelPurchase ( ) = 0;
virtual HRESULT __stdcall raw_Purchase (
/*[in]*/ struct _BluetoothDeviceModel * readerId,
/*[in]*/ DECIMAL amount,
/*[in]*/ BSTR describe,
/*[in]*/ BSTR email,
/*[in]*/ BSTR phone,
/*[in]*/ VARIANT additionalFields ) = 0;
virtual HRESULT __stdcall raw_PushReceipt (
/*[in]*/ VARIANT_BOOL fiscalMode,
/*[in]*/ BSTR transactionId,
/*[in]*/ BSTR printerSerialNumb,
/*[out,retval]*/ VARIANT_BOOL * pRetVal ) = 0;
virtual HRESULT __stdcall raw_GetPayments (
/*[in]*/ DATE dateFrom,
/*[in]*/ DATE dateTo,
/*[out,retval]*/ struct _Payments * * pRetVal ) = 0;
virtual HRESULT __stdcall raw_DoReversal (
/*[in]*/ BSTR paymentId,
/*[out,retval]*/ enum Status * pRetVal ) = 0;
virtual HRESULT __stdcall raw_GetAvailableDevices (
/*[out,retval]*/ SAFEARRAY * * pRetVal ) = 0;
virtual HRESULT __stdcall raw_ContinuePurchaseWithSignature (
/*[in]*/ SAFEARRAY * signature,
/*[out,retval]*/ enum PurchaseStatus * pRetVal ) = 0;
virtual HRESULT __stdcall raw_CheckPurchaseStatus (
/*[out,retval]*/ struct _PurchaseReply * * pRetVal ) = 0;
};
//
// Wrapper method implementations
//
#include "c:\all\mobile\windemo\paymedemo\paymedemo.comconsoledemo\debug\paymesdk.tli"
} // namespace PayMeSDK
#pragma pack(pop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment