Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public class CreateDirectPaymentResponses
{

public CreateDirectPaymentResponses() { }



public CreateDirectPaymentResponses( string paymentId , string paymentRequestId , PaymentMethod payToMethod , Amount payFromAmount , Amount payToAmount , string paymentTime , Result result)
{
this.PaymentId = paymentId;
this.PaymentRequestId = paymentRequestId;
this.PayToMethod = payToMethod;
this.PayFromAmount = payFromAmount;
this.PayToAmount = payToAmount;
this.PaymentTime = paymentTime;
this.Result = result;
}

public string PaymentId { get; set; }
public string PaymentRequestId { get; set; }
public PaymentMethod PayToMethod { get; set; }
public Amount PayFromAmount { get; set; }
public Amount PayToAmount { get; set; }
public string PaymentTime { get; set; }
public Result Result { get; set; }



}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public class CreateDirectRefundResponses
{

public CreateDirectRefundResponses() { }



public CreateDirectRefundResponses( string paymentId , string refundId , string refundRequestId , string refundTime , RefundFromMethod refundFromMethod , Amount refundFromAmount , Amount refundToAmount , Result result)
{
this.PaymentId = paymentId;
this.RefundId = refundId;
this.RefundRequestId = refundRequestId;
this.RefundTime = refundTime;
this.RefundFromMethod = refundFromMethod;
this.RefundFromAmount = refundFromAmount;
this.RefundToAmount = refundToAmount;
this.Result = result;
}

public string PaymentId { get; set; }
public string RefundId { get; set; }
public string RefundRequestId { get; set; }
public string RefundTime { get; set; }
public RefundFromMethod RefundFromMethod { get; set; }
public Amount RefundFromAmount { get; set; }
public Amount RefundToAmount { get; set; }
public Result Result { get; set; }



}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public class InquireDirectPaymentResponses
{

public InquireDirectPaymentResponses() { }



public InquireDirectPaymentResponses( TransactionStatusType paymentStatus , string paymentResultMessage , string paymentResultCode , string paymentId , string paymentRequestId , PaymentMethod payToMethod , Amount paymentAmount , Amount payToAmount , string paymentTime , Result result)
{
this.PaymentStatus = paymentStatus;
this.PaymentResultMessage = paymentResultMessage;
this.PaymentResultCode = paymentResultCode;
this.PaymentId = paymentId;
this.PaymentRequestId = paymentRequestId;
this.PayToMethod = payToMethod;
this.PaymentAmount = paymentAmount;
this.PayToAmount = payToAmount;
this.PaymentTime = paymentTime;
this.Result = result;
}

public TransactionStatusType PaymentStatus { get; set; }
public string PaymentResultMessage { get; set; }
public string PaymentResultCode { get; set; }
public string PaymentId { get; set; }
public string PaymentRequestId { get; set; }
public PaymentMethod PayToMethod { get; set; }
public Amount PaymentAmount { get; set; }
public Amount PayToAmount { get; set; }
public string PaymentTime { get; set; }
public Result Result { get; set; }



}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public class InquireDirectRefundResponses
{

public InquireDirectRefundResponses() { }



public InquireDirectRefundResponses( TransactionStatusType refundStatus , string refundResultMessage , string refundResultCode , string refundId , string paymentId , string refundRequestId , string refundTime , RefundFromMethod refundFromMethod , Amount refundToAmount , Amount refundFromAmount , Result result)
{
this.RefundStatus = refundStatus;
this.RefundResultMessage = refundResultMessage;
this.RefundResultCode = refundResultCode;
this.RefundId = refundId;
this.PaymentId = paymentId;
this.RefundRequestId = refundRequestId;
this.RefundTime = refundTime;
this.RefundFromMethod = refundFromMethod;
this.RefundToAmount = refundToAmount;
this.RefundFromAmount = refundFromAmount;
this.Result = result;
}

public TransactionStatusType RefundStatus { get; set; }
public string RefundResultMessage { get; set; }
public string RefundResultCode { get; set; }
public string RefundId { get; set; }
public string PaymentId { get; set; }
public string RefundRequestId { get; set; }
public string RefundTime { get; set; }
public RefundFromMethod RefundFromMethod { get; set; }
public Amount RefundToAmount { get; set; }
public Amount RefundFromAmount { get; set; }
public Result Result { get; set; }



}

}
29 changes: 29 additions & 0 deletions ams-dotnet/src/com/alipay/ams/api/entities/RefundFromMethod.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public class RefundFromMethod
{

public RefundFromMethod() { }



public RefundFromMethod( string grantToken , string refundFromMethodType , string customerId)
{
this.GrantToken = grantToken;
this.RefundFromMethodType = refundFromMethodType;
this.CustomerId = customerId;
}

public string GrantToken { get; set; }
public string RefundFromMethodType { get; set; }
public string CustomerId { get; set; }



}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using com.alipay.ams.api.response.aba;
using com.alipay.ams.api.request;
using com.alipay.ams.api.entities;
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.request.aba
{

public class CreateDirectPaymentRequest : AMSRequest<CreateDirectPaymentResponse>
{

public CreateDirectPaymentRequest() { }



public CreateDirectPaymentRequest( string paymentRequestId , string memo , string remark , Order order , string paymentNotifyUrl , PaymentMethod payToMethod , Amount payToAmount , Amount payFromAmount)
{
this.PaymentRequestId = paymentRequestId;
this.Memo = memo;
this.Remark = remark;
this.Order = order;
this.PaymentNotifyUrl = paymentNotifyUrl;
this.PayToMethod = payToMethod;
this.PayToAmount = payToAmount;
this.PayFromAmount = payFromAmount;
}

public string PaymentRequestId { get; set; }
public string Memo { get; set; }
public string Remark { get; set; }
public Order Order { get; set; }
public string PaymentNotifyUrl { get; set; }
public PaymentMethod PayToMethod { get; set; }
public Amount PayToAmount { get; set; }
public Amount PayFromAmount { get; set; }

public override string GetRequestURI(){ return "/ams/aba/funds/createDirectPayment"; }


}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using com.alipay.ams.api.response.aba;
using com.alipay.ams.api.request;
using com.alipay.ams.api.entities;
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.request.aba
{

public class CreateDirectRefundRequest : AMSRequest<CreateDirectRefundResponse>
{

public CreateDirectRefundRequest() { }



public CreateDirectRefundRequest( string paymentId , string refundRequestId , string referenceRefundId , RefundFromMethod refundFromMethod , Amount refundFromAmount , string memo , string remark , string refundReason , string refundNotifyUrl)
{
this.PaymentId = paymentId;
this.RefundRequestId = refundRequestId;
this.ReferenceRefundId = referenceRefundId;
this.RefundFromMethod = refundFromMethod;
this.RefundFromAmount = refundFromAmount;
this.Memo = memo;
this.Remark = remark;
this.RefundReason = refundReason;
this.RefundNotifyUrl = refundNotifyUrl;
}

public string PaymentId { get; set; }
public string RefundRequestId { get; set; }
public string ReferenceRefundId { get; set; }
public RefundFromMethod RefundFromMethod { get; set; }
public Amount RefundFromAmount { get; set; }
public string Memo { get; set; }
public string Remark { get; set; }
public string RefundReason { get; set; }
public string RefundNotifyUrl { get; set; }

public override string GetRequestURI(){ return "/ams/aba/funds/createDirectRefund"; }


}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using com.alipay.ams.api.response.aba;
using com.alipay.ams.api.request;
using com.alipay.ams.api.entities;
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.request.aba
{

public class InquireDirectPaymentRequest : AMSRequest<InquireDirectPaymentResponse>
{

public InquireDirectPaymentRequest() { }



public InquireDirectPaymentRequest( string paymentId , string paymentRequestId)
{
this.PaymentId = paymentId;
this.PaymentRequestId = paymentRequestId;
}

public string PaymentId { get; set; }
public string PaymentRequestId { get; set; }

public override string GetRequestURI(){ return "/ams/aba/funds/inquireDirectPayment"; }


}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using com.alipay.ams.api.response.aba;
using com.alipay.ams.api.request;
using com.alipay.ams.api.entities;
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.request.aba
{

public class InquireDirectRefundRequest : AMSRequest<InquireDirectRefundResponse>
{

public InquireDirectRefundRequest() { }



public InquireDirectRefundRequest( string refundId , string refundRequestId)
{
this.RefundId = refundId;
this.RefundRequestId = refundRequestId;
}

public string RefundId { get; set; }
public string RefundRequestId { get; set; }

public override string GetRequestURI(){ return "/ams/aba/funds/inquireDirectRefund"; }


}

}