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
6 changes: 5 additions & 1 deletion ams-dotnet/src/com/alipay/ams/api/entities/AcquirerInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public AcquirerInfo() { }



public AcquirerInfo( string acquirerName , string referenceRequestId , string acquirerTransactionId , string acquirerMerchantId , string acquirerResultCode , string acquirerResultMessage , string acquirerMerchantName , string acquirerReasonDescription)
public AcquirerInfo( string acquirerName , string referenceRequestId , string acquirerTransactionId , string acquirerMerchantId , string acquirerResultCode , string acquirerResultMessage , string acquirerMerchantName , string acquirerReasonDescription , string ptspTransactionId , string acquirerCardToken)
{
this.AcquirerName = acquirerName;
this.ReferenceRequestId = referenceRequestId;
Expand All @@ -21,6 +21,8 @@ public AcquirerInfo( string acquirerName , string referenceRequestId , string ac
this.AcquirerResultMessage = acquirerResultMessage;
this.AcquirerMerchantName = acquirerMerchantName;
this.AcquirerReasonDescription = acquirerReasonDescription;
this.PtspTransactionId = ptspTransactionId;
this.AcquirerCardToken = acquirerCardToken;
}

public string AcquirerName { get; set; }
Expand All @@ -31,6 +33,8 @@ public AcquirerInfo( string acquirerName , string referenceRequestId , string ac
public string AcquirerResultMessage { get; set; }
public string AcquirerMerchantName { get; set; }
public string AcquirerReasonDescription { get; set; }
public string PtspTransactionId { get; set; }
public string AcquirerCardToken { get; set; }



Expand Down
4 changes: 3 additions & 1 deletion ams-dotnet/src/com/alipay/ams/api/entities/CardholderInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ public CardholderInfo() { }



public CardholderInfo( UserName cardHolderName , Address billAddress)
public CardholderInfo( UserName cardHolderName , Address billAddress , string displayName)
{
this.CardHolderName = cardHolderName;
this.BillAddress = billAddress;
this.DisplayName = displayName;
}

public UserName CardHolderName { get; set; }
public Address BillAddress { get; set; }
public string DisplayName { get; set; }



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

namespace com.alipay.ams.api.entities
{

public class Paginator
{

public Paginator() { }



public Paginator( int? currentPage , int? pageSize , int? totalPage , int? totalCount)
{
this.CurrentPage = currentPage;
this.PageSize = pageSize;
this.TotalPage = totalPage;
this.TotalCount = totalCount;
}

public int? CurrentPage { get; set; }
public int? PageSize { get; set; }
public int? TotalPage { get; set; }
public int? TotalCount { get; set; }



}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public PaymentResultInfo() { }



public PaymentResultInfo( string issuerName , string refusalCodeRaw , string refusalReasonRaw , string merchantAdviceCode , AcquirerInfo acquirerInfo , string cardNo , string cardBrand , string cardToken , string issuingCountry , string funding , string paymentMethodRegion , ThreeDSResult threeDSResult , string avsResultRaw , string cvvResultRaw , string networkTransactionId , CreditPayPlan creditPayPlan , string cardholderName , string cardBin , string lastFour , string expiryMonth , string expiryYear , string cardCategory , string accountNo , string exemptionRequested , string credentialTypeUsed , string rrn)
public PaymentResultInfo( string issuerName , string refusalCodeRaw , string refusalReasonRaw , string merchantAdviceCode , AcquirerInfo acquirerInfo , string cardNo , string cardBrand , string cardToken , string issuingCountry , string funding , string paymentMethodRegion , ThreeDSResult threeDSResult , string avsResultRaw , string cvvResultRaw , string networkTransactionId , CreditPayPlan creditPayPlan , string cardholderName , string cardBin , string lastFour , string expiryMonth , string expiryYear , string cardCategory , string accountNo , string exemptionRequested , string credentialTypeUsed , string rrn , string userAuthorizationStatus)
{
this.IssuerName = issuerName;
this.RefusalCodeRaw = refusalCodeRaw;
Expand Down Expand Up @@ -39,6 +39,7 @@ public PaymentResultInfo( string issuerName , string refusalCodeRaw , string ref
this.ExemptionRequested = exemptionRequested;
this.CredentialTypeUsed = credentialTypeUsed;
this.Rrn = rrn;
this.UserAuthorizationStatus = userAuthorizationStatus;
}

public string IssuerName { get; set; }
Expand Down Expand Up @@ -67,6 +68,7 @@ public PaymentResultInfo( string issuerName , string refusalCodeRaw , string ref
public string ExemptionRequested { get; set; }
public string CredentialTypeUsed { get; set; }
public string Rrn { get; set; }
public string UserAuthorizationStatus { get; set; }



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

namespace com.alipay.ams.api.entities
{

public enum PaymentStatus
{
SUCCESS,
FAIL,
}
}
27 changes: 27 additions & 0 deletions ams-dotnet/src/com/alipay/ams/api/entities/ProrationSettings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public class ProrationSettings
{

public ProrationSettings() { }



public ProrationSettings( string prorationMode , Amount customAmount)
{
this.ProrationMode = prorationMode;
this.CustomAmount = customAmount;
}

public string ProrationMode { get; set; }
public Amount CustomAmount { 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; }



}

}
15 changes: 11 additions & 4 deletions ams-dotnet/src/com/alipay/ams/api/entities/SubscriptionStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
namespace com.alipay.ams.api.entities;
using System;
using System.Collections.Generic;

namespace com.alipay.ams.api.entities
{

public enum SubscriptionStatus
{
ACTIVE,TERMINATED
}
{
ACTIVE,
CANCELLED,
TERMINATED,
}
}
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 SubscriptionTransaction
{

public SubscriptionTransaction() { }



public SubscriptionTransaction( string paymentId , string status , int? phaseNo , PaymentMethod paymentMethod , Amount paymentAmount , string paymentTime , string disputeId)
{
this.PaymentId = paymentId;
this.Status = status;
this.PhaseNo = phaseNo;
this.PaymentMethod = paymentMethod;
this.PaymentAmount = paymentAmount;
this.PaymentTime = paymentTime;
this.DisputeId = disputeId;
}

public string PaymentId { get; set; }
public string Status { get; set; }
public int? PhaseNo { get; set; }
public PaymentMethod PaymentMethod { get; set; }
public Amount PaymentAmount { get; set; }
public string PaymentTime { get; set; }
public string DisputeId { get; set; }



}

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

namespace com.alipay.ams.api.entities
{

public class TrialPhase
{

public TrialPhase() { }



public TrialPhase( int? phaseNo , Amount trialAmount)
{
this.PhaseNo = phaseNo;
this.TrialAmount = trialAmount;
}

public int? PhaseNo { get; set; }
public Amount TrialAmount { get; set; }



}

}
29 changes: 29 additions & 0 deletions ams-dotnet/src/com/alipay/ams/api/entities/TrialPlan.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 TrialPlan
{

public TrialPlan() { }



public TrialPlan( string trialEndTime , int? freeTrialDays , List<TrialPhase> phases)
{
this.TrialEndTime = trialEndTime;
this.FreeTrialDays = freeTrialDays;
this.Phases = phases;
}

public string TrialEndTime { get; set; }
public int? FreeTrialDays { get; set; }
public List<TrialPhase> Phases { 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 AlipayCreateDirectPaymentRequest : AMSRequest<AlipayCreateDirectPaymentResponse>
{

public AlipayCreateDirectPaymentRequest() { }



public AlipayCreateDirectPaymentRequest( 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/api/v1/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 AlipayCreateDirectRefundRequest : AMSRequest<AlipayCreateDirectRefundResponse>
{

public AlipayCreateDirectRefundRequest() { }



public AlipayCreateDirectRefundRequest( 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/api/v1/aba/funds/createDirectRefund"; }


}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public AlipayCreateQuoteRequest( Amount buyAmount , Amount sellAmount , string e
public Amount SellAmount { get; set; }
public string ExchangeTradeType { get; set; }

public override string GetRequestURI(){ return "/ams/v1/aba/funds/createQuote"; }
public override string GetRequestURI(){ return "/ams/api/v1/aba/funds/createQuote"; }


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public AlipayInquireAvailableQuotaRequest( string currency)

public string Currency { get; set; }

public override string GetRequestURI(){ return "/ams/v1/aba/account/inquireAvailableQuota"; }
public override string GetRequestURI(){ return "/ams/api/v1/aba/account/inquireAvailableQuota"; }


}
Expand Down
Loading