兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
namespace AIK.Models.ApiModels.Payment
{
public class CreateIntegralOrderRequest
{
public decimal Amount { get; set; }
public int PayType { get; set; } = 2;
public string? Channel { get; set; }
public int? QrCode { get; set; }
}
public class PaymentParameters
{
public long Id { get; set; }
public string? AppId { get; set; }
public string? PartnerId { get; set; }
public string? PrepayId { get; set; }
public string? Package { get; set; }
public string? NonceStr { get; set; }
public string? TimeStamp { get; set; }
public string? Sign { get; set; }
public string? Body { get; set; }
public string? Token { get; set; }
public string? CodeUrl { get; set; }
public string? QrCode { get; set; }
public string? PayUrl { get; set; }
public object? PaymentData { get; set; }
}
public class PaymentParametersPC
{
public long id { get; set; }
public string? code_url { get; set; }
public string? status { get; set; }
public List<PaypalPaymentLink>? links { get; set; }
public string? PaypalApproveUrl => links?
.FirstOrDefault(link => string.Equals(link.rel, "approve", StringComparison.OrdinalIgnoreCase))
?.href;
}
public class PaypalPaymentLink
{
public string? href { get; set; }
public string? rel { get; set; }
public string? method { get; set; }
}
}