Skip to content

Commit 7c5536a

Browse files
authored
feat(tenpayv2): 补充统一下单接口场景信息字段
1 parent d8af757 commit 7c5536a

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/SKIT.FlurlHttpClient.Wechat.TenpayV2/Models/Pay/CreatePayUnifiedOrderRequest.cs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,51 @@ public class Store
123123
[System.Text.Json.Serialization.JsonPropertyName("address")]
124124
public string? Address { get; set; }
125125
}
126+
127+
public class H5Info
128+
{
129+
/// <summary>
130+
/// 获取或设置场景类型。
131+
/// </summary>
132+
[Newtonsoft.Json.JsonProperty("type")]
133+
[System.Text.Json.Serialization.JsonPropertyName("type")]
134+
public string? Type { get; set; }
135+
136+
/// <summary>
137+
/// 获取或设置应用名。
138+
/// </summary>
139+
[Newtonsoft.Json.JsonProperty("app_name")]
140+
[System.Text.Json.Serialization.JsonPropertyName("app_name")]
141+
public string? AppName { get; set; }
142+
143+
/// <summary>
144+
/// 获取或设置 iOS 应用包名。
145+
/// </summary>
146+
[Newtonsoft.Json.JsonProperty("bundle_id")]
147+
[System.Text.Json.Serialization.JsonPropertyName("bundle_id")]
148+
public string? BundleId { get; set; }
149+
150+
/// <summary>
151+
/// 获取或设置 Android 应用包名。
152+
/// </summary>
153+
[Newtonsoft.Json.JsonProperty("package_name")]
154+
[System.Text.Json.Serialization.JsonPropertyName("package_name")]
155+
public string? PackageName { get; set; }
156+
157+
/// <summary>
158+
/// 获取或设置网站 URL。
159+
/// </summary>
160+
[Newtonsoft.Json.JsonProperty("wap_url")]
161+
[System.Text.Json.Serialization.JsonPropertyName("wap_url")]
162+
public string? WapUrl { get; set; }
163+
164+
/// <summary>
165+
/// 获取或设置网站名。
166+
/// </summary>
167+
[Newtonsoft.Json.JsonProperty("wap_name")]
168+
[System.Text.Json.Serialization.JsonPropertyName("wap_name")]
169+
public string? WapName { get; set; }
170+
}
126171
}
127172

128173
/// <summary>
@@ -131,6 +176,13 @@ public class Store
131176
[Newtonsoft.Json.JsonProperty("store_info")]
132177
[System.Text.Json.Serialization.JsonPropertyName("store_info")]
133178
public Types.Store? Store { get; set; }
179+
180+
/// <summary>
181+
/// 获取或设置移动应用或网站应用信息。
182+
/// </summary>
183+
[Newtonsoft.Json.JsonProperty("h5_info")]
184+
[System.Text.Json.Serialization.JsonPropertyName("h5_info")]
185+
public Types.H5Info? H5Info { get; set; }
134186
}
135187
}
136188

0 commit comments

Comments
 (0)