// // IAPProductInfo.h // bulldog_sdk // // Created by zhuge on 2024/3/14. // #ifndef IAPProductInfo_h #define IAPProductInfo_h #include namespace iap { class IAPProductInfo { public: IAPProductInfo(const std::string& productId, const std::string& name, const std::string& desc, const std::string& displayPrice ); IAPProductInfo(const std::string& jsonString); ~IAPProductInfo(); public: // getter & setter std::string getProductId() const { return _productId; } std::string getName() const { return _name; } std::string getDesc() const { return _desc; } std::string getDisplayPrice() const { return _displayPrice; } private: // 唯一标识后,在GooglePlay和AppStore后台创建时,手动填入 std::string _productId; // 显示名字 std::string _name; // 详细信息 std::string _desc; // 显示价格,按本地格式化的价格显示 std::string _displayPrice; }; } // end of iap #endif /* IAPProductInfo_h */