API/Autodoc/Files/FURuStorePayPurchase.h.en.md


Classes

Name
struct FURuStorePayPurchase — Container for common purchase fields.

Source code

// Copyright Epic Games, Inc. All Rights Reserved.

#include "FURuStorePayPurchase.generated.h"

USTRUCT(BlueprintType)
struct RUSTOREPAY_API FURuStorePayPurchase
{
    GENERATED_USTRUCT_BODY()

    
    UPROPERTY(BlueprintReadOnly)
    URuStorePayProductId* productId;

    UPROPERTY(BlueprintReadOnly)
    EURuStorePayProductType productType;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayPurchaseId* purchaseId;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayInvoiceId* invoiceId;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayOrderId* orderId; // nullable

    UPROPERTY(BlueprintReadOnly)
    EURuStorePayPurchaseType purchaseType;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayDescription* description;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayDate* purchaseTime; // nullable

    UPROPERTY(BlueprintReadOnly)
    URuStorePayPrice* price;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayAmountLabel* amountLabel;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayCurrency* currency;

    UPROPERTY(BlueprintReadOnly)
    URuStorePayDeveloperPayload* developerPayload; // nullable

    UPROPERTY(BlueprintReadOnly)
    bool sandbox;

    UPROPERTY(BlueprintReadOnly)
    EURuStorePayAcknowledgementState acknowledgementState;

    UPROPERTY(BlueprintReadOnly)
    FURuStorePayProductPurchase productPurchase;

    UPROPERTY(BlueprintReadOnly)
    FURuStorePaySubscriptionPurchase subscriptionPurchase;

    FURuStorePayPurchase()
    {
        productId = NewObject<URuStorePayProductId>(GetTransientPackage());
        productType = static_cast<EURuStorePayProductType>(0);
        purchaseId = NewObject<URuStorePayPurchaseId>(GetTransientPackage());
        invoiceId = NewObject<URuStorePayInvoiceId>(GetTransientPackage());
        orderId = nullptr;
        purchaseType = static_cast<EURuStorePayPurchaseType>(0);
        description = NewObject<URuStorePayDescription>(GetTransientPackage());
        purchaseTime = nullptr;
        price = NewObject<URuStorePayPrice>(GetTransientPackage());
        amountLabel = NewObject<URuStorePayAmountLabel>(GetTransientPackage());
        currency = NewObject<URuStorePayCurrency>(GetTransientPackage());
        developerPayload = nullptr;
        sandbox = false;
        acknowledgementState = static_cast<EURuStorePayAcknowledgementState>(0);
    }
};
Назад