36 lines
964 B
C#
36 lines
964 B
C#
namespace Oms.Application.Integrations.Itfx;
|
||
|
||
public sealed class ItfxForwardResult
|
||
{
|
||
public bool Success { get; set; }
|
||
|
||
public string Url { get; set; } = string.Empty;
|
||
|
||
public string RequestJson { get; set; } = string.Empty;
|
||
|
||
public int? StatusCode { get; set; }
|
||
|
||
public string ResponseBody { get; set; } = string.Empty;
|
||
}
|
||
|
||
public interface IItfxForwardClient
|
||
{
|
||
Task<ItfxForwardResult> ForwardCreateOrderOneAsync(
|
||
string supplierCode,
|
||
string appKey,
|
||
string appSecret,
|
||
object body,
|
||
CancellationToken cancellationToken = default);
|
||
|
||
/// <summary>
|
||
/// 通用 ForwardWithSubscribe(standardCode 可配,如 9610 申报暂定码)。
|
||
/// </summary>
|
||
Task<ItfxForwardResult> ForwardWithSubscribeAsync(
|
||
string standardCode,
|
||
string supplierCode,
|
||
string appKey,
|
||
string appSecret,
|
||
object body,
|
||
CancellationToken cancellationToken = default);
|
||
}
|