Skip to content

[Feature] billing002.h #502

Description

@Vvwit

#ifndef INCLUDED_STEAM_BILLING002_H
#define INCLUDED_STEAM_BILLING002_H

class ISteamBilling002
{
public:
virtual bool InitCreditCardPurchase(int32 nPackageID, uint32 nCardIndex, bool bStoreCardInfo) = 0;
virtual bool InitPayPalPurchase(int32 nPackageID) = 0;
virtual bool GetActivationCodeInfo(char const* pchActivationCode) = 0;
virtual bool PurchaseWithActivationCode(char const* pchActivationCode) = 0;
virtual bool GetFinalPrice() = 0;
virtual bool CancelPurchase() = 0;
virtual bool CompletePurchase() = 0;
virtual bool UpdateCardInfo(uint32 nCardIndex) = 0;
virtual bool DeleteCard(uint32 nCardIndex) = 0;
virtual bool GetCardList() = 0;
virtual bool Obsolete_GetLicenses() = 0;
virtual bool CancelLicense(int32 nPackageID, int32 nCancelReason) = 0;
virtual bool GetPurchaseReceipts(bool bUnacknowledgedOnly) = 0;
virtual bool AcknowledgePurchaseReceipt(uint32 nReceiptIndex) = 0;
virtual bool SetBillingAddress(uint32 nCardIndex, char const* pchFirstName, char const* pchLastName, char const* pchAddress1, char const* pchAddress2, char const* pchCity, char const* pchPostcode, char const* pchState, char const* pchCountry, char const* pchPhone) = 0;
virtual bool GetBillingAddress(uint32 nCardIndex, char* pchFirstName, char* pchLastName, char* pchAddress1, char* pchAddress2, char* pchCity, char* pchPostcode, char* pchState, char* pchCountry, char* pchPhone) = 0;
virtual bool SetShippingAddress(char const* pchFirstName, char const* pchLastName, char const* pchAddress1, char const* pchAddress2, char const* pchCity, char const* pchPostcode, char const* pchState, char const* pchCountry, char const* pchPhone) = 0;
virtual bool GetShippingAddress(char* pchFirstName, char* pchLastName, char* pchAddress1, char* pchAddress2, char* pchCity, char* pchPostcode, char* pchState, char* pchCountry, char* pchPhone) = 0;
virtual bool SetCardInfo(uint32 nCardIndex, int32 eCreditCardType, char const* pchCardNumber, char const* pchCardHolderFirstName, char const* pchCardHolderLastName, char const* pchCardExpYear, char const* pchCardExpMonth, char const* pchCardCVV2) = 0;
virtual bool GetCardInfo(uint32 nCardIndex, int32* eCreditCardType, char* pchCardNumber, char* pchCardHolderFirstName, char* pchCardHolderLastName, char* pchCardExpYear, char* pchCardExpMonth, char* pchCardCVV2) = 0;
virtual int32 GetLicensePackageID(uint32 nLicenseIndex) = 0;
virtual uint32 GetLicenseTimeCreated(uint32 nLicenseIndex) = 0;
virtual uint32 GetLicenseTimeNextProcess(uint32 nLicenseIndex) = 0;
virtual int32 GetLicenseMinuteLimit(uint32 nLicenseIndex) = 0;
virtual int32 GetLicenseMinutesUsed(uint32 nLicenseIndex) = 0;
virtual EPaymentMethod GetLicensePaymentMethod(uint32 nLicenseIndex) = 0;
virtual uint32 GetLicenseFlags(uint32 nLicenseIndex) = 0;
virtual char const* GetLicensePurchaseCountryCode(uint32 nLicenseIndex) = 0;
virtual int32 GetReceiptPackageID(uint32 nReceiptIndex) = 0;
virtual EPurchaseStatus GetReceiptStatus(uint32 nReceiptIndex) = 0;
virtual EPurchaseResultDetail GetReceiptResultDetail(uint32 nReceiptIndex) = 0;
virtual uint32 GetReceiptTransTime(uint32 nReceiptIndex) = 0;
virtual uint64 GetReceiptTransID(uint32 nReceiptIndex) = 0;
virtual bool GetReceiptAcknowledged(uint32 nReceiptIndex) = 0;
virtual EPaymentMethod GetReceiptPaymentMethod(uint32 nReceiptIndex) = 0;
virtual uint32 GetReceiptBaseCost(uint32 nReceiptIndex) = 0;
virtual uint32 GetReceiptTotalDiscount(uint32 nReceiptIndex) = 0;
virtual uint32 GetReceiptTax(uint32 nReceiptIndex) = 0;
virtual uint32 GetReceiptShipping(uint32 nReceiptIndex) = 0;
virtual char const* GetReceiptCountryCode(uint32 nReceiptIndex) = 0;
virtual uint32 GetNumLicenses() = 0;
virtual uint32 GetNumReceipts() = 0;
virtual bool PurchaseWithMachineID(int32 nPackageID, char const* pchCustomData) = 0;
virtual bool InitClickAndBuyPurchase(int32 nPackageID, int64 nAccountNum, char const* pchState, char const* pchCountryCode) = 0;
virtual bool GetPreviousClickAndBuyAccount(int64* pnAccountNum, char* pchState, char* pchCountryCode) = 0;
};
#endif // INCLUDED_STEAM_BILLING002_H

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions