SDK_UnityMoney/Assets/Script/SDKManager/Purchase/IAPSubscribeInfo.cs

43 lines
2.0 KiB
C#
Raw Normal View History

2025-09-18 10:30:57 +00:00
#if UNITY_PURCHASE
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace WZ
{
public struct SubscribeInfo
{
public int Illegal_order; // 0:代表合法订单1:代表非法订单
public string Illegal_msg; // 非法订单信息
public string Environment; // production & sandbox
public string Purchase_time; //订阅时间,单位毫秒
public int Is_subscribed; //是否订阅过 0未订阅过1订阅过
public int Is_expired; //是否过期 0未过期1已过期
public int Is_cancelled; // 0未取消1已取消
public int Is_free_trial; // 0不是免费试用1是免费试用
public int Is_auto_renewing; //是否自动续订 0非自动1自动
public string Remaining_time; //订阅到期剩余时间,单位毫秒
public string Expiry_time; //过期时间,单位毫秒
public string Latest_order_id; //当前订阅的最新订单号
public string Product_id; //产品ID
public SubscribeInfo(int illegal_order, string illegal_msg, string environment, string purchase_time, int is_subscribed, int is_expired, int is_cancelled, int is_free_trial, int is_auto_renewing, string remaining_time, string expiry_time, string latest_order_id,string product_id)
{
Illegal_order = illegal_order;
Illegal_msg = illegal_msg;
Environment = environment;
Purchase_time = purchase_time;
Is_subscribed = is_subscribed;
Is_expired = is_expired;
Is_cancelled = is_cancelled;
Is_free_trial = is_free_trial;
Is_auto_renewing = is_auto_renewing;
Remaining_time = remaining_time;
Expiry_time = expiry_time;
Latest_order_id = latest_order_id;
Product_id = product_id;
}
}
}
#endif