// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_Store_2_H #define WINRT_Windows_ApplicationModel_Store_2_H #include "winrt/impl/Windows.Foundation.Collections.1.h" #include "winrt/impl/Windows.Storage.1.h" #include "winrt/impl/Windows.ApplicationModel.Store.1.h" WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Store { struct LicenseChangedEventHandler : winrt::Windows::Foundation::IUnknown { LicenseChangedEventHandler(std::nullptr_t = nullptr) noexcept {} LicenseChangedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template LicenseChangedEventHandler(L lambda); template LicenseChangedEventHandler(F* function); template LicenseChangedEventHandler(O* object, M method); template LicenseChangedEventHandler(com_ptr&& object, M method); template LicenseChangedEventHandler(weak_ref&& object, LM&& lambda_or_method); template LicenseChangedEventHandler(std::shared_ptr&& object, M method); template LicenseChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method); auto operator()() const; }; struct CurrentApp { CurrentApp() = delete; [[nodiscard]] static auto LicenseInformation(); [[nodiscard]] static auto LinkUri(); [[nodiscard]] static auto AppId(); static auto RequestAppPurchaseAsync(bool includeReceipt); static auto RequestProductPurchaseAsync(param::hstring const& productId, bool includeReceipt); static auto LoadListingInformationAsync(); static auto GetAppReceiptAsync(); static auto GetProductReceiptAsync(param::hstring const& productId); static auto GetCustomerPurchaseIdAsync(param::hstring const& serviceTicket, param::hstring const& publisherUserId); static auto GetCustomerCollectionsIdAsync(param::hstring const& serviceTicket, param::hstring const& publisherUserId); static auto LoadListingInformationByProductIdsAsync(param::async_iterable const& productIds); static auto LoadListingInformationByKeywordsAsync(param::async_iterable const& keywords); static auto ReportProductFulfillment(param::hstring const& productId); static auto GetAppPurchaseCampaignIdAsync(); static auto ReportConsumableFulfillmentAsync(param::hstring const& productId, winrt::guid const& transactionId); static auto RequestProductPurchaseAsync(param::hstring const& productId); static auto RequestProductPurchaseAsync(param::hstring const& productId, param::hstring const& offerId, winrt::Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties const& displayProperties); static auto GetUnfulfilledConsumablesAsync(); }; struct CurrentAppSimulator { CurrentAppSimulator() = delete; [[nodiscard]] static auto LicenseInformation(); [[nodiscard]] static auto LinkUri(); [[nodiscard]] static auto AppId(); static auto RequestAppPurchaseAsync(bool includeReceipt); static auto RequestProductPurchaseAsync(param::hstring const& productId, bool includeReceipt); static auto LoadListingInformationAsync(); static auto GetAppReceiptAsync(); static auto GetProductReceiptAsync(param::hstring const& productId); static auto ReloadSimulatorAsync(winrt::Windows::Storage::StorageFile const& simulatorSettingsFile); static auto LoadListingInformationByProductIdsAsync(param::async_iterable const& productIds); static auto LoadListingInformationByKeywordsAsync(param::async_iterable const& keywords); static auto GetAppPurchaseCampaignIdAsync(); static auto ReportConsumableFulfillmentAsync(param::hstring const& productId, winrt::guid const& transactionId); static auto RequestProductPurchaseAsync(param::hstring const& productId); static auto RequestProductPurchaseAsync(param::hstring const& productId, param::hstring const& offerId, winrt::Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties const& displayProperties); static auto GetUnfulfilledConsumablesAsync(); }; struct WINRT_IMPL_EMPTY_BASES LicenseInformation : winrt::Windows::ApplicationModel::Store::ILicenseInformation { LicenseInformation(std::nullptr_t) noexcept {} LicenseInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::ILicenseInformation(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ListingInformation : winrt::Windows::ApplicationModel::Store::IListingInformation, impl::require { ListingInformation(std::nullptr_t) noexcept {} ListingInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::IListingInformation(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProductLicense : winrt::Windows::ApplicationModel::Store::IProductLicense, impl::require { ProductLicense(std::nullptr_t) noexcept {} ProductLicense(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::IProductLicense(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProductListing : winrt::Windows::ApplicationModel::Store::IProductListing, impl::require { ProductListing(std::nullptr_t) noexcept {} ProductListing(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::IProductListing(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProductPurchaseDisplayProperties : winrt::Windows::ApplicationModel::Store::IProductPurchaseDisplayProperties { ProductPurchaseDisplayProperties(std::nullptr_t) noexcept {} ProductPurchaseDisplayProperties(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::IProductPurchaseDisplayProperties(ptr, take_ownership_from_abi) {} ProductPurchaseDisplayProperties(); explicit ProductPurchaseDisplayProperties(param::hstring const& name); }; struct WINRT_IMPL_EMPTY_BASES PurchaseResults : winrt::Windows::ApplicationModel::Store::IPurchaseResults { PurchaseResults(std::nullptr_t) noexcept {} PurchaseResults(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::IPurchaseResults(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES UnfulfilledConsumable : winrt::Windows::ApplicationModel::Store::IUnfulfilledConsumable { UnfulfilledConsumable(std::nullptr_t) noexcept {} UnfulfilledConsumable(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::ApplicationModel::Store::IUnfulfilledConsumable(ptr, take_ownership_from_abi) {} }; } #endif