diff --git a/src/com/alipay/ams/api/entities/AccountBalance.cs b/src/com/alipay/ams/api/entities/AccountBalance.cs new file mode 100644 index 0000000..ff7d9bb --- /dev/null +++ b/src/com/alipay/ams/api/entities/AccountBalance.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AccountBalance + { + + public AccountBalance() { } + + public AccountBalance( string accountNo , string currency , Amount availableBalance , Amount frozenBalance , Amount totalBalance) + { + this.AccountNo = accountNo; + this.Currency = currency; + this.AvailableBalance = availableBalance; + this.FrozenBalance = frozenBalance; + this.TotalBalance = totalBalance; + } + + public string AccountNo { get; set; } + public string Currency { get; set; } + public Amount AvailableBalance { get; set; } + public Amount FrozenBalance { get; set; } + public Amount TotalBalance { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AccountHolderType.cs b/src/com/alipay/ams/api/entities/AccountHolderType.cs new file mode 100644 index 0000000..227c786 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AccountHolderType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum AccountHolderType + { + INDIVIDUAL, + ENTERPRISE, + } +} diff --git a/src/com/alipay/ams/api/entities/AccountType.cs b/src/com/alipay/ams/api/entities/AccountType.cs new file mode 100644 index 0000000..dda9b00 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AccountType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum AccountType + { + CHECKING, + FIXED_DEPOSIT, + } +} diff --git a/src/com/alipay/ams/api/entities/AcquirerInfo.cs b/src/com/alipay/ams/api/entities/AcquirerInfo.cs new file mode 100644 index 0000000..4b9ef62 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AcquirerInfo.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AcquirerInfo + { + + public AcquirerInfo() { } + + public AcquirerInfo( string acquirerName , string referenceRequestId , string acquirerTransactionId , string acquirerMerchantId , string acquirerResultCode , string acquirerResultMessage) + { + this.AcquirerName = acquirerName; + this.ReferenceRequestId = referenceRequestId; + this.AcquirerTransactionId = acquirerTransactionId; + this.AcquirerMerchantId = acquirerMerchantId; + this.AcquirerResultCode = acquirerResultCode; + this.AcquirerResultMessage = acquirerResultMessage; + } + + public string AcquirerName { get; set; } + public string ReferenceRequestId { get; set; } + public string AcquirerTransactionId { get; set; } + public string AcquirerMerchantId { get; set; } + public string AcquirerResultCode { get; set; } + public string AcquirerResultMessage { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Address.cs b/src/com/alipay/ams/api/entities/Address.cs new file mode 100644 index 0000000..a4d2b7f --- /dev/null +++ b/src/com/alipay/ams/api/entities/Address.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Address + { + + public Address() { } + + public Address( string region , string state , string city , string address1 , string address2 , string zipCode , string label) + { + this.Region = region; + this.State = state; + this.City = city; + this.Address1 = address1; + this.Address2 = address2; + this.ZipCode = zipCode; + this.Label = label; + } + + public string Region { get; set; } + public string State { get; set; } + public string City { get; set; } + public string Address1 { get; set; } + public string Address2 { get; set; } + public string ZipCode { get; set; } + public string Label { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AgreementInfo.cs b/src/com/alipay/ams/api/entities/AgreementInfo.cs new file mode 100644 index 0000000..3b49425 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AgreementInfo.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AgreementInfo + { + + public AgreementInfo() { } + + public AgreementInfo( string authState , string userLoginId , string userLoginType , string displayUserLoginId) + { + this.AuthState = authState; + this.UserLoginId = userLoginId; + this.UserLoginType = userLoginType; + this.DisplayUserLoginId = displayUserLoginId; + } + + public string AuthState { get; set; } + public string UserLoginId { get; set; } + public string UserLoginType { get; set; } + public string DisplayUserLoginId { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Amount.cs b/src/com/alipay/ams/api/entities/Amount.cs new file mode 100644 index 0000000..c4c6447 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Amount.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Amount + { + + public Amount() { } + + public Amount( string currency , string value) + { + this.Currency = currency; + this.Value = value; + } + + public string Currency { get; set; } + public string Value { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AmountLimit.cs b/src/com/alipay/ams/api/entities/AmountLimit.cs new file mode 100644 index 0000000..5ab4842 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AmountLimit.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AmountLimit + { + + public AmountLimit() { } + + public AmountLimit( string maxAmount , string minAmount , string remainAmount) + { + this.MaxAmount = maxAmount; + this.MinAmount = minAmount; + this.RemainAmount = remainAmount; + } + + public string MaxAmount { get; set; } + public string MinAmount { get; set; } + public string RemainAmount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AssociationType.cs b/src/com/alipay/ams/api/entities/AssociationType.cs new file mode 100644 index 0000000..789715b --- /dev/null +++ b/src/com/alipay/ams/api/entities/AssociationType.cs @@ -0,0 +1,14 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum AssociationType + { + LEGAL_REPRESENTATIVE, + UBO, + CONTACT, + DIRECTOR, + AUTHORIZER, + BOARD_MEMBER, + } +} diff --git a/src/com/alipay/ams/api/entities/Attachment.cs b/src/com/alipay/ams/api/entities/Attachment.cs new file mode 100644 index 0000000..3fba503 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Attachment.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Attachment + { + + public Attachment() { } + + public Attachment( string attachmentType , string file , string attachmentName , string fileKey) + { + this.AttachmentType = attachmentType; + this.File = file; + this.AttachmentName = attachmentName; + this.FileKey = fileKey; + } + + public string AttachmentType { get; set; } + public string File { get; set; } + public string AttachmentName { get; set; } + public string FileKey { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AttachmentType.cs b/src/com/alipay/ams/api/entities/AttachmentType.cs new file mode 100644 index 0000000..c046a68 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AttachmentType.cs @@ -0,0 +1,24 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum AttachmentType + { + SIGNATURE_AUTHORIZATION_LETTER, + ARTICLES_OF_ASSOCIATION, + LOGO, + AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER, + ASSOCIATION_ARTICLE, + FINANCIAL_REPORT, + OWNERSHIP_STRUCTURE_PIC, + ADDRESS_PROOF, + UBO_PROVE, + ENTERPRISE_REGISTRATION, + LICENSE_INFO, + ID_CARD, + PASSPORT, + DRIVING_LICENSE, + CPF, + CNPJ, + } +} diff --git a/src/com/alipay/ams/api/entities/AuthCodeForm.cs b/src/com/alipay/ams/api/entities/AuthCodeForm.cs new file mode 100644 index 0000000..f7db4f3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AuthCodeForm.cs @@ -0,0 +1,21 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AuthCodeForm + { + + public AuthCodeForm() { } + + public AuthCodeForm( List codeDetails) + { + this.CodeDetails = codeDetails; + } + + public List CodeDetails { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AuthMetaData.cs b/src/com/alipay/ams/api/entities/AuthMetaData.cs new file mode 100644 index 0000000..bcc503f --- /dev/null +++ b/src/com/alipay/ams/api/entities/AuthMetaData.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AuthMetaData + { + + public AuthMetaData() { } + + public AuthMetaData( string accountHolderName , string accountHolderCertNo) + { + this.AccountHolderName = accountHolderName; + this.AccountHolderCertNo = accountHolderCertNo; + } + + public string AccountHolderName { get; set; } + public string AccountHolderCertNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs b/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs new file mode 100644 index 0000000..7061141 --- /dev/null +++ b/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs @@ -0,0 +1,21 @@ + +namespace com.alipay.ams.api.entities +{ + +public class AvailablePaymentMethod + { + + public AvailablePaymentMethod() { } + + public AvailablePaymentMethod( List paymentMethodTypeList) + { + this.PaymentMethodTypeList = paymentMethodTypeList; + } + + public List PaymentMethodTypeList { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/BrowserInfo.cs b/src/com/alipay/ams/api/entities/BrowserInfo.cs new file mode 100644 index 0000000..c309d3b --- /dev/null +++ b/src/com/alipay/ams/api/entities/BrowserInfo.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class BrowserInfo + { + + public BrowserInfo() { } + + public BrowserInfo( string acceptHeader , bool? javaEnabled , bool? javaScriptEnabled , string language , string userAgent) + { + this.AcceptHeader = acceptHeader; + this.JavaEnabled = javaEnabled; + this.JavaScriptEnabled = javaScriptEnabled; + this.Language = language; + this.UserAgent = userAgent; + } + + public string AcceptHeader { get; set; } + public bool? JavaEnabled { get; set; } + public bool? JavaScriptEnabled { get; set; } + public string Language { get; set; } + public string UserAgent { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/BusinessInfo.cs b/src/com/alipay/ams/api/entities/BusinessInfo.cs new file mode 100644 index 0000000..b67a233 --- /dev/null +++ b/src/com/alipay/ams/api/entities/BusinessInfo.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class BusinessInfo + { + + public BusinessInfo() { } + + public BusinessInfo( string mcc , List websites , string englishName , string doingBusinessAs , string mainSalesCountry , string appName , string serviceDescription) + { + this.Mcc = mcc; + this.Websites = websites; + this.EnglishName = englishName; + this.DoingBusinessAs = doingBusinessAs; + this.MainSalesCountry = mainSalesCountry; + this.AppName = appName; + this.ServiceDescription = serviceDescription; + } + + public string Mcc { get; set; } + public List Websites { get; set; } + public string EnglishName { get; set; } + public string DoingBusinessAs { get; set; } + public string MainSalesCountry { get; set; } + public string AppName { get; set; } + public string ServiceDescription { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Buyer.cs b/src/com/alipay/ams/api/entities/Buyer.cs new file mode 100644 index 0000000..5d9e7c3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Buyer.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Buyer + { + + public Buyer() { } + + public Buyer( string referenceBuyerId , UserName buyerName , string buyerPhoneNo , string buyerEmail , string buyerRegistrationTime , bool? isAccountVerified , int? successfulOrderCount) + { + this.ReferenceBuyerId = referenceBuyerId; + this.BuyerName = buyerName; + this.BuyerPhoneNo = buyerPhoneNo; + this.BuyerEmail = buyerEmail; + this.BuyerRegistrationTime = buyerRegistrationTime; + this.IsAccountVerified = isAccountVerified; + this.SuccessfulOrderCount = successfulOrderCount; + } + + public string ReferenceBuyerId { get; set; } + public UserName BuyerName { get; set; } + public string BuyerPhoneNo { get; set; } + public string BuyerEmail { get; set; } + public string BuyerRegistrationTime { get; set; } + public bool? IsAccountVerified { get; set; } + public int? SuccessfulOrderCount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CardBrand.cs b/src/com/alipay/ams/api/entities/CardBrand.cs new file mode 100644 index 0000000..30b39fa --- /dev/null +++ b/src/com/alipay/ams/api/entities/CardBrand.cs @@ -0,0 +1,20 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CardBrand + { + VISA, + MASTERCARD, + MAESTRO, + AMEX, + JCB, + DINERS, + DISCOVER, + CUP, + MIR, + ELO, + HIPERCARD, + TROY, + } +} diff --git a/src/com/alipay/ams/api/entities/CardInfo.cs b/src/com/alipay/ams/api/entities/CardInfo.cs new file mode 100644 index 0000000..f6159eb --- /dev/null +++ b/src/com/alipay/ams/api/entities/CardInfo.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CardInfo + { + + public CardInfo() { } + + public CardInfo( string cardNo , string cardBrand , string cardToken , string issuingCountry , string funding , string paymentMethodRegion , ThreeDSResult threeDSResult) + { + this.CardNo = cardNo; + this.CardBrand = cardBrand; + this.CardToken = cardToken; + this.IssuingCountry = issuingCountry; + this.Funding = funding; + this.PaymentMethodRegion = paymentMethodRegion; + this.ThreeDSResult = threeDSResult; + } + + public string CardNo { get; set; } + public string CardBrand { get; set; } + public string CardToken { get; set; } + public string IssuingCountry { get; set; } + public string Funding { get; set; } + public string PaymentMethodRegion { get; set; } + public ThreeDSResult ThreeDSResult { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs b/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs new file mode 100644 index 0000000..fc87a82 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs @@ -0,0 +1,91 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CardPaymentMethodDetail + { + + public CardPaymentMethodDetail() { } + + public CardPaymentMethodDetail( string cardToken , string cardNo , CardBrand brand , CardBrand selectedCardBrand , string cardIssuer , string countryIssue , UserName instUserName , string expiryYear , string expiryMonth , Address billingAddress , string mask , string last4 , string paymentMethodDetailMetadata , string maskedCardNo , string fingerprint , string authenticationFlow , string funding , string avsResultRaw , string cvvResultRaw , string bin , string issuerName , string issuingCountry , string lastFour , UserName cardholderName , string cvv , string dateOfBirth , string businessNo , string cardPasswordDigest , string cpf , string payerEmail , string networkTransactionId , bool? is3DSAuthentication , string request3DS , string scaExemptionIndicator , string enableAuthenticationUpgrade , MpiData mpiData) + { + this.CardToken = cardToken; + this.CardNo = cardNo; + this.Brand = brand; + this.SelectedCardBrand = selectedCardBrand; + this.CardIssuer = cardIssuer; + this.CountryIssue = countryIssue; + this.InstUserName = instUserName; + this.ExpiryYear = expiryYear; + this.ExpiryMonth = expiryMonth; + this.BillingAddress = billingAddress; + this.Mask = mask; + this.Last4 = last4; + this.PaymentMethodDetailMetadata = paymentMethodDetailMetadata; + this.MaskedCardNo = maskedCardNo; + this.Fingerprint = fingerprint; + this.AuthenticationFlow = authenticationFlow; + this.Funding = funding; + this.AvsResultRaw = avsResultRaw; + this.CvvResultRaw = cvvResultRaw; + this.Bin = bin; + this.IssuerName = issuerName; + this.IssuingCountry = issuingCountry; + this.LastFour = lastFour; + this.CardholderName = cardholderName; + this.Cvv = cvv; + this.DateOfBirth = dateOfBirth; + this.BusinessNo = businessNo; + this.CardPasswordDigest = cardPasswordDigest; + this.Cpf = cpf; + this.PayerEmail = payerEmail; + this.NetworkTransactionId = networkTransactionId; + this.Is3DSAuthentication = is3DSAuthentication; + this.Request3DS = request3DS; + this.ScaExemptionIndicator = scaExemptionIndicator; + this.EnableAuthenticationUpgrade = enableAuthenticationUpgrade; + this.MpiData = mpiData; + } + + public string CardToken { get; set; } + public string CardNo { get; set; } + public CardBrand Brand { get; set; } + public CardBrand SelectedCardBrand { get; set; } + public string CardIssuer { get; set; } + public string CountryIssue { get; set; } + public UserName InstUserName { get; set; } + public string ExpiryYear { get; set; } + public string ExpiryMonth { get; set; } + public Address BillingAddress { get; set; } + public string Mask { get; set; } + public string Last4 { get; set; } + public string PaymentMethodDetailMetadata { get; set; } + public string MaskedCardNo { get; set; } + public string Fingerprint { get; set; } + public string AuthenticationFlow { get; set; } + public string Funding { get; set; } + public string AvsResultRaw { get; set; } + public string CvvResultRaw { get; set; } + public string Bin { get; set; } + public string IssuerName { get; set; } + public string IssuingCountry { get; set; } + public string LastFour { get; set; } + public UserName CardholderName { get; set; } + public string Cvv { get; set; } + public string DateOfBirth { get; set; } + public string BusinessNo { get; set; } + public string CardPasswordDigest { get; set; } + public string Cpf { get; set; } + public string PayerEmail { get; set; } + public string NetworkTransactionId { get; set; } + public bool? Is3DSAuthentication { get; set; } + public string Request3DS { get; set; } + public string ScaExemptionIndicator { get; set; } + public string EnableAuthenticationUpgrade { get; set; } + public MpiData MpiData { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CardVerificationResult.cs b/src/com/alipay/ams/api/entities/CardVerificationResult.cs new file mode 100644 index 0000000..afb17e9 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CardVerificationResult.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CardVerificationResult + { + + public CardVerificationResult() { } + + public CardVerificationResult( string authenticationType , string authenticationMethod , string cvvResult , string avsResult , string authorizationCode , RiskThreeDSResult threeDSResult) + { + this.AuthenticationType = authenticationType; + this.AuthenticationMethod = authenticationMethod; + this.CvvResult = cvvResult; + this.AvsResult = avsResult; + this.AuthorizationCode = authorizationCode; + this.ThreeDSResult = threeDSResult; + } + + public string AuthenticationType { get; set; } + public string AuthenticationMethod { get; set; } + public string CvvResult { get; set; } + public string AvsResult { get; set; } + public string AuthorizationCode { get; set; } + public RiskThreeDSResult ThreeDSResult { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Certificate.cs b/src/com/alipay/ams/api/entities/Certificate.cs new file mode 100644 index 0000000..6526f0b --- /dev/null +++ b/src/com/alipay/ams/api/entities/Certificate.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Certificate + { + + public Certificate() { } + + public Certificate( CertificateType certificateType , string certificateNo , UserName holderName , List fileKeys , string certificateAuthority) + { + this.CertificateType = certificateType; + this.CertificateNo = certificateNo; + this.HolderName = holderName; + this.FileKeys = fileKeys; + this.CertificateAuthority = certificateAuthority; + } + + public CertificateType CertificateType { get; set; } + public string CertificateNo { get; set; } + public UserName HolderName { get; set; } + public List FileKeys { get; set; } + public string CertificateAuthority { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CertificateType.cs b/src/com/alipay/ams/api/entities/CertificateType.cs new file mode 100644 index 0000000..95f0ef3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CertificateType.cs @@ -0,0 +1,15 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CertificateType + { + ENTERPRISE_REGISTRATION, + LICENSE_INFO, + ID_CARD, + PASSPORT, + DRIVING_LICENSE, + CPF, + CNPJ, + } +} diff --git a/src/com/alipay/ams/api/entities/ChallengeActionForm.cs b/src/com/alipay/ams/api/entities/ChallengeActionForm.cs new file mode 100644 index 0000000..d1ff459 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ChallengeActionForm.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class ChallengeActionForm + { + + public ChallengeActionForm() { } + + public ChallengeActionForm( ChallengeType challengeType , string challengeRenderValue , ChallengeTriggerSourceType triggerSource , string extendInfo) + { + this.ChallengeType = challengeType; + this.ChallengeRenderValue = challengeRenderValue; + this.TriggerSource = triggerSource; + this.ExtendInfo = extendInfo; + } + + public ChallengeType ChallengeType { get; set; } + public string ChallengeRenderValue { get; set; } + public ChallengeTriggerSourceType TriggerSource { get; set; } + public string ExtendInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs b/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs new file mode 100644 index 0000000..c914c74 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ChallengeTriggerSourceType + { + AMS, + CHANNEL, + } +} diff --git a/src/com/alipay/ams/api/entities/ChallengeType.cs b/src/com/alipay/ams/api/entities/ChallengeType.cs new file mode 100644 index 0000000..09f871a --- /dev/null +++ b/src/com/alipay/ams/api/entities/ChallengeType.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ChallengeType + { + SMS_OTP, + PLAINTEXT_CARD_NO, + CARD_EXPIRE_DATE, + } +} diff --git a/src/com/alipay/ams/api/entities/ClassType.cs b/src/com/alipay/ams/api/entities/ClassType.cs new file mode 100644 index 0000000..fa91788 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ClassType.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ClassType + { + FIRSTLEVEL, + SECONDLEVEL, + THIRDLEVEL, + } +} diff --git a/src/com/alipay/ams/api/entities/CodeDetail.cs b/src/com/alipay/ams/api/entities/CodeDetail.cs new file mode 100644 index 0000000..27bce58 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CodeDetail.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CodeDetail + { + + public CodeDetail() { } + + public CodeDetail( CodeValueType codeValueType , string codeValue , DisplayType displayType) + { + this.CodeValueType = codeValueType; + this.CodeValue = codeValue; + this.DisplayType = displayType; + } + + public CodeValueType CodeValueType { get; set; } + public string CodeValue { get; set; } + public DisplayType DisplayType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CodeValueType.cs b/src/com/alipay/ams/api/entities/CodeValueType.cs new file mode 100644 index 0000000..1c36cdf --- /dev/null +++ b/src/com/alipay/ams/api/entities/CodeValueType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CodeValueType + { + BARCODE, + QRCODE, + } +} diff --git a/src/com/alipay/ams/api/entities/Company.cs b/src/com/alipay/ams/api/entities/Company.cs new file mode 100644 index 0000000..2a94aff --- /dev/null +++ b/src/com/alipay/ams/api/entities/Company.cs @@ -0,0 +1,41 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Company + { + + public Company() { } + + public Company( string legalName , CompanyType companyType , Address registeredAddress , Address operatingAddress , string incorporationDate , StockInfo stockInfo , Certificate certificates , List attachments , CompanyUnitType companyUnit , List contacts , string vatNo) + { + this.LegalName = legalName; + this.CompanyType = companyType; + this.RegisteredAddress = registeredAddress; + this.OperatingAddress = operatingAddress; + this.IncorporationDate = incorporationDate; + this.StockInfo = stockInfo; + this.Certificates = certificates; + this.Attachments = attachments; + this.CompanyUnit = companyUnit; + this.Contacts = contacts; + this.VatNo = vatNo; + } + + public string LegalName { get; set; } + public CompanyType CompanyType { get; set; } + public Address RegisteredAddress { get; set; } + public Address OperatingAddress { get; set; } + public string IncorporationDate { get; set; } + public StockInfo StockInfo { get; set; } + public Certificate Certificates { get; set; } + public List Attachments { get; set; } + public CompanyUnitType CompanyUnit { get; set; } + public List Contacts { get; set; } + public string VatNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CompanyType.cs b/src/com/alipay/ams/api/entities/CompanyType.cs new file mode 100644 index 0000000..5f5877e --- /dev/null +++ b/src/com/alipay/ams/api/entities/CompanyType.cs @@ -0,0 +1,20 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CompanyType + { + ENTERPRISE, + PARTNERSHIP, + SOLE_PROPRIETORSHIP, + STATE_OWNED_BUSINESS, + PRIVATELY_OWNED_BUSINESS, + PUBLICLY_LISTED_BUSINESS, + LTDA, + SA, + EIRELI, + BOFC, + MEI, + EI, + } +} diff --git a/src/com/alipay/ams/api/entities/CompanyUnitType.cs b/src/com/alipay/ams/api/entities/CompanyUnitType.cs new file mode 100644 index 0000000..aabd85c --- /dev/null +++ b/src/com/alipay/ams/api/entities/CompanyUnitType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CompanyUnitType + { + HEADQUARTER, + BRANCH, + } +} diff --git a/src/com/alipay/ams/api/entities/Contact.cs b/src/com/alipay/ams/api/entities/Contact.cs new file mode 100644 index 0000000..7cd845c --- /dev/null +++ b/src/com/alipay/ams/api/entities/Contact.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Contact + { + + public Contact() { } + + public Contact( ContactType type , string info , string home , string work , string mobile) + { + this.Type = type; + this.Info = info; + this.Home = home; + this.Work = work; + this.Mobile = mobile; + } + + public ContactType Type { get; set; } + public string Info { get; set; } + public string Home { get; set; } + public string Work { get; set; } + public string Mobile { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/ContactType.cs b/src/com/alipay/ams/api/entities/ContactType.cs new file mode 100644 index 0000000..8658e0a --- /dev/null +++ b/src/com/alipay/ams/api/entities/ContactType.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ContactType + { + EMAIL, + PHONE_NO, + COMMERCIAL_PHONE_NO, + } +} diff --git a/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs b/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs new file mode 100644 index 0000000..e310707 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CouponPaymentMethodDetail + { + + public CouponPaymentMethodDetail() { } + + public CouponPaymentMethodDetail( string couponId , Amount availableAmount , string couponName , string couponDescription , string couponExpireTime , string paymentMethodDetailMetadata) + { + this.CouponId = couponId; + this.AvailableAmount = availableAmount; + this.CouponName = couponName; + this.CouponDescription = couponDescription; + this.CouponExpireTime = couponExpireTime; + this.PaymentMethodDetailMetadata = paymentMethodDetailMetadata; + } + + public string CouponId { get; set; } + public Amount AvailableAmount { get; set; } + public string CouponName { get; set; } + public string CouponDescription { get; set; } + public string CouponExpireTime { get; set; } + public string PaymentMethodDetailMetadata { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CreditPayFeeType.cs b/src/com/alipay/ams/api/entities/CreditPayFeeType.cs new file mode 100644 index 0000000..9fdc8f6 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CreditPayFeeType.cs @@ -0,0 +1,9 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CreditPayFeeType + { + PERCENTAGE, + } +} diff --git a/src/com/alipay/ams/api/entities/CreditPayPlan.cs b/src/com/alipay/ams/api/entities/CreditPayPlan.cs new file mode 100644 index 0000000..9268a4b --- /dev/null +++ b/src/com/alipay/ams/api/entities/CreditPayPlan.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CreditPayPlan + { + + public CreditPayPlan() { } + + public CreditPayPlan( int? installmentNum , string interval , CreditPayFeeType creditPayFeeType , int? feePercentage) + { + this.InstallmentNum = installmentNum; + this.Interval = interval; + this.CreditPayFeeType = creditPayFeeType; + this.FeePercentage = feePercentage; + } + + public int? InstallmentNum { get; set; } + public string Interval { get; set; } + public CreditPayFeeType CreditPayFeeType { get; set; } + public int? FeePercentage { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs b/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs new file mode 100644 index 0000000..4f31014 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs @@ -0,0 +1,34 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum CustomerBelongsTo + { + RABBIT_LINE_PAY, + TRUEMONEY, + ALIPAY_HK, + TNG, + ALIPAY_CN, + GCASH, + DANA, + KAKAOPAY, + BKASH, + EASYPAISA, + PAYPAY, + BOOST, + GRABPAY_MY, + MAYA, + GRABPAY_PH, + GRABPAY_SG, + NAVERPAY, + JKOPAY, + KPLUS, + DIRECT_DEBIT_SIAMCOMMERCIALBANK, + DIRECT_DEBIT_KRUNGTHAIBANK, + ZALOPAY, + DIRECTDEBIT_YAPILY, + TOSSPAY, + MOMO, + ANTOM_BIZ_ACCOUNT, + } +} diff --git a/src/com/alipay/ams/api/entities/CustomizedInfo.cs b/src/com/alipay/ams/api/entities/CustomizedInfo.cs new file mode 100644 index 0000000..0b63156 --- /dev/null +++ b/src/com/alipay/ams/api/entities/CustomizedInfo.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class CustomizedInfo + { + + public CustomizedInfo() { } + + public CustomizedInfo( string customizedField1 , string customizedField2 , string customizedField3 , string customizedField4 , string customizedField5) + { + this.CustomizedField1 = customizedField1; + this.CustomizedField2 = customizedField2; + this.CustomizedField3 = customizedField3; + this.CustomizedField4 = customizedField4; + this.CustomizedField5 = customizedField5; + } + + public string CustomizedField1 { get; set; } + public string CustomizedField2 { get; set; } + public string CustomizedField3 { get; set; } + public string CustomizedField4 { get; set; } + public string CustomizedField5 { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/DeliveryEstimate.cs b/src/com/alipay/ams/api/entities/DeliveryEstimate.cs new file mode 100644 index 0000000..611cf0d --- /dev/null +++ b/src/com/alipay/ams/api/entities/DeliveryEstimate.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class DeliveryEstimate + { + + public DeliveryEstimate() { } + + public DeliveryEstimate( DeliveryEstimateInfo minimum , DeliveryEstimateInfo maximum) + { + this.Minimum = minimum; + this.Maximum = maximum; + } + + public DeliveryEstimateInfo Minimum { get; set; } + public DeliveryEstimateInfo Maximum { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs b/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs new file mode 100644 index 0000000..0d0dfcb --- /dev/null +++ b/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class DeliveryEstimateInfo + { + + public DeliveryEstimateInfo() { } + + public DeliveryEstimateInfo( string unit , int? value) + { + this.Unit = unit; + this.Value = value; + } + + public string Unit { get; set; } + public int? Value { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Discount.cs b/src/com/alipay/ams/api/entities/Discount.cs new file mode 100644 index 0000000..f7bb563 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Discount.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Discount + { + + public Discount() { } + + public Discount( string discountTag , string discountName , Amount savingsAmount , Amount estimateSavingsAmount) + { + this.DiscountTag = discountTag; + this.DiscountName = discountName; + this.SavingsAmount = savingsAmount; + this.EstimateSavingsAmount = estimateSavingsAmount; + } + + public string DiscountTag { get; set; } + public string DiscountName { get; set; } + public Amount SavingsAmount { get; set; } + public Amount EstimateSavingsAmount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs b/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs new file mode 100644 index 0000000..edc1936 --- /dev/null +++ b/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class DiscountPaymentMethodDetail + { + + public DiscountPaymentMethodDetail() { } + + public DiscountPaymentMethodDetail( string discountId , Amount availableAmount , string discountName , string discountDescription , string paymentMethodDetailMetadata) + { + this.DiscountId = discountId; + this.AvailableAmount = availableAmount; + this.DiscountName = discountName; + this.DiscountDescription = discountDescription; + this.PaymentMethodDetailMetadata = paymentMethodDetailMetadata; + } + + public string DiscountId { get; set; } + public Amount AvailableAmount { get; set; } + public string DiscountName { get; set; } + public string DiscountDescription { get; set; } + public string PaymentMethodDetailMetadata { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/DisplayType.cs b/src/com/alipay/ams/api/entities/DisplayType.cs new file mode 100644 index 0000000..a917fae --- /dev/null +++ b/src/com/alipay/ams/api/entities/DisplayType.cs @@ -0,0 +1,13 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum DisplayType + { + TEXT, + MIDDLEIMAGE, + SMALLIMAGE, + BIGIMAGE, + IMAGE, + } +} diff --git a/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs b/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs new file mode 100644 index 0000000..b6bb117 --- /dev/null +++ b/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum DisputeEvidenceFormatType + { + PDF, + WORD, + } +} diff --git a/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs b/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs new file mode 100644 index 0000000..b291c15 --- /dev/null +++ b/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum DisputeEvidenceType + { + DISPUTE_EVIDENCE_TEMPLATE, + DISPUTE_EVIDENCE_FILE, + } +} diff --git a/src/com/alipay/ams/api/entities/EntityAssociations.cs b/src/com/alipay/ams/api/entities/EntityAssociations.cs new file mode 100644 index 0000000..01dc6a4 --- /dev/null +++ b/src/com/alipay/ams/api/entities/EntityAssociations.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class EntityAssociations + { + + public EntityAssociations() { } + + public EntityAssociations( AssociationType associationType , LegalEntityType legalEntityType , Company company , Individual individual , string shareholdingRatio) + { + this.AssociationType = associationType; + this.LegalEntityType = legalEntityType; + this.Company = company; + this.Individual = individual; + this.ShareholdingRatio = shareholdingRatio; + } + + public AssociationType AssociationType { get; set; } + public LegalEntityType LegalEntityType { get; set; } + public Company Company { get; set; } + public Individual Individual { get; set; } + public string ShareholdingRatio { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Env.cs b/src/com/alipay/ams/api/entities/Env.cs new file mode 100644 index 0000000..63fb0e4 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Env.cs @@ -0,0 +1,57 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Env + { + + public Env() { } + + public Env( TerminalType terminalType , OsType osType , string userAgent , string deviceTokenId , string clientIp , string cookieId , string extendInfo , string storeTerminalId , string storeTerminalRequestTime , BrowserInfo browserInfo , string colorDepth , string screenHeight , string screenWidth , int? timeZoneOffset , string deviceBrand , string deviceModel , string deviceLanguage , string deviceId , string envType) + { + this.TerminalType = terminalType; + this.OsType = osType; + this.UserAgent = userAgent; + this.DeviceTokenId = deviceTokenId; + this.ClientIp = clientIp; + this.CookieId = cookieId; + this.ExtendInfo = extendInfo; + this.StoreTerminalId = storeTerminalId; + this.StoreTerminalRequestTime = storeTerminalRequestTime; + this.BrowserInfo = browserInfo; + this.ColorDepth = colorDepth; + this.ScreenHeight = screenHeight; + this.ScreenWidth = screenWidth; + this.TimeZoneOffset = timeZoneOffset; + this.DeviceBrand = deviceBrand; + this.DeviceModel = deviceModel; + this.DeviceLanguage = deviceLanguage; + this.DeviceId = deviceId; + this.EnvType = envType; + } + + public TerminalType TerminalType { get; set; } + public OsType OsType { get; set; } + public string UserAgent { get; set; } + public string DeviceTokenId { get; set; } + public string ClientIp { get; set; } + public string CookieId { get; set; } + public string ExtendInfo { get; set; } + public string StoreTerminalId { get; set; } + public string StoreTerminalRequestTime { get; set; } + public BrowserInfo BrowserInfo { get; set; } + public string ColorDepth { get; set; } + public string ScreenHeight { get; set; } + public string ScreenWidth { get; set; } + public int? TimeZoneOffset { get; set; } + public string DeviceBrand { get; set; } + public string DeviceModel { get; set; } + public string DeviceLanguage { get; set; } + public string DeviceId { get; set; } + public string EnvType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs b/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs new file mode 100644 index 0000000..2496a85 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class ExternalPaymentMethodDetail + { + + public ExternalPaymentMethodDetail() { } + + public ExternalPaymentMethodDetail( string assetToken , string accountDisplayName , string disableReason , string paymentMethodDetailMetadata) + { + this.AssetToken = assetToken; + this.AccountDisplayName = accountDisplayName; + this.DisableReason = disableReason; + this.PaymentMethodDetailMetadata = paymentMethodDetailMetadata; + } + + public string AssetToken { get; set; } + public string AccountDisplayName { get; set; } + public string DisableReason { get; set; } + public string PaymentMethodDetailMetadata { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Gaming.cs b/src/com/alipay/ams/api/entities/Gaming.cs new file mode 100644 index 0000000..73a9146 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Gaming.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Gaming + { + + public Gaming() { } + + public Gaming( string gameName , string toppedUpUser , string toppedUpEmail , string toppedUpPhoneNo) + { + this.GameName = gameName; + this.ToppedUpUser = toppedUpUser; + this.ToppedUpEmail = toppedUpEmail; + this.ToppedUpPhoneNo = toppedUpPhoneNo; + } + + public string GameName { get; set; } + public string ToppedUpUser { get; set; } + public string ToppedUpEmail { get; set; } + public string ToppedUpPhoneNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Goods.cs b/src/com/alipay/ams/api/entities/Goods.cs new file mode 100644 index 0000000..d0d7372 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Goods.cs @@ -0,0 +1,41 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Goods + { + + public Goods() { } + + public Goods( string referenceGoodsId , string goodsName , string goodsCategory , string goodsBrand , Amount goodsUnitAmount , string goodsQuantity , string goodsSkuName , string goodsUrl , string deliveryMethodType , string goodsImageUrl , string priceId) + { + this.ReferenceGoodsId = referenceGoodsId; + this.GoodsName = goodsName; + this.GoodsCategory = goodsCategory; + this.GoodsBrand = goodsBrand; + this.GoodsUnitAmount = goodsUnitAmount; + this.GoodsQuantity = goodsQuantity; + this.GoodsSkuName = goodsSkuName; + this.GoodsUrl = goodsUrl; + this.DeliveryMethodType = deliveryMethodType; + this.GoodsImageUrl = goodsImageUrl; + this.PriceId = priceId; + } + + public string ReferenceGoodsId { get; set; } + public string GoodsName { get; set; } + public string GoodsCategory { get; set; } + public string GoodsBrand { get; set; } + public Amount GoodsUnitAmount { get; set; } + public string GoodsQuantity { get; set; } + public string GoodsSkuName { get; set; } + public string GoodsUrl { get; set; } + public string DeliveryMethodType { get; set; } + public string GoodsImageUrl { get; set; } + public string PriceId { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/GrantType.cs b/src/com/alipay/ams/api/entities/GrantType.cs new file mode 100644 index 0000000..8a65ece --- /dev/null +++ b/src/com/alipay/ams/api/entities/GrantType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum GrantType + { + AUTHORIZATION_CODE, + REFRESH_TOKEN, + } +} diff --git a/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs b/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs new file mode 100644 index 0000000..231d948 --- /dev/null +++ b/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum InStorePaymentScenario + { + PaymentCode, + OrderCode, + EntryCode, + } +} diff --git a/src/com/alipay/ams/api/entities/Individual.cs b/src/com/alipay/ams/api/entities/Individual.cs new file mode 100644 index 0000000..bef8758 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Individual.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Individual + { + + public Individual() { } + + public Individual( UserName name , UserName englishName , string dateOfBirth , Address placeOfBirth , List certificates , string nationality , List contacts) + { + this.Name = name; + this.EnglishName = englishName; + this.DateOfBirth = dateOfBirth; + this.PlaceOfBirth = placeOfBirth; + this.Certificates = certificates; + this.Nationality = nationality; + this.Contacts = contacts; + } + + public UserName Name { get; set; } + public UserName EnglishName { get; set; } + public string DateOfBirth { get; set; } + public Address PlaceOfBirth { get; set; } + public List Certificates { get; set; } + public string Nationality { get; set; } + public List Contacts { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Installment.cs b/src/com/alipay/ams/api/entities/Installment.cs new file mode 100644 index 0000000..2a2b585 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Installment.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Installment + { + + public Installment() { } + + public Installment( List supportCardBrands , List plans) + { + this.SupportCardBrands = supportCardBrands; + this.Plans = plans; + } + + public List SupportCardBrands { get; set; } + public List Plans { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/InterestFree.cs b/src/com/alipay/ams/api/entities/InterestFree.cs new file mode 100644 index 0000000..40eb812 --- /dev/null +++ b/src/com/alipay/ams/api/entities/InterestFree.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class InterestFree + { + + public InterestFree() { } + + public InterestFree( string provider , string expireTime , List installmentFreeNums , Amount minPaymentAmount , Amount maxPaymentAmount , int? freePercentage) + { + this.Provider = provider; + this.ExpireTime = expireTime; + this.InstallmentFreeNums = installmentFreeNums; + this.MinPaymentAmount = minPaymentAmount; + this.MaxPaymentAmount = maxPaymentAmount; + this.FreePercentage = freePercentage; + } + + public string Provider { get; set; } + public string ExpireTime { get; set; } + public List InstallmentFreeNums { get; set; } + public Amount MinPaymentAmount { get; set; } + public Amount MaxPaymentAmount { get; set; } + public int? FreePercentage { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Leg.cs b/src/com/alipay/ams/api/entities/Leg.cs new file mode 100644 index 0000000..a977b22 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Leg.cs @@ -0,0 +1,37 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Leg + { + + public Leg() { } + + public Leg( string departureTime , string arrivalTime , Address departureAddress , Address arrivalAddress , string carrierName , string carrierNo , ClassType classType , string departureAirportCode , string arrivalAirportCode) + { + this.DepartureTime = departureTime; + this.ArrivalTime = arrivalTime; + this.DepartureAddress = departureAddress; + this.ArrivalAddress = arrivalAddress; + this.CarrierName = carrierName; + this.CarrierNo = carrierNo; + this.ClassType = classType; + this.DepartureAirportCode = departureAirportCode; + this.ArrivalAirportCode = arrivalAirportCode; + } + + public string DepartureTime { get; set; } + public string ArrivalTime { get; set; } + public Address DepartureAddress { get; set; } + public Address ArrivalAddress { get; set; } + public string CarrierName { get; set; } + public string CarrierNo { get; set; } + public ClassType ClassType { get; set; } + public string DepartureAirportCode { get; set; } + public string ArrivalAirportCode { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/LegalEntityType.cs b/src/com/alipay/ams/api/entities/LegalEntityType.cs new file mode 100644 index 0000000..a5d7e8c --- /dev/null +++ b/src/com/alipay/ams/api/entities/LegalEntityType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum LegalEntityType + { + COMPANY, + INDIVIDUAL, + } +} diff --git a/src/com/alipay/ams/api/entities/Lodging.cs b/src/com/alipay/ams/api/entities/Lodging.cs new file mode 100644 index 0000000..cd708a3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Lodging.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Lodging + { + + public Lodging() { } + + public Lodging( string hotelName , Address hotelAddress , string checkInDate , string checkOutDate , int? numberOfNights , int? numberOfRooms , List guestNames) + { + this.HotelName = hotelName; + this.HotelAddress = hotelAddress; + this.CheckInDate = checkInDate; + this.CheckOutDate = checkOutDate; + this.NumberOfNights = numberOfNights; + this.NumberOfRooms = numberOfRooms; + this.GuestNames = guestNames; + } + + public string HotelName { get; set; } + public Address HotelAddress { get; set; } + public string CheckInDate { get; set; } + public string CheckOutDate { get; set; } + public int? NumberOfNights { get; set; } + public int? NumberOfRooms { get; set; } + public List GuestNames { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Logo.cs b/src/com/alipay/ams/api/entities/Logo.cs new file mode 100644 index 0000000..9047b16 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Logo.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Logo + { + + public Logo() { } + + public Logo( string logoName , string logoUrl) + { + this.LogoName = logoName; + this.LogoUrl = logoUrl; + } + + public string LogoName { get; set; } + public string LogoUrl { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Merchant.cs b/src/com/alipay/ams/api/entities/Merchant.cs new file mode 100644 index 0000000..6af6d51 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Merchant.cs @@ -0,0 +1,35 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Merchant + { + + public Merchant() { } + + public Merchant( string referenceMerchantId , string merchantMCC , string merchantName , string merchantDisplayName , Address merchantAddress , string merchantRegisterDate , Store store , MerchantType merchantType) + { + this.ReferenceMerchantId = referenceMerchantId; + this.MerchantMCC = merchantMCC; + this.MerchantName = merchantName; + this.MerchantDisplayName = merchantDisplayName; + this.MerchantAddress = merchantAddress; + this.MerchantRegisterDate = merchantRegisterDate; + this.Store = store; + this.MerchantType = merchantType; + } + + public string ReferenceMerchantId { get; set; } + public string MerchantMCC { get; set; } + public string MerchantName { get; set; } + public string MerchantDisplayName { get; set; } + public Address MerchantAddress { get; set; } + public string MerchantRegisterDate { get; set; } + public Store Store { get; set; } + public MerchantType MerchantType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/MerchantInfo.cs b/src/com/alipay/ams/api/entities/MerchantInfo.cs new file mode 100644 index 0000000..521c929 --- /dev/null +++ b/src/com/alipay/ams/api/entities/MerchantInfo.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class MerchantInfo + { + + public MerchantInfo() { } + + public MerchantInfo( string referenceMerchantId , string loginId , LegalEntityType legalEntityType , Company company , BusinessInfo businessInfo , List entityAssociations) + { + this.ReferenceMerchantId = referenceMerchantId; + this.LoginId = loginId; + this.LegalEntityType = legalEntityType; + this.Company = company; + this.BusinessInfo = businessInfo; + this.EntityAssociations = entityAssociations; + } + + public string ReferenceMerchantId { get; set; } + public string LoginId { get; set; } + public LegalEntityType LegalEntityType { get; set; } + public Company Company { get; set; } + public BusinessInfo BusinessInfo { get; set; } + public List EntityAssociations { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/MerchantType.cs b/src/com/alipay/ams/api/entities/MerchantType.cs new file mode 100644 index 0000000..9818392 --- /dev/null +++ b/src/com/alipay/ams/api/entities/MerchantType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum MerchantType + { + INDIVIDUAL, + ENTERPRISE, + } +} diff --git a/src/com/alipay/ams/api/entities/MpiData.cs b/src/com/alipay/ams/api/entities/MpiData.cs new file mode 100644 index 0000000..fefb9cb --- /dev/null +++ b/src/com/alipay/ams/api/entities/MpiData.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class MpiData + { + + public MpiData() { } + + public MpiData( string threeDSVersion , string eci , string cavv , string dsTransactionId) + { + this.ThreeDSVersion = threeDSVersion; + this.Eci = eci; + this.Cavv = cavv; + this.DsTransactionId = dsTransactionId; + } + + public string ThreeDSVersion { get; set; } + public string Eci { get; set; } + public string Cavv { get; set; } + public string DsTransactionId { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Order.cs b/src/com/alipay/ams/api/entities/Order.cs new file mode 100644 index 0000000..75bb88f --- /dev/null +++ b/src/com/alipay/ams/api/entities/Order.cs @@ -0,0 +1,47 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Order + { + + public Order() { } + + public Order( string referenceOrderId , string orderDescription , Amount orderAmount , Merchant merchant , List goods , Shipping shipping , Buyer buyer , Env env , string extendInfo , Transit transit , Lodging lodging , Gaming gaming , bool? needDeclaration , string orderType) + { + this.ReferenceOrderId = referenceOrderId; + this.OrderDescription = orderDescription; + this.OrderAmount = orderAmount; + this.Merchant = merchant; + this.Goods = goods; + this.Shipping = shipping; + this.Buyer = buyer; + this.Env = env; + this.ExtendInfo = extendInfo; + this.Transit = transit; + this.Lodging = lodging; + this.Gaming = gaming; + this.NeedDeclaration = needDeclaration; + this.OrderType = orderType; + } + + public string ReferenceOrderId { get; set; } + public string OrderDescription { get; set; } + public Amount OrderAmount { get; set; } + public Merchant Merchant { get; set; } + public List Goods { get; set; } + public Shipping Shipping { get; set; } + public Buyer Buyer { get; set; } + public Env Env { get; set; } + public string ExtendInfo { get; set; } + public Transit Transit { get; set; } + public Lodging Lodging { get; set; } + public Gaming Gaming { get; set; } + public bool? NeedDeclaration { get; set; } + public string OrderType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/OrderCodeForm.cs b/src/com/alipay/ams/api/entities/OrderCodeForm.cs new file mode 100644 index 0000000..156f28c --- /dev/null +++ b/src/com/alipay/ams/api/entities/OrderCodeForm.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class OrderCodeForm + { + + public OrderCodeForm() { } + + public OrderCodeForm( string paymentMethodType , string expireTime , List codeDetails , string extendInfo) + { + this.PaymentMethodType = paymentMethodType; + this.ExpireTime = expireTime; + this.CodeDetails = codeDetails; + this.ExtendInfo = extendInfo; + } + + public string PaymentMethodType { get; set; } + public string ExpireTime { get; set; } + public List CodeDetails { get; set; } + public string ExtendInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/OrderInfo.cs b/src/com/alipay/ams/api/entities/OrderInfo.cs new file mode 100644 index 0000000..59e1654 --- /dev/null +++ b/src/com/alipay/ams/api/entities/OrderInfo.cs @@ -0,0 +1,21 @@ + +namespace com.alipay.ams.api.entities +{ + +public class OrderInfo + { + + public OrderInfo() { } + + public OrderInfo( Amount orderAmount) + { + this.OrderAmount = orderAmount; + } + + public Amount OrderAmount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/OsType.cs b/src/com/alipay/ams/api/entities/OsType.cs new file mode 100644 index 0000000..4ca393a --- /dev/null +++ b/src/com/alipay/ams/api/entities/OsType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum OsType + { + IOS, + ANDROID, + } +} diff --git a/src/com/alipay/ams/api/entities/Passenger.cs b/src/com/alipay/ams/api/entities/Passenger.cs new file mode 100644 index 0000000..045e193 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Passenger.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Passenger + { + + public Passenger() { } + + public Passenger( UserName passengerName , string passengerEmail , string passengerPhoneNo) + { + this.PassengerName = passengerName; + this.PassengerEmail = passengerEmail; + this.PassengerPhoneNo = passengerPhoneNo; + } + + public UserName PassengerName { get; set; } + public string PassengerEmail { get; set; } + public string PassengerPhoneNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentFactor.cs b/src/com/alipay/ams/api/entities/PaymentFactor.cs new file mode 100644 index 0000000..3966779 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentFactor.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentFactor + { + + public PaymentFactor() { } + + public PaymentFactor( bool? isPaymentEvaluation , InStorePaymentScenario inStorePaymentScenario , PresentmentMode presentmentMode , string captureMode , bool? isAuthorization) + { + this.IsPaymentEvaluation = isPaymentEvaluation; + this.InStorePaymentScenario = inStorePaymentScenario; + this.PresentmentMode = presentmentMode; + this.CaptureMode = captureMode; + this.IsAuthorization = isAuthorization; + } + + public bool? IsPaymentEvaluation { get; set; } + public InStorePaymentScenario InStorePaymentScenario { get; set; } + public PresentmentMode PresentmentMode { get; set; } + public string CaptureMode { get; set; } + public bool? IsAuthorization { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentMethod.cs b/src/com/alipay/ams/api/entities/PaymentMethod.cs new file mode 100644 index 0000000..1898136 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentMethod.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentMethod + { + + public PaymentMethod() { } + + public PaymentMethod( string paymentMethodType , string paymentMethodId , Dictionary paymentMethodMetaData , string customerId , string extendInfo , bool? requireIssuerAuthentication) + { + this.PaymentMethodType = paymentMethodType; + this.PaymentMethodId = paymentMethodId; + this.PaymentMethodMetaData = paymentMethodMetaData; + this.CustomerId = customerId; + this.ExtendInfo = extendInfo; + this.RequireIssuerAuthentication = requireIssuerAuthentication; + } + + public string PaymentMethodType { get; set; } + public string PaymentMethodId { get; set; } + public Dictionary PaymentMethodMetaData { get; set; } + public string CustomerId { get; set; } + public string ExtendInfo { get; set; } + public bool? RequireIssuerAuthentication { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs b/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs new file mode 100644 index 0000000..e0ac270 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs @@ -0,0 +1,15 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum PaymentMethodCategoryType + { + ALIPAY_PLUS, + WALLET, + MOBILE_BANKING_APP, + BANK_TRANSFER, + ONLINE_BANKING, + CARD, + OTC, + } +} diff --git a/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs b/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs new file mode 100644 index 0000000..140357e --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs @@ -0,0 +1,37 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentMethodDetail + { + + public PaymentMethodDetail() { } + + public PaymentMethodDetail( PaymentMethodDetailType paymentMethodDetailType , CardPaymentMethodDetail card , ExternalPaymentMethodDetail externalAccount , DiscountPaymentMethodDetail discount , CouponPaymentMethodDetail coupon , string paymentMethodType , string extendInfo , Wallet wallet , string interactionType) + { + this.PaymentMethodDetailType = paymentMethodDetailType; + this.Card = card; + this.ExternalAccount = externalAccount; + this.Discount = discount; + this.Coupon = coupon; + this.PaymentMethodType = paymentMethodType; + this.ExtendInfo = extendInfo; + this.Wallet = wallet; + this.InteractionType = interactionType; + } + + public PaymentMethodDetailType PaymentMethodDetailType { get; set; } + public CardPaymentMethodDetail Card { get; set; } + public ExternalPaymentMethodDetail ExternalAccount { get; set; } + public DiscountPaymentMethodDetail Discount { get; set; } + public CouponPaymentMethodDetail Coupon { get; set; } + public string PaymentMethodType { get; set; } + public string ExtendInfo { get; set; } + public Wallet Wallet { get; set; } + public string InteractionType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs b/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs new file mode 100644 index 0000000..26278e1 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs @@ -0,0 +1,12 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum PaymentMethodDetailType + { + CARD, + EXTERNALACCOUNT, + COUPON, + DISCOUNT, + } +} diff --git a/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs b/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs new file mode 100644 index 0000000..2d4ad60 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentMethodInfo + { + + public PaymentMethodInfo() { } + + public PaymentMethodInfo( string paymentMethodType , string paymentMethodDetail , bool? enabled , bool? preferred , string extendInfo) + { + this.PaymentMethodType = paymentMethodType; + this.PaymentMethodDetail = paymentMethodDetail; + this.Enabled = enabled; + this.Preferred = preferred; + this.ExtendInfo = extendInfo; + } + + public string PaymentMethodType { get; set; } + public string PaymentMethodDetail { get; set; } + public bool? Enabled { get; set; } + public bool? Preferred { get; set; } + public string ExtendInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs b/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs new file mode 100644 index 0000000..329417b --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentMethodTypeItem + { + + public PaymentMethodTypeItem() { } + + public PaymentMethodTypeItem( string paymentMethodType , string paymentMethodOrder , string expressCheckout) + { + this.PaymentMethodType = paymentMethodType; + this.PaymentMethodOrder = paymentMethodOrder; + this.ExpressCheckout = expressCheckout; + } + + public string PaymentMethodType { get; set; } + public string PaymentMethodOrder { get; set; } + public string ExpressCheckout { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentOption.cs b/src/com/alipay/ams/api/entities/PaymentOption.cs new file mode 100644 index 0000000..a5bffa4 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentOption.cs @@ -0,0 +1,47 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentOption + { + + public PaymentOption() { } + + public PaymentOption( string paymentMethodType , PaymentMethodCategoryType paymentMethodCategory , List paymentMethodRegion , bool? enabled , bool? preferred , string disableReason , Dictionary amountLimitInfoMap , List supportedCurrencies , PaymentOptionDetail paymentOptionDetail , string extendInfo , Logo logo , List promoNames , Installment installment , List promotionInfos) + { + this.PaymentMethodType = paymentMethodType; + this.PaymentMethodCategory = paymentMethodCategory; + this.PaymentMethodRegion = paymentMethodRegion; + this.Enabled = enabled; + this.Preferred = preferred; + this.DisableReason = disableReason; + this.AmountLimitInfoMap = amountLimitInfoMap; + this.SupportedCurrencies = supportedCurrencies; + this.PaymentOptionDetail = paymentOptionDetail; + this.ExtendInfo = extendInfo; + this.Logo = logo; + this.PromoNames = promoNames; + this.Installment = installment; + this.PromotionInfos = promotionInfos; + } + + public string PaymentMethodType { get; set; } + public PaymentMethodCategoryType PaymentMethodCategory { get; set; } + public List PaymentMethodRegion { get; set; } + public bool? Enabled { get; set; } + public bool? Preferred { get; set; } + public string DisableReason { get; set; } + public Dictionary AmountLimitInfoMap { get; set; } + public List SupportedCurrencies { get; set; } + public PaymentOptionDetail PaymentOptionDetail { get; set; } + public string ExtendInfo { get; set; } + public Logo Logo { get; set; } + public List PromoNames { get; set; } + public Installment Installment { get; set; } + public List PromotionInfos { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs b/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs new file mode 100644 index 0000000..633dc37 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentOptionDetail + { + + public PaymentOptionDetail() { } + + public PaymentOptionDetail( List supportCardBrands , List funding , List supportBanks) + { + this.SupportCardBrands = supportCardBrands; + this.Funding = funding; + this.SupportBanks = supportBanks; + } + + public List SupportCardBrands { get; set; } + public List Funding { get; set; } + public List SupportBanks { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentResultInfo.cs b/src/com/alipay/ams/api/entities/PaymentResultInfo.cs new file mode 100644 index 0000000..8174f41 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentResultInfo.cs @@ -0,0 +1,59 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentResultInfo + { + + public PaymentResultInfo() { } + + public PaymentResultInfo( 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) + { + this.RefusalCodeRaw = refusalCodeRaw; + this.RefusalReasonRaw = refusalReasonRaw; + this.MerchantAdviceCode = merchantAdviceCode; + this.AcquirerInfo = acquirerInfo; + this.CardNo = cardNo; + this.CardBrand = cardBrand; + this.CardToken = cardToken; + this.IssuingCountry = issuingCountry; + this.Funding = funding; + this.PaymentMethodRegion = paymentMethodRegion; + this.ThreeDSResult = threeDSResult; + this.AvsResultRaw = avsResultRaw; + this.CvvResultRaw = cvvResultRaw; + this.NetworkTransactionId = networkTransactionId; + this.CreditPayPlan = creditPayPlan; + this.CardholderName = cardholderName; + this.CardBin = cardBin; + this.LastFour = lastFour; + this.ExpiryMonth = expiryMonth; + this.ExpiryYear = expiryYear; + } + + public string RefusalCodeRaw { get; set; } + public string RefusalReasonRaw { get; set; } + public string MerchantAdviceCode { get; set; } + public AcquirerInfo AcquirerInfo { get; set; } + public string CardNo { get; set; } + public string CardBrand { get; set; } + public string CardToken { get; set; } + public string IssuingCountry { get; set; } + public string Funding { get; set; } + public string PaymentMethodRegion { get; set; } + public ThreeDSResult ThreeDSResult { get; set; } + public string AvsResultRaw { get; set; } + public string CvvResultRaw { get; set; } + public string NetworkTransactionId { get; set; } + public CreditPayPlan CreditPayPlan { get; set; } + public string CardholderName { get; set; } + public string CardBin { get; set; } + public string LastFour { get; set; } + public string ExpiryMonth { get; set; } + public string ExpiryYear { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PaymentVerificationData.cs b/src/com/alipay/ams/api/entities/PaymentVerificationData.cs new file mode 100644 index 0000000..a475c07 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PaymentVerificationData.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PaymentVerificationData + { + + public PaymentVerificationData() { } + + public PaymentVerificationData( string verifyRequestId , string authenticationCode) + { + this.VerifyRequestId = verifyRequestId; + this.AuthenticationCode = authenticationCode; + } + + public string VerifyRequestId { get; set; } + public string AuthenticationCode { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PeriodRule.cs b/src/com/alipay/ams/api/entities/PeriodRule.cs new file mode 100644 index 0000000..16e9abe --- /dev/null +++ b/src/com/alipay/ams/api/entities/PeriodRule.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PeriodRule + { + + public PeriodRule() { } + + public PeriodRule( string periodType , int? periodCount) + { + this.PeriodType = periodType; + this.PeriodCount = periodCount; + } + + public string PeriodType { get; set; } + public int? PeriodCount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Plan.cs b/src/com/alipay/ams/api/entities/Plan.cs new file mode 100644 index 0000000..0a89209 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Plan.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Plan + { + + public Plan() { } + + public Plan( string interestRate , Amount minInstallmentAmount , Amount maxInstallmentAmount , string installmentNum , string interval , bool? enabled) + { + this.InterestRate = interestRate; + this.MinInstallmentAmount = minInstallmentAmount; + this.MaxInstallmentAmount = maxInstallmentAmount; + this.InstallmentNum = installmentNum; + this.Interval = interval; + this.Enabled = enabled; + } + + public string InterestRate { get; set; } + public Amount MinInstallmentAmount { get; set; } + public Amount MaxInstallmentAmount { get; set; } + public string InstallmentNum { get; set; } + public string Interval { get; set; } + public bool? Enabled { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PresentmentMode.cs b/src/com/alipay/ams/api/entities/PresentmentMode.cs new file mode 100644 index 0000000..87adfd8 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PresentmentMode.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum PresentmentMode + { + BUNDLE, + TILE, + UNIFIED, + } +} diff --git a/src/com/alipay/ams/api/entities/ProductCodeType.cs b/src/com/alipay/ams/api/entities/ProductCodeType.cs new file mode 100644 index 0000000..78a6343 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ProductCodeType.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ProductCodeType + { + CASHIER_PAYMENT, + AGREEMENT_PAYMENT, + IN_STORE_PAYMENT, + } +} diff --git a/src/com/alipay/ams/api/entities/PromotionInfo.cs b/src/com/alipay/ams/api/entities/PromotionInfo.cs new file mode 100644 index 0000000..dfbe232 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PromotionInfo.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PromotionInfo + { + + public PromotionInfo() { } + + public PromotionInfo( PromotionType promotionType , Discount discount , InterestFree interestFree) + { + this.PromotionType = promotionType; + this.Discount = discount; + this.InterestFree = interestFree; + } + + public PromotionType PromotionType { get; set; } + public Discount Discount { get; set; } + public InterestFree InterestFree { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PromotionResult.cs b/src/com/alipay/ams/api/entities/PromotionResult.cs new file mode 100644 index 0000000..5958ec8 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PromotionResult.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PromotionResult + { + + public PromotionResult() { } + + public PromotionResult( PromotionType promotionType , Discount discount) + { + this.PromotionType = promotionType; + this.Discount = discount; + } + + public PromotionType PromotionType { get; set; } + public Discount Discount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/PromotionType.cs b/src/com/alipay/ams/api/entities/PromotionType.cs new file mode 100644 index 0000000..a7d1b89 --- /dev/null +++ b/src/com/alipay/ams/api/entities/PromotionType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum PromotionType + { + DISCOUNT, + INTEREST_FREE, + } +} diff --git a/src/com/alipay/ams/api/entities/PspCustomerInfo.cs b/src/com/alipay/ams/api/entities/PspCustomerInfo.cs new file mode 100644 index 0000000..788cf5a --- /dev/null +++ b/src/com/alipay/ams/api/entities/PspCustomerInfo.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class PspCustomerInfo + { + + public PspCustomerInfo() { } + + public PspCustomerInfo( string pspName , string pspCustomerId , string displayCustomerId , string displayCustomerName , string customer2088Id , string extendInfo) + { + this.PspName = pspName; + this.PspCustomerId = pspCustomerId; + this.DisplayCustomerId = displayCustomerId; + this.DisplayCustomerName = displayCustomerName; + this.Customer2088Id = customer2088Id; + this.ExtendInfo = extendInfo; + } + + public string PspName { get; set; } + public string PspCustomerId { get; set; } + public string DisplayCustomerId { get; set; } + public string DisplayCustomerName { get; set; } + public string Customer2088Id { get; set; } + public string ExtendInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Quote.cs b/src/com/alipay/ams/api/entities/Quote.cs new file mode 100644 index 0000000..ad7395d --- /dev/null +++ b/src/com/alipay/ams/api/entities/Quote.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Quote + { + + public Quote() { } + + public Quote( string quoteId , string quoteCurrencyPair , decimal? quotePrice , string quoteStartTime , string quoteExpiryTime , bool? guaranteed) + { + this.QuoteId = quoteId; + this.QuoteCurrencyPair = quoteCurrencyPair; + this.QuotePrice = quotePrice; + this.QuoteStartTime = quoteStartTime; + this.QuoteExpiryTime = quoteExpiryTime; + this.Guaranteed = guaranteed; + } + + public string QuoteId { get; set; } + public string QuoteCurrencyPair { get; set; } + public decimal? QuotePrice { get; set; } + public string QuoteStartTime { get; set; } + public string QuoteExpiryTime { get; set; } + public bool? Guaranteed { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RedirectActionForm.cs b/src/com/alipay/ams/api/entities/RedirectActionForm.cs new file mode 100644 index 0000000..67429ba --- /dev/null +++ b/src/com/alipay/ams/api/entities/RedirectActionForm.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RedirectActionForm + { + + public RedirectActionForm() { } + + public RedirectActionForm( string method , string parameters , string redirectUrl , string actionFormType) + { + this.Method = method; + this.Parameters = parameters; + this.RedirectUrl = redirectUrl; + this.ActionFormType = actionFormType; + } + + public string Method { get; set; } + public string Parameters { get; set; } + public string RedirectUrl { get; set; } + public string ActionFormType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RefundDetail.cs b/src/com/alipay/ams/api/entities/RefundDetail.cs new file mode 100644 index 0000000..b970ef5 --- /dev/null +++ b/src/com/alipay/ams/api/entities/RefundDetail.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RefundDetail + { + + public RefundDetail() { } + + public RefundDetail( Amount refundAmount , RefundFromType refundFrom) + { + this.RefundAmount = refundAmount; + this.RefundFrom = refundFrom; + } + + public Amount RefundAmount { get; set; } + public RefundFromType RefundFrom { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RefundFromType.cs b/src/com/alipay/ams/api/entities/RefundFromType.cs new file mode 100644 index 0000000..2d183d3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/RefundFromType.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum RefundFromType + { + SELLER, + MARKETPLACE, + UNSETTLED_FUNDS, + } +} diff --git a/src/com/alipay/ams/api/entities/Result.cs b/src/com/alipay/ams/api/entities/Result.cs new file mode 100644 index 0000000..5ab9e9c --- /dev/null +++ b/src/com/alipay/ams/api/entities/Result.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Result + { + + public Result() { } + + public Result( string resultCode , ResultStatusType resultStatus , string resultMessage) + { + this.ResultCode = resultCode; + this.ResultStatus = resultStatus; + this.ResultMessage = resultMessage; + } + + public string ResultCode { get; set; } + public ResultStatusType ResultStatus { get; set; } + public string ResultMessage { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/ResultStatusType.cs b/src/com/alipay/ams/api/entities/ResultStatusType.cs new file mode 100644 index 0000000..7f06a51 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ResultStatusType.cs @@ -0,0 +1,11 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ResultStatusType + { + S, + F, + U, + } +} diff --git a/src/com/alipay/ams/api/entities/RiskAddress.cs b/src/com/alipay/ams/api/entities/RiskAddress.cs new file mode 100644 index 0000000..106236d --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskAddress.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskAddress + { + + public RiskAddress() { } + + public RiskAddress( string shippingPhoneType , bool? isBillShipStateSame , bool? isPreviousStateSame , int? locToShipDistance , int? minPreviousShipToBillDistance) + { + this.ShippingPhoneType = shippingPhoneType; + this.IsBillShipStateSame = isBillShipStateSame; + this.IsPreviousStateSame = isPreviousStateSame; + this.LocToShipDistance = locToShipDistance; + this.MinPreviousShipToBillDistance = minPreviousShipToBillDistance; + } + + public string ShippingPhoneType { get; set; } + public bool? IsBillShipStateSame { get; set; } + public bool? IsPreviousStateSame { get; set; } + public int? LocToShipDistance { get; set; } + public int? MinPreviousShipToBillDistance { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RiskBuyer.cs b/src/com/alipay/ams/api/entities/RiskBuyer.cs new file mode 100644 index 0000000..5f6f28a --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskBuyer.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskBuyer + { + + public RiskBuyer() { } + + public RiskBuyer( string noteToMerchant , string noteToShipping , int? orderCountIn1H , int? orderCountIn24H) + { + this.NoteToMerchant = noteToMerchant; + this.NoteToShipping = noteToShipping; + this.OrderCountIn1H = orderCountIn1H; + this.OrderCountIn24H = orderCountIn24H; + } + + public string NoteToMerchant { get; set; } + public string NoteToShipping { get; set; } + public int? OrderCountIn1H { get; set; } + public int? OrderCountIn24H { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RiskData.cs b/src/com/alipay/ams/api/entities/RiskData.cs new file mode 100644 index 0000000..63320eb --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskData.cs @@ -0,0 +1,31 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskData + { + + public RiskData() { } + + public RiskData( RiskOrder order , RiskBuyer buyer , RiskEnv env , RiskSignal riskSignal , RiskAddress address , CardVerificationResult cardVerificationResult) + { + this.Order = order; + this.Buyer = buyer; + this.Env = env; + this.RiskSignal = riskSignal; + this.Address = address; + this.CardVerificationResult = cardVerificationResult; + } + + public RiskOrder Order { get; set; } + public RiskBuyer Buyer { get; set; } + public RiskEnv Env { get; set; } + public RiskSignal RiskSignal { get; set; } + public RiskAddress Address { get; set; } + public CardVerificationResult CardVerificationResult { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RiskEnv.cs b/src/com/alipay/ams/api/entities/RiskEnv.cs new file mode 100644 index 0000000..4384b41 --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskEnv.cs @@ -0,0 +1,21 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskEnv + { + + public RiskEnv() { } + + public RiskEnv( string ipAddressType) + { + this.IpAddressType = ipAddressType; + } + + public string IpAddressType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RiskOrder.cs b/src/com/alipay/ams/api/entities/RiskOrder.cs new file mode 100644 index 0000000..fc17944 --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskOrder.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskOrder + { + + public RiskOrder() { } + + public RiskOrder( string orderType , string referringSite) + { + this.OrderType = orderType; + this.ReferringSite = referringSite; + } + + public string OrderType { get; set; } + public string ReferringSite { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RiskSignal.cs b/src/com/alipay/ams/api/entities/RiskSignal.cs new file mode 100644 index 0000000..e0ce5e7 --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskSignal.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskSignal + { + + public RiskSignal() { } + + public RiskSignal( string riskCode , string riskReason) + { + this.RiskCode = riskCode; + this.RiskReason = riskReason; + } + + public string RiskCode { get; set; } + public string RiskReason { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs b/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs new file mode 100644 index 0000000..406e4a5 --- /dev/null +++ b/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class RiskThreeDSResult + { + + public RiskThreeDSResult() { } + + public RiskThreeDSResult( string threeDSVersion , string threeDSInteractionMode , string eci , string cavv) + { + this.ThreeDSVersion = threeDSVersion; + this.ThreeDSInteractionMode = threeDSInteractionMode; + this.Eci = eci; + this.Cavv = cavv; + } + + public string ThreeDSVersion { get; set; } + public string ThreeDSInteractionMode { get; set; } + public string Eci { get; set; } + public string Cavv { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/ScopeType.cs b/src/com/alipay/ams/api/entities/ScopeType.cs new file mode 100644 index 0000000..a01a7a3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ScopeType.cs @@ -0,0 +1,15 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum ScopeType + { + BASE_USER_INFO, + AGREEMENT_PAY, + USER_INFO, + USER_LOGIN_ID, + HASH_LOGIN_ID, + SEND_OTP, + TAOBAO_REBIND, + } +} diff --git a/src/com/alipay/ams/api/entities/SettleToType.cs b/src/com/alipay/ams/api/entities/SettleToType.cs new file mode 100644 index 0000000..0675385 --- /dev/null +++ b/src/com/alipay/ams/api/entities/SettleToType.cs @@ -0,0 +1,10 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum SettleToType + { + SELLER, + MARKETPLACE, + } +} diff --git a/src/com/alipay/ams/api/entities/SettlementBankAccount.cs b/src/com/alipay/ams/api/entities/SettlementBankAccount.cs new file mode 100644 index 0000000..dbc371e --- /dev/null +++ b/src/com/alipay/ams/api/entities/SettlementBankAccount.cs @@ -0,0 +1,43 @@ + +namespace com.alipay.ams.api.entities +{ + +public class SettlementBankAccount + { + + public SettlementBankAccount() { } + + public SettlementBankAccount( string bankAccountNo , string accountHolderName , string swiftCode , string bankRegion , AccountHolderType accountHolderType , string routingNumber , string branchCode , string accountHolderTIN , AccountType accountType , string bankName , Address accountHolderAddress , string iban) + { + this.BankAccountNo = bankAccountNo; + this.AccountHolderName = accountHolderName; + this.SwiftCode = swiftCode; + this.BankRegion = bankRegion; + this.AccountHolderType = accountHolderType; + this.RoutingNumber = routingNumber; + this.BranchCode = branchCode; + this.AccountHolderTIN = accountHolderTIN; + this.AccountType = accountType; + this.BankName = bankName; + this.AccountHolderAddress = accountHolderAddress; + this.Iban = iban; + } + + public string BankAccountNo { get; set; } + public string AccountHolderName { get; set; } + public string SwiftCode { get; set; } + public string BankRegion { get; set; } + public AccountHolderType AccountHolderType { get; set; } + public string RoutingNumber { get; set; } + public string BranchCode { get; set; } + public string AccountHolderTIN { get; set; } + public AccountType AccountType { get; set; } + public string BankName { get; set; } + public Address AccountHolderAddress { get; set; } + public string Iban { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/SettlementDetail.cs b/src/com/alipay/ams/api/entities/SettlementDetail.cs new file mode 100644 index 0000000..173b068 --- /dev/null +++ b/src/com/alipay/ams/api/entities/SettlementDetail.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class SettlementDetail + { + + public SettlementDetail() { } + + public SettlementDetail( SettleToType settleTo , Amount settlementAmount) + { + this.SettleTo = settleTo; + this.SettlementAmount = settlementAmount; + } + + public SettleToType SettleTo { get; set; } + public Amount SettlementAmount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/SettlementInfo.cs b/src/com/alipay/ams/api/entities/SettlementInfo.cs new file mode 100644 index 0000000..bc3418d --- /dev/null +++ b/src/com/alipay/ams/api/entities/SettlementInfo.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class SettlementInfo + { + + public SettlementInfo() { } + + public SettlementInfo( string settlementCurrency , SettlementBankAccount settlementBankAccount) + { + this.SettlementCurrency = settlementCurrency; + this.SettlementBankAccount = settlementBankAccount; + } + + public string SettlementCurrency { get; set; } + public SettlementBankAccount SettlementBankAccount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/SettlementStrategy.cs b/src/com/alipay/ams/api/entities/SettlementStrategy.cs new file mode 100644 index 0000000..f0804a5 --- /dev/null +++ b/src/com/alipay/ams/api/entities/SettlementStrategy.cs @@ -0,0 +1,21 @@ + +namespace com.alipay.ams.api.entities +{ + +public class SettlementStrategy + { + + public SettlementStrategy() { } + + public SettlementStrategy( string settlementCurrency) + { + this.SettlementCurrency = settlementCurrency; + } + + public string SettlementCurrency { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Shipping.cs b/src/com/alipay/ams/api/entities/Shipping.cs new file mode 100644 index 0000000..f26ef99 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Shipping.cs @@ -0,0 +1,37 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Shipping + { + + public Shipping() { } + + public Shipping( UserName shippingName , Address shippingAddress , string shippingCarrier , string shippingPhoneNo , string shipToEmail , string shippingFeeId , Amount shippingFee , string shippingDescription , DeliveryEstimate deliveryEstimate) + { + this.ShippingName = shippingName; + this.ShippingAddress = shippingAddress; + this.ShippingCarrier = shippingCarrier; + this.ShippingPhoneNo = shippingPhoneNo; + this.ShipToEmail = shipToEmail; + this.ShippingFeeId = shippingFeeId; + this.ShippingFee = shippingFee; + this.ShippingDescription = shippingDescription; + this.DeliveryEstimate = deliveryEstimate; + } + + public UserName ShippingName { get; set; } + public Address ShippingAddress { get; set; } + public string ShippingCarrier { get; set; } + public string ShippingPhoneNo { get; set; } + public string ShipToEmail { get; set; } + public string ShippingFeeId { get; set; } + public Amount ShippingFee { get; set; } + public string ShippingDescription { get; set; } + public DeliveryEstimate DeliveryEstimate { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/StockInfo.cs b/src/com/alipay/ams/api/entities/StockInfo.cs new file mode 100644 index 0000000..8d52ecf --- /dev/null +++ b/src/com/alipay/ams/api/entities/StockInfo.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class StockInfo + { + + public StockInfo() { } + + public StockInfo( string listedRegion , string tickerSymbol) + { + this.ListedRegion = listedRegion; + this.TickerSymbol = tickerSymbol; + } + + public string ListedRegion { get; set; } + public string TickerSymbol { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Store.cs b/src/com/alipay/ams/api/entities/Store.cs new file mode 100644 index 0000000..6fb807f --- /dev/null +++ b/src/com/alipay/ams/api/entities/Store.cs @@ -0,0 +1,35 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Store + { + + public Store() { } + + public Store( string referenceStoreId , string storeName , string storeMCC , string storeDisplayName , string storeTerminalId , string storeOperatorId , Address storeAddress , string storePhoneNo) + { + this.ReferenceStoreId = referenceStoreId; + this.StoreName = storeName; + this.StoreMCC = storeMCC; + this.StoreDisplayName = storeDisplayName; + this.StoreTerminalId = storeTerminalId; + this.StoreOperatorId = storeOperatorId; + this.StoreAddress = storeAddress; + this.StorePhoneNo = storePhoneNo; + } + + public string ReferenceStoreId { get; set; } + public string StoreName { get; set; } + public string StoreMCC { get; set; } + public string StoreDisplayName { get; set; } + public string StoreTerminalId { get; set; } + public string StoreOperatorId { get; set; } + public Address StoreAddress { get; set; } + public string StorePhoneNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/SupportBank.cs b/src/com/alipay/ams/api/entities/SupportBank.cs new file mode 100644 index 0000000..d4d6b5e --- /dev/null +++ b/src/com/alipay/ams/api/entities/SupportBank.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class SupportBank + { + + public SupportBank() { } + + public SupportBank( string bankIdentifierCode , string bankShortName , Logo bankLogo) + { + this.BankIdentifierCode = bankIdentifierCode; + this.BankShortName = bankShortName; + this.BankLogo = bankLogo; + } + + public string BankIdentifierCode { get; set; } + public string BankShortName { get; set; } + public Logo BankLogo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/SupportCardBrand.cs b/src/com/alipay/ams/api/entities/SupportCardBrand.cs new file mode 100644 index 0000000..17d4232 --- /dev/null +++ b/src/com/alipay/ams/api/entities/SupportCardBrand.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class SupportCardBrand + { + + public SupportCardBrand() { } + + public SupportCardBrand( string cardBrand , Logo logo) + { + this.CardBrand = cardBrand; + this.Logo = logo; + } + + public string CardBrand { get; set; } + public Logo Logo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/TerminalType.cs b/src/com/alipay/ams/api/entities/TerminalType.cs new file mode 100644 index 0000000..d1fb0f1 --- /dev/null +++ b/src/com/alipay/ams/api/entities/TerminalType.cs @@ -0,0 +1,12 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum TerminalType + { + WEB, + WAP, + APP, + MINI_APP, + } +} diff --git a/src/com/alipay/ams/api/entities/ThreeDSResult.cs b/src/com/alipay/ams/api/entities/ThreeDSResult.cs new file mode 100644 index 0000000..0f8dbd7 --- /dev/null +++ b/src/com/alipay/ams/api/entities/ThreeDSResult.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class ThreeDSResult + { + + public ThreeDSResult() { } + + public ThreeDSResult( string threeDSVersion , string eci , string cavv , string dsTransactionId , string xid) + { + this.ThreeDSVersion = threeDSVersion; + this.Eci = eci; + this.Cavv = cavv; + this.DsTransactionId = dsTransactionId; + this.Xid = xid; + } + + public string ThreeDSVersion { get; set; } + public string Eci { get; set; } + public string Cavv { get; set; } + public string DsTransactionId { get; set; } + public string Xid { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Transaction.cs b/src/com/alipay/ams/api/entities/Transaction.cs new file mode 100644 index 0000000..4ff474f --- /dev/null +++ b/src/com/alipay/ams/api/entities/Transaction.cs @@ -0,0 +1,35 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Transaction + { + + public Transaction() { } + + public Transaction( Result transactionResult , string transactionId , TransactionType transactionType , TransactionStatusType transactionStatus , Amount transactionAmount , string transactionRequestId , string transactionTime , AcquirerInfo acquirerInfo) + { + this.TransactionResult = transactionResult; + this.TransactionId = transactionId; + this.TransactionType = transactionType; + this.TransactionStatus = transactionStatus; + this.TransactionAmount = transactionAmount; + this.TransactionRequestId = transactionRequestId; + this.TransactionTime = transactionTime; + this.AcquirerInfo = acquirerInfo; + } + + public Result TransactionResult { get; set; } + public string TransactionId { get; set; } + public TransactionType TransactionType { get; set; } + public TransactionStatusType TransactionStatus { get; set; } + public Amount TransactionAmount { get; set; } + public string TransactionRequestId { get; set; } + public string TransactionTime { get; set; } + public AcquirerInfo AcquirerInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/TransactionStatusType.cs b/src/com/alipay/ams/api/entities/TransactionStatusType.cs new file mode 100644 index 0000000..eea8fe7 --- /dev/null +++ b/src/com/alipay/ams/api/entities/TransactionStatusType.cs @@ -0,0 +1,13 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum TransactionStatusType + { + SUCCESS, + FAIL, + PROCESSING, + CANCELLED, + PENDING, + } +} diff --git a/src/com/alipay/ams/api/entities/TransactionType.cs b/src/com/alipay/ams/api/entities/TransactionType.cs new file mode 100644 index 0000000..62558b3 --- /dev/null +++ b/src/com/alipay/ams/api/entities/TransactionType.cs @@ -0,0 +1,14 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum TransactionType + { + PAYMENT, + REFUND, + CAPTURE, + CANCEL, + AUTHORIZATION, + VOID, + } +} diff --git a/src/com/alipay/ams/api/entities/TransferFromDetail.cs b/src/com/alipay/ams/api/entities/TransferFromDetail.cs new file mode 100644 index 0000000..66d1d45 --- /dev/null +++ b/src/com/alipay/ams/api/entities/TransferFromDetail.cs @@ -0,0 +1,23 @@ + +namespace com.alipay.ams.api.entities +{ + +public class TransferFromDetail + { + + public TransferFromDetail() { } + + public TransferFromDetail( PaymentMethod transferFromMethod , Amount transferFromAmount) + { + this.TransferFromMethod = transferFromMethod; + this.TransferFromAmount = transferFromAmount; + } + + public PaymentMethod TransferFromMethod { get; set; } + public Amount TransferFromAmount { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/TransferToDetail.cs b/src/com/alipay/ams/api/entities/TransferToDetail.cs new file mode 100644 index 0000000..c55f5e7 --- /dev/null +++ b/src/com/alipay/ams/api/entities/TransferToDetail.cs @@ -0,0 +1,33 @@ + +namespace com.alipay.ams.api.entities +{ + +public class TransferToDetail + { + + public TransferToDetail() { } + + public TransferToDetail( PaymentMethod transferToMethod , string transferToCurrency , Amount feeAmount , Amount actualTransferToAmount , string purposeCode , string transferNotifyUrl , string transferRemark) + { + this.TransferToMethod = transferToMethod; + this.TransferToCurrency = transferToCurrency; + this.FeeAmount = feeAmount; + this.ActualTransferToAmount = actualTransferToAmount; + this.PurposeCode = purposeCode; + this.TransferNotifyUrl = transferNotifyUrl; + this.TransferRemark = transferRemark; + } + + public PaymentMethod TransferToMethod { get; set; } + public string TransferToCurrency { get; set; } + public Amount FeeAmount { get; set; } + public Amount ActualTransferToAmount { get; set; } + public string PurposeCode { get; set; } + public string TransferNotifyUrl { get; set; } + public string TransferRemark { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Transit.cs b/src/com/alipay/ams/api/entities/Transit.cs new file mode 100644 index 0000000..43b3581 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Transit.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Transit + { + + public Transit() { } + + public Transit( TransitType transitType , List legs , List passengers) + { + this.TransitType = transitType; + this.Legs = legs; + this.Passengers = passengers; + } + + public TransitType TransitType { get; set; } + public List Legs { get; set; } + public List Passengers { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/TransitType.cs b/src/com/alipay/ams/api/entities/TransitType.cs new file mode 100644 index 0000000..8d7f1ea --- /dev/null +++ b/src/com/alipay/ams/api/entities/TransitType.cs @@ -0,0 +1,12 @@ + +namespace com.alipay.ams.api.entities +{ + +public enum TransitType + { + FLIGHT, + TRAIN, + CRUISE, + COACH, + } +} diff --git a/src/com/alipay/ams/api/entities/Trial.cs b/src/com/alipay/ams/api/entities/Trial.cs new file mode 100644 index 0000000..786f865 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Trial.cs @@ -0,0 +1,25 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Trial + { + + public Trial() { } + + public Trial( int? trialStartPeriod , Amount trialAmount , int? trialEndPeriod) + { + this.TrialStartPeriod = trialStartPeriod; + this.TrialAmount = trialAmount; + this.TrialEndPeriod = trialEndPeriod; + } + + public int? TrialStartPeriod { get; set; } + public Amount TrialAmount { get; set; } + public int? TrialEndPeriod { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/UserName.cs b/src/com/alipay/ams/api/entities/UserName.cs new file mode 100644 index 0000000..a181d96 --- /dev/null +++ b/src/com/alipay/ams/api/entities/UserName.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class UserName + { + + public UserName() { } + + public UserName( string firstName , string middleName , string lastName , string fullName) + { + this.FirstName = firstName; + this.MiddleName = middleName; + this.LastName = lastName; + this.FullName = fullName; + } + + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public string FullName { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/Wallet.cs b/src/com/alipay/ams/api/entities/Wallet.cs new file mode 100644 index 0000000..1426b29 --- /dev/null +++ b/src/com/alipay/ams/api/entities/Wallet.cs @@ -0,0 +1,29 @@ + +namespace com.alipay.ams.api.entities +{ + +public class Wallet + { + + public Wallet() { } + + public Wallet( string accountNo , UserName accountHolderName , string phoneNo , string email , Address billingAddress) + { + this.AccountNo = accountNo; + this.AccountHolderName = accountHolderName; + this.PhoneNo = phoneNo; + this.Email = email; + this.BillingAddress = billingAddress; + } + + public string AccountNo { get; set; } + public UserName AccountHolderName { get; set; } + public string PhoneNo { get; set; } + public string Email { get; set; } + public Address BillingAddress { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/entities/WebSite.cs b/src/com/alipay/ams/api/entities/WebSite.cs new file mode 100644 index 0000000..d463b11 --- /dev/null +++ b/src/com/alipay/ams/api/entities/WebSite.cs @@ -0,0 +1,27 @@ + +namespace com.alipay.ams.api.entities +{ + +public class WebSite + { + + public WebSite() { } + + public WebSite( string name , string url , string desc , string type) + { + this.Name = name; + this.Url = url; + this.Desc = desc; + this.Type = type; + } + + public string Name { get; set; } + public string Url { get; set; } + public string Desc { get; set; } + public string Type { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs b/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs new file mode 100644 index 0000000..f2c28da --- /dev/null +++ b/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs @@ -0,0 +1,37 @@ +using com.alipay.ams.api.response.auth; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.auth +{ + +public class AlipayAuthApplyTokenRequest : AMSRequest + { + + public AlipayAuthApplyTokenRequest() { } + + public AlipayAuthApplyTokenRequest( GrantType grantType , CustomerBelongsTo customerBelongsTo , string authCode , string refreshToken , string extendInfo , string merchantRegion) + { + this.GrantType = grantType; + this.CustomerBelongsTo = customerBelongsTo; + this.AuthCode = authCode; + this.RefreshToken = refreshToken; + this.ExtendInfo = extendInfo; + this.MerchantRegion = merchantRegion; + } + + public GrantType GrantType { get; set; } + public CustomerBelongsTo CustomerBelongsTo { get; set; } + public string AuthCode { get; set; } + public string RefreshToken { get; set; } + public string ExtendInfo { get; set; } + public string MerchantRegion { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/authorizations/applyToken"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs b/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs new file mode 100644 index 0000000..20e6a26 --- /dev/null +++ b/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs @@ -0,0 +1,49 @@ +using com.alipay.ams.api.response.auth; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.auth +{ + +public class AlipayAuthConsultRequest : AMSRequest + { + + public AlipayAuthConsultRequest() { } + + public AlipayAuthConsultRequest( CustomerBelongsTo customerBelongsTo , string authClientId , string authRedirectUrl , List scopes , string authState , TerminalType terminalType , OsType osType , string osVersion , string extendInfo , string merchantRegion , bool? recurringPayment , AuthMetaData authMetaData) + { + this.CustomerBelongsTo = customerBelongsTo; + this.AuthClientId = authClientId; + this.AuthRedirectUrl = authRedirectUrl; + this.Scopes = scopes; + this.AuthState = authState; + this.TerminalType = terminalType; + this.OsType = osType; + this.OsVersion = osVersion; + this.ExtendInfo = extendInfo; + this.MerchantRegion = merchantRegion; + this.RecurringPayment = recurringPayment; + this.AuthMetaData = authMetaData; + } + + public CustomerBelongsTo CustomerBelongsTo { get; set; } + public string AuthClientId { get; set; } + public string AuthRedirectUrl { get; set; } + public List Scopes { get; set; } + public string AuthState { get; set; } + public TerminalType TerminalType { get; set; } + public OsType OsType { get; set; } + public string OsVersion { get; set; } + public string ExtendInfo { get; set; } + public string MerchantRegion { get; set; } + public bool? RecurringPayment { get; set; } + public AuthMetaData AuthMetaData { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/authorizations/consult"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs b/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs new file mode 100644 index 0000000..1af5d51 --- /dev/null +++ b/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs @@ -0,0 +1,29 @@ +using com.alipay.ams.api.response.auth; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.auth +{ + +public class AlipayAuthRevokeTokenRequest : AMSRequest + { + + public AlipayAuthRevokeTokenRequest() { } + + public AlipayAuthRevokeTokenRequest( string accessToken , string extendInfo) + { + this.AccessToken = accessToken; + this.ExtendInfo = extendInfo; + } + + public string AccessToken { get; set; } + public string ExtendInfo { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/authorizations/revoke"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs b/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs new file mode 100644 index 0000000..91b6ed3 --- /dev/null +++ b/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs @@ -0,0 +1,27 @@ +using com.alipay.ams.api.response.dispute; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.dispute +{ + +public class AlipayAcceptDisputeRequest : AMSRequest + { + + public AlipayAcceptDisputeRequest() { } + + public AlipayAcceptDisputeRequest( string disputeId) + { + this.DisputeId = disputeId; + } + + public string DisputeId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/acceptDispute"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs b/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs new file mode 100644 index 0000000..0e0b656 --- /dev/null +++ b/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs @@ -0,0 +1,29 @@ +using com.alipay.ams.api.response.dispute; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.dispute +{ + +public class AlipayDownloadDisputeEvidenceRequest : AMSRequest + { + + public AlipayDownloadDisputeEvidenceRequest() { } + + public AlipayDownloadDisputeEvidenceRequest( string disputeId , DisputeEvidenceType disputeEvidenceType) + { + this.DisputeId = disputeId; + this.DisputeEvidenceType = disputeEvidenceType; + } + + public string DisputeId { get; set; } + public DisputeEvidenceType DisputeEvidenceType { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/downloadDisputeEvidence"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs b/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs new file mode 100644 index 0000000..e3f50ba --- /dev/null +++ b/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs @@ -0,0 +1,29 @@ +using com.alipay.ams.api.response.dispute; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.dispute +{ + +public class AlipaySupplyDefenseDocumentRequest : AMSRequest + { + + public AlipaySupplyDefenseDocumentRequest() { } + + public AlipaySupplyDefenseDocumentRequest( string disputeId , string disputeEvidence) + { + this.DisputeId = disputeId; + this.DisputeEvidence = disputeEvidence; + } + + public string DisputeId { get; set; } + public string DisputeEvidence { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/supplyDefenseDocument"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs new file mode 100644 index 0000000..49c6ea1 --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipayCreatePayoutRequest : AMSRequest + { + + public AlipayCreatePayoutRequest() { } + + public AlipayCreatePayoutRequest( string transferRequestId , TransferFromDetail transferFromDetail , TransferToDetail transferToDetail) + { + this.TransferRequestId = transferRequestId; + this.TransferFromDetail = transferFromDetail; + this.TransferToDetail = transferToDetail; + } + + public string TransferRequestId { get; set; } + public TransferFromDetail TransferFromDetail { get; set; } + public TransferToDetail TransferToDetail { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/funds/createPayout"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs new file mode 100644 index 0000000..dffaaf6 --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipayCreateTransferRequest : AMSRequest + { + + public AlipayCreateTransferRequest() { } + + public AlipayCreateTransferRequest( string transferRequestId , TransferFromDetail transferFromDetail , TransferToDetail transferToDetail) + { + this.TransferRequestId = transferRequestId; + this.TransferFromDetail = transferFromDetail; + this.TransferToDetail = transferToDetail; + } + + public string TransferRequestId { get; set; } + public TransferFromDetail TransferFromDetail { get; set; } + public TransferToDetail TransferToDetail { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/funds/createTransfer"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs new file mode 100644 index 0000000..d29fb14 --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs @@ -0,0 +1,27 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipayInquireBalanceRequest : AMSRequest + { + + public AlipayInquireBalanceRequest() { } + + public AlipayInquireBalanceRequest( string referenceMerchantId) + { + this.ReferenceMerchantId = referenceMerchantId; + } + + public string ReferenceMerchantId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/accounts/inquireBalance"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs new file mode 100644 index 0000000..5172a8b --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs @@ -0,0 +1,33 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipayRegisterRequest : AMSRequest + { + + public AlipayRegisterRequest() { } + + public AlipayRegisterRequest( string registrationRequestId , List settlementInfos , MerchantInfo merchantInfo , List paymentMethods) + { + this.RegistrationRequestId = registrationRequestId; + this.SettlementInfos = settlementInfos; + this.MerchantInfo = merchantInfo; + this.PaymentMethods = paymentMethods; + } + + public string RegistrationRequestId { get; set; } + public List SettlementInfos { get; set; } + public MerchantInfo MerchantInfo { get; set; } + public List PaymentMethods { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/merchants/register"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs new file mode 100644 index 0000000..4ad1f19 --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipaySettleRequest : AMSRequest + { + + public AlipaySettleRequest() { } + + public AlipaySettleRequest( string settlementRequestId , string paymentId , List settlementDetails) + { + this.SettlementRequestId = settlementRequestId; + this.PaymentId = paymentId; + this.SettlementDetails = settlementDetails; + } + + public string SettlementRequestId { get; set; } + public string PaymentId { get; set; } + public List SettlementDetails { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/settle"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs new file mode 100644 index 0000000..cdd248e --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs @@ -0,0 +1,33 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipaySettlementInfoUpdateRequest : AMSRequest + { + + public AlipaySettlementInfoUpdateRequest() { } + + public AlipaySettlementInfoUpdateRequest( string updateRequestId , string referenceMerchantId , string settlementCurrency , SettlementBankAccount settlementBankAccount) + { + this.UpdateRequestId = updateRequestId; + this.ReferenceMerchantId = referenceMerchantId; + this.SettlementCurrency = settlementCurrency; + this.SettlementBankAccount = settlementBankAccount; + } + + public string UpdateRequestId { get; set; } + public string ReferenceMerchantId { get; set; } + public string SettlementCurrency { get; set; } + public SettlementBankAccount SettlementBankAccount { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/merchants/settlementInfo/update"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs b/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs new file mode 100644 index 0000000..ebb7fe4 --- /dev/null +++ b/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.marketplace +{ + +public class AlipaySubmitAttachmentRequest : AMSRequest + { + + public AlipaySubmitAttachmentRequest() { } + + public AlipaySubmitAttachmentRequest( string submitAttachmentRequestId , AttachmentType attachmentType , string fileSha256) + { + this.SubmitAttachmentRequestId = submitAttachmentRequestId; + this.AttachmentType = attachmentType; + this.FileSha256 = fileSha256; + } + + public string SubmitAttachmentRequestId { get; set; } + public AttachmentType AttachmentType { get; set; } + public string FileSha256 { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/open/openapiv2_file/v1/business/attachment/submitAttachment"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs new file mode 100644 index 0000000..a387912 --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs @@ -0,0 +1,33 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayCaptureRequest : AMSRequest + { + + public AlipayCaptureRequest() { } + + public AlipayCaptureRequest( string captureRequestId , string paymentId , Amount captureAmount , bool? isLastCapture) + { + this.CaptureRequestId = captureRequestId; + this.PaymentId = paymentId; + this.CaptureAmount = captureAmount; + this.IsLastCapture = isLastCapture; + } + + public string CaptureRequestId { get; set; } + public string PaymentId { get; set; } + public Amount CaptureAmount { get; set; } + public bool? IsLastCapture { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/capture"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs new file mode 100644 index 0000000..77b8cf3 --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayInquiryRefundRequest : AMSRequest + { + + public AlipayInquiryRefundRequest() { } + + public AlipayInquiryRefundRequest( string refundRequestId , string refundId , string merchantAccountId) + { + this.RefundRequestId = refundRequestId; + this.RefundId = refundId; + this.MerchantAccountId = merchantAccountId; + } + + public string RefundRequestId { get; set; } + public string RefundId { get; set; } + public string MerchantAccountId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/inquiryRefund"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs new file mode 100644 index 0000000..a73d87d --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayPayCancelRequest : AMSRequest + { + + public AlipayPayCancelRequest() { } + + public AlipayPayCancelRequest( string paymentId , string paymentRequestId , string merchantAccountId) + { + this.PaymentId = paymentId; + this.PaymentRequestId = paymentRequestId; + this.MerchantAccountId = merchantAccountId; + } + + public string PaymentId { get; set; } + public string PaymentRequestId { get; set; } + public string MerchantAccountId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/cancel"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs new file mode 100644 index 0000000..c79f861 --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs @@ -0,0 +1,61 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayPayConsultRequest : AMSRequest + { + + public AlipayPayConsultRequest() { } + + public AlipayPayConsultRequest( ProductCodeType productCode , Amount paymentAmount , string merchantRegion , List allowedPaymentMethodRegions , List allowedPaymentMethods , List blockedPaymentMethods , string region , string customerId , string referenceUserId , Env env , string extendInfo , string userRegion , PaymentFactor paymentFactor , SettlementStrategy settlementStrategy , Merchant merchant , List allowedPspRegions , Buyer buyer , string merchantAccountId) + { + this.ProductCode = productCode; + this.PaymentAmount = paymentAmount; + this.MerchantRegion = merchantRegion; + this.AllowedPaymentMethodRegions = allowedPaymentMethodRegions; + this.AllowedPaymentMethods = allowedPaymentMethods; + this.BlockedPaymentMethods = blockedPaymentMethods; + this.Region = region; + this.CustomerId = customerId; + this.ReferenceUserId = referenceUserId; + this.Env = env; + this.ExtendInfo = extendInfo; + this.UserRegion = userRegion; + this.PaymentFactor = paymentFactor; + this.SettlementStrategy = settlementStrategy; + this.Merchant = merchant; + this.AllowedPspRegions = allowedPspRegions; + this.Buyer = buyer; + this.MerchantAccountId = merchantAccountId; + } + + public ProductCodeType ProductCode { get; set; } + public Amount PaymentAmount { get; set; } + public string MerchantRegion { get; set; } + public List AllowedPaymentMethodRegions { get; set; } + public List AllowedPaymentMethods { get; set; } + public List BlockedPaymentMethods { get; set; } + public string Region { get; set; } + public string CustomerId { get; set; } + public string ReferenceUserId { get; set; } + public Env Env { get; set; } + public string ExtendInfo { get; set; } + public string UserRegion { get; set; } + public PaymentFactor PaymentFactor { get; set; } + public SettlementStrategy SettlementStrategy { get; set; } + public Merchant Merchant { get; set; } + public List AllowedPspRegions { get; set; } + public Buyer Buyer { get; set; } + public string MerchantAccountId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/consult"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs new file mode 100644 index 0000000..d31dec6 --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayPayQueryRequest : AMSRequest + { + + public AlipayPayQueryRequest() { } + + public AlipayPayQueryRequest( string paymentRequestId , string paymentId , string merchantAccountId) + { + this.PaymentRequestId = paymentRequestId; + this.PaymentId = paymentId; + this.MerchantAccountId = merchantAccountId; + } + + public string PaymentRequestId { get; set; } + public string PaymentId { get; set; } + public string MerchantAccountId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/inquiryPayment"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs new file mode 100644 index 0000000..94c8c5f --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs @@ -0,0 +1,69 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayPayRequest : AMSRequest + { + + public AlipayPayRequest() { } + + public AlipayPayRequest( ProductCodeType productCode , string paymentRequestId , Order order , Amount paymentAmount , PaymentMethod paymentMethod , string paymentExpiryTime , string paymentRedirectUrl , string paymentNotifyUrl , PaymentFactor paymentFactor , SettlementStrategy settlementStrategy , CreditPayPlan creditPayPlan , string appId , string merchantRegion , string userRegion , Env env , PaymentMethod payToMethod , bool? isAuthorization , Merchant merchant , PaymentVerificationData paymentVerificationData , string extendInfo , string merchantAccountId , bool? dualOfflinePayment) + { + this.ProductCode = productCode; + this.PaymentRequestId = paymentRequestId; + this.Order = order; + this.PaymentAmount = paymentAmount; + this.PaymentMethod = paymentMethod; + this.PaymentExpiryTime = paymentExpiryTime; + this.PaymentRedirectUrl = paymentRedirectUrl; + this.PaymentNotifyUrl = paymentNotifyUrl; + this.PaymentFactor = paymentFactor; + this.SettlementStrategy = settlementStrategy; + this.CreditPayPlan = creditPayPlan; + this.AppId = appId; + this.MerchantRegion = merchantRegion; + this.UserRegion = userRegion; + this.Env = env; + this.PayToMethod = payToMethod; + this.IsAuthorization = isAuthorization; + this.Merchant = merchant; + this.PaymentVerificationData = paymentVerificationData; + this.ExtendInfo = extendInfo; + this.MerchantAccountId = merchantAccountId; + this.DualOfflinePayment = dualOfflinePayment; + } + + public ProductCodeType ProductCode { get; set; } + public string PaymentRequestId { get; set; } + public Order Order { get; set; } + public Amount PaymentAmount { get; set; } + public PaymentMethod PaymentMethod { get; set; } + public string PaymentExpiryTime { get; set; } + public string PaymentRedirectUrl { get; set; } + public string PaymentNotifyUrl { get; set; } + public PaymentFactor PaymentFactor { get; set; } + public SettlementStrategy SettlementStrategy { get; set; } + public CreditPayPlan CreditPayPlan { get; set; } + public string AppId { get; set; } + public string MerchantRegion { get; set; } + public string UserRegion { get; set; } + public Env Env { get; set; } + public PaymentMethod PayToMethod { get; set; } + public bool? IsAuthorization { get; set; } + public Merchant Merchant { get; set; } + public PaymentVerificationData PaymentVerificationData { get; set; } + public string ExtendInfo { get; set; } + public string MerchantAccountId { get; set; } + public bool? DualOfflinePayment { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/pay"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs new file mode 100644 index 0000000..5f6ee36 --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs @@ -0,0 +1,67 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayPaymentSessionRequest : AMSRequest + { + + public AlipayPaymentSessionRequest() { } + + public AlipayPaymentSessionRequest( ProductCodeType productCode , string paymentRequestId , Order order , Amount paymentAmount , PaymentMethod paymentMethod , string paymentSessionExpiryTime , string paymentRedirectUrl , string paymentNotifyUrl , PaymentFactor paymentFactor , SettlementStrategy settlementStrategy , bool? enableInstallmentCollection , CreditPayPlan creditPayPlan , string merchantRegion , Env env , AgreementInfo agreementInfo , RiskData riskData , string productScene , List savedPaymentMethods , string locale , AvailablePaymentMethod availablePaymentMethod , string testFile) + { + this.ProductCode = productCode; + this.PaymentRequestId = paymentRequestId; + this.Order = order; + this.PaymentAmount = paymentAmount; + this.PaymentMethod = paymentMethod; + this.PaymentSessionExpiryTime = paymentSessionExpiryTime; + this.PaymentRedirectUrl = paymentRedirectUrl; + this.PaymentNotifyUrl = paymentNotifyUrl; + this.PaymentFactor = paymentFactor; + this.SettlementStrategy = settlementStrategy; + this.EnableInstallmentCollection = enableInstallmentCollection; + this.CreditPayPlan = creditPayPlan; + this.MerchantRegion = merchantRegion; + this.Env = env; + this.AgreementInfo = agreementInfo; + this.RiskData = riskData; + this.ProductScene = productScene; + this.SavedPaymentMethods = savedPaymentMethods; + this.Locale = locale; + this.AvailablePaymentMethod = availablePaymentMethod; + this.TestFile = testFile; + } + + public ProductCodeType ProductCode { get; set; } + public string PaymentRequestId { get; set; } + public Order Order { get; set; } + public Amount PaymentAmount { get; set; } + public PaymentMethod PaymentMethod { get; set; } + public string PaymentSessionExpiryTime { get; set; } + public string PaymentRedirectUrl { get; set; } + public string PaymentNotifyUrl { get; set; } + public PaymentFactor PaymentFactor { get; set; } + public SettlementStrategy SettlementStrategy { get; set; } + public bool? EnableInstallmentCollection { get; set; } + public CreditPayPlan CreditPayPlan { get; set; } + public string MerchantRegion { get; set; } + public Env Env { get; set; } + public AgreementInfo AgreementInfo { get; set; } + public RiskData RiskData { get; set; } + public string ProductScene { get; set; } + public List SavedPaymentMethods { get; set; } + public string Locale { get; set; } + public AvailablePaymentMethod AvailablePaymentMethod { get; set; } + public string TestFile { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/createPaymentSession"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs new file mode 100644 index 0000000..dbf9a6a --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs @@ -0,0 +1,45 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayRefundRequest : AMSRequest + { + + public AlipayRefundRequest() { } + + public AlipayRefundRequest( string refundRequestId , string paymentId , string referenceRefundId , Amount refundAmount , string refundReason , string refundNotifyUrl , bool? isAsyncRefund , string extendInfo , List refundDetails , string refundSourceAccountNo) + { + this.RefundRequestId = refundRequestId; + this.PaymentId = paymentId; + this.ReferenceRefundId = referenceRefundId; + this.RefundAmount = refundAmount; + this.RefundReason = refundReason; + this.RefundNotifyUrl = refundNotifyUrl; + this.IsAsyncRefund = isAsyncRefund; + this.ExtendInfo = extendInfo; + this.RefundDetails = refundDetails; + this.RefundSourceAccountNo = refundSourceAccountNo; + } + + public string RefundRequestId { get; set; } + public string PaymentId { get; set; } + public string ReferenceRefundId { get; set; } + public Amount RefundAmount { get; set; } + public string RefundReason { get; set; } + public string RefundNotifyUrl { get; set; } + public bool? IsAsyncRefund { get; set; } + public string ExtendInfo { get; set; } + public List RefundDetails { get; set; } + public string RefundSourceAccountNo { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/payments/refund"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs new file mode 100644 index 0000000..464c0d5 --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs @@ -0,0 +1,43 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayVaultingPaymentMethodRequest : AMSRequest + { + + public AlipayVaultingPaymentMethodRequest() { } + + public AlipayVaultingPaymentMethodRequest( string vaultingRequestId , string vaultingNotificationUrl , string redirectUrl , string merchantRegion , PaymentMethodDetail paymentMethodDetail , Env env , string merchantAccountId , string vaultingCurrency , CustomizedInfo customizedInfo) + { + this.VaultingRequestId = vaultingRequestId; + this.VaultingNotificationUrl = vaultingNotificationUrl; + this.RedirectUrl = redirectUrl; + this.MerchantRegion = merchantRegion; + this.PaymentMethodDetail = paymentMethodDetail; + this.Env = env; + this.MerchantAccountId = merchantAccountId; + this.VaultingCurrency = vaultingCurrency; + this.CustomizedInfo = customizedInfo; + } + + public string VaultingRequestId { get; set; } + public string VaultingNotificationUrl { get; set; } + public string RedirectUrl { get; set; } + public string MerchantRegion { get; set; } + public PaymentMethodDetail PaymentMethodDetail { get; set; } + public Env Env { get; set; } + public string MerchantAccountId { get; set; } + public string VaultingCurrency { get; set; } + public CustomizedInfo CustomizedInfo { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/vaults/vaultPaymentMethod"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs new file mode 100644 index 0000000..327a9cb --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs @@ -0,0 +1,27 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayVaultingQueryRequest : AMSRequest + { + + public AlipayVaultingQueryRequest() { } + + public AlipayVaultingQueryRequest( string vaultingRequestId) + { + this.VaultingRequestId = vaultingRequestId; + } + + public string VaultingRequestId { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/vaults/inquireVaulting"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs b/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs new file mode 100644 index 0000000..9b1747d --- /dev/null +++ b/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs @@ -0,0 +1,37 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.pay +{ + +public class AlipayVaultingSessionRequest : AMSRequest + { + + public AlipayVaultingSessionRequest() { } + + public AlipayVaultingSessionRequest( string paymentMethodType , string vaultingRequestId , string vaultingNotificationUrl , string redirectUrl , string merchantRegion , bool? is3DSAuthentication) + { + this.PaymentMethodType = paymentMethodType; + this.VaultingRequestId = vaultingRequestId; + this.VaultingNotificationUrl = vaultingNotificationUrl; + this.RedirectUrl = redirectUrl; + this.MerchantRegion = merchantRegion; + this.Is3DSAuthentication = is3DSAuthentication; + } + + public string PaymentMethodType { get; set; } + public string VaultingRequestId { get; set; } + public string VaultingNotificationUrl { get; set; } + public string RedirectUrl { get; set; } + public string MerchantRegion { get; set; } + public bool? Is3DSAuthentication { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/vaults/createVaultingSession"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs new file mode 100644 index 0000000..5a521e1 --- /dev/null +++ b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs @@ -0,0 +1,31 @@ +using com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.subscription +{ + +public class AlipaySubscriptionCancelRequest : AMSRequest + { + + public AlipaySubscriptionCancelRequest() { } + + public AlipaySubscriptionCancelRequest( string subscriptionId , string subscriptionRequestId , string cancellationType) + { + this.SubscriptionId = subscriptionId; + this.SubscriptionRequestId = subscriptionRequestId; + this.CancellationType = cancellationType; + } + + public string SubscriptionId { get; set; } + public string SubscriptionRequestId { get; set; } + public string CancellationType { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/subscriptions/cancel"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs new file mode 100644 index 0000000..e5a87b1 --- /dev/null +++ b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs @@ -0,0 +1,45 @@ +using com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.subscription +{ + +public class AlipaySubscriptionChangeRequest : AMSRequest + { + + public AlipaySubscriptionChangeRequest() { } + + public AlipaySubscriptionChangeRequest( string subscriptionChangeRequestId , string subscriptionId , string subscriptionDescription , string subscriptionStartTime , string subscriptionEndTime , PeriodRule periodRule , string subscriptionExpiryTime , OrderInfo orderInfo , Amount paymentAmount , Amount paymentAmountDifference) + { + this.SubscriptionChangeRequestId = subscriptionChangeRequestId; + this.SubscriptionId = subscriptionId; + this.SubscriptionDescription = subscriptionDescription; + this.SubscriptionStartTime = subscriptionStartTime; + this.SubscriptionEndTime = subscriptionEndTime; + this.PeriodRule = periodRule; + this.SubscriptionExpiryTime = subscriptionExpiryTime; + this.OrderInfo = orderInfo; + this.PaymentAmount = paymentAmount; + this.PaymentAmountDifference = paymentAmountDifference; + } + + public string SubscriptionChangeRequestId { get; set; } + public string SubscriptionId { get; set; } + public string SubscriptionDescription { get; set; } + public string SubscriptionStartTime { get; set; } + public string SubscriptionEndTime { get; set; } + public PeriodRule PeriodRule { get; set; } + public string SubscriptionExpiryTime { get; set; } + public OrderInfo OrderInfo { get; set; } + public Amount PaymentAmount { get; set; } + public Amount PaymentAmountDifference { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/subscriptions/change"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs new file mode 100644 index 0000000..3d309d7 --- /dev/null +++ b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs @@ -0,0 +1,55 @@ +using com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.subscription +{ + +public class AlipaySubscriptionCreateRequest : AMSRequest + { + + public AlipaySubscriptionCreateRequest() { } + + public AlipaySubscriptionCreateRequest( string subscriptionRequestId , string subscriptionDescription , string subscriptionRedirectUrl , string subscriptionStartTime , string subscriptionEndTime , PeriodRule periodRule , string subscriptionExpiryTime , PaymentMethod paymentMethod , string subscriptionNotificationUrl , string paymentNotificationUrl , OrderInfo orderInfo , Amount paymentAmount , SettlementStrategy settlementStrategy , Env env , List trials) + { + this.SubscriptionRequestId = subscriptionRequestId; + this.SubscriptionDescription = subscriptionDescription; + this.SubscriptionRedirectUrl = subscriptionRedirectUrl; + this.SubscriptionStartTime = subscriptionStartTime; + this.SubscriptionEndTime = subscriptionEndTime; + this.PeriodRule = periodRule; + this.SubscriptionExpiryTime = subscriptionExpiryTime; + this.PaymentMethod = paymentMethod; + this.SubscriptionNotificationUrl = subscriptionNotificationUrl; + this.PaymentNotificationUrl = paymentNotificationUrl; + this.OrderInfo = orderInfo; + this.PaymentAmount = paymentAmount; + this.SettlementStrategy = settlementStrategy; + this.Env = env; + this.Trials = trials; + } + + public string SubscriptionRequestId { get; set; } + public string SubscriptionDescription { get; set; } + public string SubscriptionRedirectUrl { get; set; } + public string SubscriptionStartTime { get; set; } + public string SubscriptionEndTime { get; set; } + public PeriodRule PeriodRule { get; set; } + public string SubscriptionExpiryTime { get; set; } + public PaymentMethod PaymentMethod { get; set; } + public string SubscriptionNotificationUrl { get; set; } + public string PaymentNotificationUrl { get; set; } + public OrderInfo OrderInfo { get; set; } + public Amount PaymentAmount { get; set; } + public SettlementStrategy SettlementStrategy { get; set; } + public Env Env { get; set; } + public List Trials { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/subscriptions/create"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs new file mode 100644 index 0000000..3f6514a --- /dev/null +++ b/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs @@ -0,0 +1,39 @@ +using com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.request.subscription +{ + +public class AlipaySubscriptionUpdateRequest : AMSRequest + { + + public AlipaySubscriptionUpdateRequest() { } + + public AlipaySubscriptionUpdateRequest( string subscriptionUpdateRequestId , string subscriptionId , string subscriptionDescription , PeriodRule periodRule , Amount paymentAmount , string subscriptionEndTime , OrderInfo orderInfo) + { + this.SubscriptionUpdateRequestId = subscriptionUpdateRequestId; + this.SubscriptionId = subscriptionId; + this.SubscriptionDescription = subscriptionDescription; + this.PeriodRule = periodRule; + this.PaymentAmount = paymentAmount; + this.SubscriptionEndTime = subscriptionEndTime; + this.OrderInfo = orderInfo; + } + + public string SubscriptionUpdateRequestId { get; set; } + public string SubscriptionId { get; set; } + public string SubscriptionDescription { get; set; } + public PeriodRule PeriodRule { get; set; } + public Amount PaymentAmount { get; set; } + public string SubscriptionEndTime { get; set; } + public OrderInfo OrderInfo { get; set; } + + public override string GetRequestURI(){ + return "/ams/api/v1/subscriptions/update"; +} + + + } + +} diff --git a/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs b/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs new file mode 100644 index 0000000..6de30ec --- /dev/null +++ b/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs @@ -0,0 +1,36 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.auth +{ + +public class AlipayAuthApplyTokenResponse : AMSResponse + { + + public AlipayAuthApplyTokenResponse() { } + + public AlipayAuthApplyTokenResponse( Result result , string accessToken , string accessTokenExpiryTime , string refreshToken , string refreshTokenExpiryTime , string extendInfo , string userLoginId , PspCustomerInfo pspCustomerInfo) + { + this.Result = result; + this.AccessToken = accessToken; + this.AccessTokenExpiryTime = accessTokenExpiryTime; + this.RefreshToken = refreshToken; + this.RefreshTokenExpiryTime = refreshTokenExpiryTime; + this.ExtendInfo = extendInfo; + this.UserLoginId = userLoginId; + this.PspCustomerInfo = pspCustomerInfo; + } + + public Result Result { get; set; } + public string AccessToken { get; set; } + public string AccessTokenExpiryTime { get; set; } + public string RefreshToken { get; set; } + public string RefreshTokenExpiryTime { get; set; } + public string ExtendInfo { get; set; } + public string UserLoginId { get; set; } + public PspCustomerInfo PspCustomerInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs b/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs new file mode 100644 index 0000000..5f3dc5b --- /dev/null +++ b/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs @@ -0,0 +1,36 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.auth +{ + +public class AlipayAuthConsultResponse : AMSResponse + { + + public AlipayAuthConsultResponse() { } + + public AlipayAuthConsultResponse( Result result , string authUrl , string extendInfo , string normalUrl , string schemeUrl , string applinkUrl , string appIdentifier , AuthCodeForm authCodeForm) + { + this.Result = result; + this.AuthUrl = authUrl; + this.ExtendInfo = extendInfo; + this.NormalUrl = normalUrl; + this.SchemeUrl = schemeUrl; + this.ApplinkUrl = applinkUrl; + this.AppIdentifier = appIdentifier; + this.AuthCodeForm = authCodeForm; + } + + public Result Result { get; set; } + public string AuthUrl { get; set; } + public string ExtendInfo { get; set; } + public string NormalUrl { get; set; } + public string SchemeUrl { get; set; } + public string ApplinkUrl { get; set; } + public string AppIdentifier { get; set; } + public AuthCodeForm AuthCodeForm { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs b/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs new file mode 100644 index 0000000..f7accb1 --- /dev/null +++ b/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs @@ -0,0 +1,24 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.auth +{ + +public class AlipayAuthRevokeTokenResponse : AMSResponse + { + + public AlipayAuthRevokeTokenResponse() { } + + public AlipayAuthRevokeTokenResponse( Result result , string extendInfo) + { + this.Result = result; + this.ExtendInfo = extendInfo; + } + + public Result Result { get; set; } + public string ExtendInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs b/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs new file mode 100644 index 0000000..4af26f7 --- /dev/null +++ b/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs @@ -0,0 +1,26 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.dispute +{ + +public class AlipayAcceptDisputeResponse : AMSResponse + { + + public AlipayAcceptDisputeResponse() { } + + public AlipayAcceptDisputeResponse( Result result , string disputeId , string disputeResolutionTime) + { + this.Result = result; + this.DisputeId = disputeId; + this.DisputeResolutionTime = disputeResolutionTime; + } + + public Result Result { get; set; } + public string DisputeId { get; set; } + public string DisputeResolutionTime { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs b/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs new file mode 100644 index 0000000..3472506 --- /dev/null +++ b/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs @@ -0,0 +1,26 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.dispute +{ + +public class AlipayDownloadDisputeEvidenceResponse : AMSResponse + { + + public AlipayDownloadDisputeEvidenceResponse() { } + + public AlipayDownloadDisputeEvidenceResponse( Result result , string disputeEvidence , DisputeEvidenceFormatType disputeEvidenceFormat) + { + this.Result = result; + this.DisputeEvidence = disputeEvidence; + this.DisputeEvidenceFormat = disputeEvidenceFormat; + } + + public Result Result { get; set; } + public string DisputeEvidence { get; set; } + public DisputeEvidenceFormatType DisputeEvidenceFormat { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs b/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs new file mode 100644 index 0000000..4fb50a6 --- /dev/null +++ b/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs @@ -0,0 +1,26 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.dispute +{ + +public class AlipaySupplyDefenseDocumentResponse : AMSResponse + { + + public AlipaySupplyDefenseDocumentResponse() { } + + public AlipaySupplyDefenseDocumentResponse( Result result , string disputeId , string disputeResolutionTime) + { + this.Result = result; + this.DisputeId = disputeId; + this.DisputeResolutionTime = disputeResolutionTime; + } + + public Result Result { get; set; } + public string DisputeId { get; set; } + public string DisputeResolutionTime { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs new file mode 100644 index 0000000..10695ef --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs @@ -0,0 +1,30 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipayCreatePayoutResponse : AMSResponse + { + + public AlipayCreatePayoutResponse() { } + + public AlipayCreatePayoutResponse( Result result , string transferId , string transferRequestId , TransferFromDetail transferFromDetail , TransferToDetail transferToDetail) + { + this.Result = result; + this.TransferId = transferId; + this.TransferRequestId = transferRequestId; + this.TransferFromDetail = transferFromDetail; + this.TransferToDetail = transferToDetail; + } + + public Result Result { get; set; } + public string TransferId { get; set; } + public string TransferRequestId { get; set; } + public TransferFromDetail TransferFromDetail { get; set; } + public TransferToDetail TransferToDetail { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs new file mode 100644 index 0000000..f004606 --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs @@ -0,0 +1,30 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipayCreateTransferResponse : AMSResponse + { + + public AlipayCreateTransferResponse() { } + + public AlipayCreateTransferResponse( Result result , string transferId , string transferRequestId , TransferFromDetail transferFromDetail , TransferToDetail transferToDetail) + { + this.Result = result; + this.TransferId = transferId; + this.TransferRequestId = transferRequestId; + this.TransferFromDetail = transferFromDetail; + this.TransferToDetail = transferToDetail; + } + + public Result Result { get; set; } + public string TransferId { get; set; } + public string TransferRequestId { get; set; } + public TransferFromDetail TransferFromDetail { get; set; } + public TransferToDetail TransferToDetail { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs new file mode 100644 index 0000000..b124c18 --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs @@ -0,0 +1,24 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipayInquireBalanceResponse : AMSResponse + { + + public AlipayInquireBalanceResponse() { } + + public AlipayInquireBalanceResponse( Result result , List accountBalances) + { + this.Result = result; + this.AccountBalances = accountBalances; + } + + public Result Result { get; set; } + public List AccountBalances { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs new file mode 100644 index 0000000..3683cc0 --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs @@ -0,0 +1,24 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipayRegisterResponse : AMSResponse + { + + public AlipayRegisterResponse() { } + + public AlipayRegisterResponse( Result result , string registrationStatus) + { + this.Result = result; + this.RegistrationStatus = registrationStatus; + } + + public Result Result { get; set; } + public string RegistrationStatus { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs new file mode 100644 index 0000000..d4e5436 --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs @@ -0,0 +1,26 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipaySettleResponse : AMSResponse + { + + public AlipaySettleResponse() { } + + public AlipaySettleResponse( Result result , string settlementRequestId , string settlementId) + { + this.Result = result; + this.SettlementRequestId = settlementRequestId; + this.SettlementId = settlementId; + } + + public Result Result { get; set; } + public string SettlementRequestId { get; set; } + public string SettlementId { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs new file mode 100644 index 0000000..a3e47a5 --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs @@ -0,0 +1,24 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipaySettlementInfoUpdateResponse : AMSResponse + { + + public AlipaySettlementInfoUpdateResponse() { } + + public AlipaySettlementInfoUpdateResponse( Result result , string updateStatus) + { + this.Result = result; + this.UpdateStatus = updateStatus; + } + + public Result Result { get; set; } + public string UpdateStatus { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs b/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs new file mode 100644 index 0000000..52eaaa5 --- /dev/null +++ b/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs @@ -0,0 +1,28 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.marketplace +{ + +public class AlipaySubmitAttachmentResponse : AMSResponse + { + + public AlipaySubmitAttachmentResponse() { } + + public AlipaySubmitAttachmentResponse( Result result , string submitAttachmentRequestId , AttachmentType attachmentType , string attachmentKey) + { + this.Result = result; + this.SubmitAttachmentRequestId = submitAttachmentRequestId; + this.AttachmentType = attachmentType; + this.AttachmentKey = attachmentKey; + } + + public Result Result { get; set; } + public string SubmitAttachmentRequestId { get; set; } + public AttachmentType AttachmentType { get; set; } + public string AttachmentKey { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs new file mode 100644 index 0000000..dcd1e73 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs @@ -0,0 +1,34 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayCaptureResponse : AMSResponse + { + + public AlipayCaptureResponse() { } + + public AlipayCaptureResponse( Result result , string captureRequestId , string captureId , string paymentId , Amount captureAmount , string captureTime , string acquirerReferenceNo) + { + this.Result = result; + this.CaptureRequestId = captureRequestId; + this.CaptureId = captureId; + this.PaymentId = paymentId; + this.CaptureAmount = captureAmount; + this.CaptureTime = captureTime; + this.AcquirerReferenceNo = acquirerReferenceNo; + } + + public Result Result { get; set; } + public string CaptureRequestId { get; set; } + public string CaptureId { get; set; } + public string PaymentId { get; set; } + public Amount CaptureAmount { get; set; } + public string CaptureTime { get; set; } + public string AcquirerReferenceNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs new file mode 100644 index 0000000..fc99b9e --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs @@ -0,0 +1,38 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayInquiryRefundResponse : AMSResponse + { + + public AlipayInquiryRefundResponse() { } + + public AlipayInquiryRefundResponse( Result result , string refundId , string refundRequestId , Amount refundAmount , TransactionStatusType refundStatus , string refundTime , Amount grossSettlementAmount , Quote settlementQuote , AcquirerInfo acquirerInfo) + { + this.Result = result; + this.RefundId = refundId; + this.RefundRequestId = refundRequestId; + this.RefundAmount = refundAmount; + this.RefundStatus = refundStatus; + this.RefundTime = refundTime; + this.GrossSettlementAmount = grossSettlementAmount; + this.SettlementQuote = settlementQuote; + this.AcquirerInfo = acquirerInfo; + } + + public Result Result { get; set; } + public string RefundId { get; set; } + public string RefundRequestId { get; set; } + public Amount RefundAmount { get; set; } + public TransactionStatusType RefundStatus { get; set; } + public string RefundTime { get; set; } + public Amount GrossSettlementAmount { get; set; } + public Quote SettlementQuote { get; set; } + public AcquirerInfo AcquirerInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs new file mode 100644 index 0000000..076e7fc --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs @@ -0,0 +1,28 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayPayCancelResponse : AMSResponse + { + + public AlipayPayCancelResponse() { } + + public AlipayPayCancelResponse( Result result , string paymentId , string paymentRequestId , string cancelTime) + { + this.Result = result; + this.PaymentId = paymentId; + this.PaymentRequestId = paymentRequestId; + this.CancelTime = cancelTime; + } + + public Result Result { get; set; } + public string PaymentId { get; set; } + public string PaymentRequestId { get; set; } + public string CancelTime { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs new file mode 100644 index 0000000..3971720 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs @@ -0,0 +1,28 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayPayConsultResponse : AMSResponse + { + + public AlipayPayConsultResponse() { } + + public AlipayPayConsultResponse( Result result , List paymentOptions , List paymentMethodInfos , string extendInfo) + { + this.Result = result; + this.PaymentOptions = paymentOptions; + this.PaymentMethodInfos = paymentMethodInfos; + this.ExtendInfo = extendInfo; + } + + public Result Result { get; set; } + public List PaymentOptions { get; set; } + public List PaymentMethodInfos { get; set; } + public string ExtendInfo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs new file mode 100644 index 0000000..7953320 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs @@ -0,0 +1,78 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayPayQueryResponse : AMSResponse + { + + public AlipayPayQueryResponse() { } + + public AlipayPayQueryResponse( Result result , TransactionStatusType paymentStatus , string paymentResultCode , string paymentResultMessage , string paymentRequestId , string paymentId , string authPaymentId , Amount paymentAmount , Amount actualPaymentAmount , Quote paymentQuote , string authExpiryTime , string paymentCreateTime , string paymentTime , Amount nonGuaranteeCouponAmount , PspCustomerInfo pspCustomerInfo , RedirectActionForm redirectActionForm , CardInfo cardInfo , string acquirerReferenceNo , string extendInfo , List transactions , Amount customsDeclarationAmount , Amount grossSettlementAmount , Quote settlementQuote , PaymentResultInfo paymentResultInfo , AcquirerInfo acquirerInfo , string merchantAccountId , List promotionResults , string earliestSettlementTime , string paymentMethodType) + { + this.Result = result; + this.PaymentStatus = paymentStatus; + this.PaymentResultCode = paymentResultCode; + this.PaymentResultMessage = paymentResultMessage; + this.PaymentRequestId = paymentRequestId; + this.PaymentId = paymentId; + this.AuthPaymentId = authPaymentId; + this.PaymentAmount = paymentAmount; + this.ActualPaymentAmount = actualPaymentAmount; + this.PaymentQuote = paymentQuote; + this.AuthExpiryTime = authExpiryTime; + this.PaymentCreateTime = paymentCreateTime; + this.PaymentTime = paymentTime; + this.NonGuaranteeCouponAmount = nonGuaranteeCouponAmount; + this.PspCustomerInfo = pspCustomerInfo; + this.RedirectActionForm = redirectActionForm; + this.CardInfo = cardInfo; + this.AcquirerReferenceNo = acquirerReferenceNo; + this.ExtendInfo = extendInfo; + this.Transactions = transactions; + this.CustomsDeclarationAmount = customsDeclarationAmount; + this.GrossSettlementAmount = grossSettlementAmount; + this.SettlementQuote = settlementQuote; + this.PaymentResultInfo = paymentResultInfo; + this.AcquirerInfo = acquirerInfo; + this.MerchantAccountId = merchantAccountId; + this.PromotionResults = promotionResults; + this.EarliestSettlementTime = earliestSettlementTime; + this.PaymentMethodType = paymentMethodType; + } + + public Result Result { get; set; } + public TransactionStatusType PaymentStatus { get; set; } + public string PaymentResultCode { get; set; } + public string PaymentResultMessage { get; set; } + public string PaymentRequestId { get; set; } + public string PaymentId { get; set; } + public string AuthPaymentId { get; set; } + public Amount PaymentAmount { get; set; } + public Amount ActualPaymentAmount { get; set; } + public Quote PaymentQuote { get; set; } + public string AuthExpiryTime { get; set; } + public string PaymentCreateTime { get; set; } + public string PaymentTime { get; set; } + public Amount NonGuaranteeCouponAmount { get; set; } + public PspCustomerInfo PspCustomerInfo { get; set; } + public RedirectActionForm RedirectActionForm { get; set; } + public CardInfo CardInfo { get; set; } + public string AcquirerReferenceNo { get; set; } + public string ExtendInfo { get; set; } + public List Transactions { get; set; } + public Amount CustomsDeclarationAmount { get; set; } + public Amount GrossSettlementAmount { get; set; } + public Quote SettlementQuote { get; set; } + public PaymentResultInfo PaymentResultInfo { get; set; } + public AcquirerInfo AcquirerInfo { get; set; } + public string MerchantAccountId { get; set; } + public List PromotionResults { get; set; } + public string EarliestSettlementTime { get; set; } + public string PaymentMethodType { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs new file mode 100644 index 0000000..8ce4ef6 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs @@ -0,0 +1,72 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayPayResponse : AMSResponse + { + + public AlipayPayResponse() { } + + public AlipayPayResponse( Result result , string paymentRequestId , string paymentId , Amount paymentAmount , string paymentData , Amount actualPaymentAmount , Quote paymentQuote , string paymentTime , string paymentCreateTime , string authExpiryTime , Amount nonGuaranteeCouponValue , string paymentActionForm , PspCustomerInfo pspCustomerInfo , ChallengeActionForm challengeActionForm , RedirectActionForm redirectActionForm , OrderCodeForm orderCodeForm , Amount grossSettlementAmount , Quote settlementQuote , string extendInfo , string normalUrl , string schemeUrl , string applinkUrl , string appIdentifier , PaymentResultInfo paymentResultInfo , AcquirerInfo acquirerInfo , List promotionResult) + { + this.Result = result; + this.PaymentRequestId = paymentRequestId; + this.PaymentId = paymentId; + this.PaymentAmount = paymentAmount; + this.PaymentData = paymentData; + this.ActualPaymentAmount = actualPaymentAmount; + this.PaymentQuote = paymentQuote; + this.PaymentTime = paymentTime; + this.PaymentCreateTime = paymentCreateTime; + this.AuthExpiryTime = authExpiryTime; + this.NonGuaranteeCouponValue = nonGuaranteeCouponValue; + this.PaymentActionForm = paymentActionForm; + this.PspCustomerInfo = pspCustomerInfo; + this.ChallengeActionForm = challengeActionForm; + this.RedirectActionForm = redirectActionForm; + this.OrderCodeForm = orderCodeForm; + this.GrossSettlementAmount = grossSettlementAmount; + this.SettlementQuote = settlementQuote; + this.ExtendInfo = extendInfo; + this.NormalUrl = normalUrl; + this.SchemeUrl = schemeUrl; + this.ApplinkUrl = applinkUrl; + this.AppIdentifier = appIdentifier; + this.PaymentResultInfo = paymentResultInfo; + this.AcquirerInfo = acquirerInfo; + this.PromotionResult = promotionResult; + } + + public Result Result { get; set; } + public string PaymentRequestId { get; set; } + public string PaymentId { get; set; } + public Amount PaymentAmount { get; set; } + public string PaymentData { get; set; } + public Amount ActualPaymentAmount { get; set; } + public Quote PaymentQuote { get; set; } + public string PaymentTime { get; set; } + public string PaymentCreateTime { get; set; } + public string AuthExpiryTime { get; set; } + public Amount NonGuaranteeCouponValue { get; set; } + public string PaymentActionForm { get; set; } + public PspCustomerInfo PspCustomerInfo { get; set; } + public ChallengeActionForm ChallengeActionForm { get; set; } + public RedirectActionForm RedirectActionForm { get; set; } + public OrderCodeForm OrderCodeForm { get; set; } + public Amount GrossSettlementAmount { get; set; } + public Quote SettlementQuote { get; set; } + public string ExtendInfo { get; set; } + public string NormalUrl { get; set; } + public string SchemeUrl { get; set; } + public string ApplinkUrl { get; set; } + public string AppIdentifier { get; set; } + public PaymentResultInfo PaymentResultInfo { get; set; } + public AcquirerInfo AcquirerInfo { get; set; } + public List PromotionResult { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs new file mode 100644 index 0000000..e6c102b --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs @@ -0,0 +1,30 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayPaymentSessionResponse : AMSResponse + { + + public AlipayPaymentSessionResponse() { } + + public AlipayPaymentSessionResponse( Result result , string paymentSessionData , string paymentSessionExpiryTime , string paymentSessionId , string normalUrl) + { + this.Result = result; + this.PaymentSessionData = paymentSessionData; + this.PaymentSessionExpiryTime = paymentSessionExpiryTime; + this.PaymentSessionId = paymentSessionId; + this.NormalUrl = normalUrl; + } + + public Result Result { get; set; } + public string PaymentSessionData { get; set; } + public string PaymentSessionExpiryTime { get; set; } + public string PaymentSessionId { get; set; } + public string NormalUrl { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs new file mode 100644 index 0000000..6c5d216 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs @@ -0,0 +1,42 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayRefundResponse : AMSResponse + { + + public AlipayRefundResponse() { } + + public AlipayRefundResponse( Result result , string refundRequestId , string refundId , string paymentId , Amount refundAmount , string refundTime , Amount refundNonGuaranteeCouponAmount , Amount grossSettlementAmount , Quote settlementQuote , AcquirerInfo acquirerInfo , string acquirerReferenceNo) + { + this.Result = result; + this.RefundRequestId = refundRequestId; + this.RefundId = refundId; + this.PaymentId = paymentId; + this.RefundAmount = refundAmount; + this.RefundTime = refundTime; + this.RefundNonGuaranteeCouponAmount = refundNonGuaranteeCouponAmount; + this.GrossSettlementAmount = grossSettlementAmount; + this.SettlementQuote = settlementQuote; + this.AcquirerInfo = acquirerInfo; + this.AcquirerReferenceNo = acquirerReferenceNo; + } + + public Result Result { get; set; } + public string RefundRequestId { get; set; } + public string RefundId { get; set; } + public string PaymentId { get; set; } + public Amount RefundAmount { get; set; } + public string RefundTime { get; set; } + public Amount RefundNonGuaranteeCouponAmount { get; set; } + public Amount GrossSettlementAmount { get; set; } + public Quote SettlementQuote { get; set; } + public AcquirerInfo AcquirerInfo { get; set; } + public string AcquirerReferenceNo { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs new file mode 100644 index 0000000..17f28f9 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs @@ -0,0 +1,32 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayVaultingPaymentMethodResponse : AMSResponse + { + + public AlipayVaultingPaymentMethodResponse() { } + + public AlipayVaultingPaymentMethodResponse( Result result , string vaultingRequestId , PaymentMethodDetail paymentMethodDetail , string normalUrl , string schemeUrl , string applinkUrl) + { + this.Result = result; + this.VaultingRequestId = vaultingRequestId; + this.PaymentMethodDetail = paymentMethodDetail; + this.NormalUrl = normalUrl; + this.SchemeUrl = schemeUrl; + this.ApplinkUrl = applinkUrl; + } + + public Result Result { get; set; } + public string VaultingRequestId { get; set; } + public PaymentMethodDetail PaymentMethodDetail { get; set; } + public string NormalUrl { get; set; } + public string SchemeUrl { get; set; } + public string ApplinkUrl { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs new file mode 100644 index 0000000..f4a594e --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs @@ -0,0 +1,34 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayVaultingQueryResponse : AMSResponse + { + + public AlipayVaultingQueryResponse() { } + + public AlipayVaultingQueryResponse( Result result , string vaultingRequestId , string normalUrl , string schemeUrl , string applinkUrl , string vaultingStatus , PaymentMethodDetail paymentMethodDetail) + { + this.Result = result; + this.VaultingRequestId = vaultingRequestId; + this.NormalUrl = normalUrl; + this.SchemeUrl = schemeUrl; + this.ApplinkUrl = applinkUrl; + this.VaultingStatus = vaultingStatus; + this.PaymentMethodDetail = paymentMethodDetail; + } + + public Result Result { get; set; } + public string VaultingRequestId { get; set; } + public string NormalUrl { get; set; } + public string SchemeUrl { get; set; } + public string ApplinkUrl { get; set; } + public string VaultingStatus { get; set; } + public PaymentMethodDetail PaymentMethodDetail { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs b/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs new file mode 100644 index 0000000..e88bc76 --- /dev/null +++ b/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs @@ -0,0 +1,28 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.pay +{ + +public class AlipayVaultingSessionResponse : AMSResponse + { + + public AlipayVaultingSessionResponse() { } + + public AlipayVaultingSessionResponse( Result result , string vaultingSessionData , string vaultingSessionId , string vaultingSessionExpiryTime) + { + this.Result = result; + this.VaultingSessionData = vaultingSessionData; + this.VaultingSessionId = vaultingSessionId; + this.VaultingSessionExpiryTime = vaultingSessionExpiryTime; + } + + public Result Result { get; set; } + public string VaultingSessionData { get; set; } + public string VaultingSessionId { get; set; } + public string VaultingSessionExpiryTime { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs new file mode 100644 index 0000000..a4df6e7 --- /dev/null +++ b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs @@ -0,0 +1,22 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.subscription +{ + +public class AlipaySubscriptionCancelResponse : AMSResponse + { + + public AlipaySubscriptionCancelResponse() { } + + public AlipaySubscriptionCancelResponse( Result result) + { + this.Result = result; + } + + public Result Result { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs new file mode 100644 index 0000000..c6f75cc --- /dev/null +++ b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs @@ -0,0 +1,22 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.subscription +{ + +public class AlipaySubscriptionChangeResponse : AMSResponse + { + + public AlipaySubscriptionChangeResponse() { } + + public AlipaySubscriptionChangeResponse( Result result) + { + this.Result = result; + } + + public Result Result { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs new file mode 100644 index 0000000..c1d85f4 --- /dev/null +++ b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs @@ -0,0 +1,30 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.subscription +{ + +public class AlipaySubscriptionCreateResponse : AMSResponse + { + + public AlipaySubscriptionCreateResponse() { } + + public AlipaySubscriptionCreateResponse( Result result , string schemeUrl , string applinkUrl , string normalUrl , string appIdentifier) + { + this.Result = result; + this.SchemeUrl = schemeUrl; + this.ApplinkUrl = applinkUrl; + this.NormalUrl = normalUrl; + this.AppIdentifier = appIdentifier; + } + + public Result Result { get; set; } + public string SchemeUrl { get; set; } + public string ApplinkUrl { get; set; } + public string NormalUrl { get; set; } + public string AppIdentifier { get; set; } + + + + } + +} diff --git a/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs new file mode 100644 index 0000000..a3e39af --- /dev/null +++ b/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs @@ -0,0 +1,22 @@ +using com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.response.subscription +{ + +public class AlipaySubscriptionUpdateResponse : AMSResponse + { + + public AlipaySubscriptionUpdateResponse() { } + + public AlipaySubscriptionUpdateResponse( Result result) + { + this.Result = result; + } + + public Result Result { get; set; } + + + + } + +}