From 5740da2e9ec560bb99174d615dd2c8fa8dc41768 Mon Sep 17 00:00:00 2001 From: Wang Zunjiao Date: Thu, 13 Nov 2025 10:01:06 +0000 Subject: [PATCH] false[antom-sdk-automation] automated change --- .../alipay/ams/api/entities/AccountBalance.cs | 39 ++++- .../ams/api/entities/AccountHolderType.cs | 15 +- .../alipay/ams/api/entities/AccountType.cs | 15 +- .../alipay/ams/api/entities/AcquirerInfo.cs | 41 +++-- .../com/alipay/ams/api/entities/Address.cs | 41 +++-- .../alipay/ams/api/entities/AgreementInfo.cs | 29 +++- .../src/com/alipay/ams/api/entities/Amount.cs | 35 +++-- .../alipay/ams/api/entities/AmountLimit.cs | 30 +++- .../ams/api/entities/AssociationType.cs | 23 +-- .../com/alipay/ams/api/entities/Attachment.cs | 29 +++- .../alipay/ams/api/entities/AttachmentType.cs | 43 ++--- .../alipay/ams/api/entities/AuthCodeForm.cs | 24 ++- .../alipay/ams/api/entities/AuthMetaData.cs | 27 ++++ .../api/entities/AvailablePaymentMethod.cs | 29 +++- .../alipay/ams/api/entities/BrowserInfo.cs | 38 ++++- .../alipay/ams/api/entities/BusinessInfo.cs | 45 ++++-- .../src/com/alipay/ams/api/entities/Buyer.cs | 40 +++-- .../com/alipay/ams/api/entities/CardBrand.cs | 83 +++------- .../com/alipay/ams/api/entities/CardInfo.cs | 42 +++-- .../api/entities/CardPaymentMethodDetail.cs | 147 +++++++++++------- .../api/entities/CardVerificationResult.cs | 40 +++-- .../alipay/ams/api/entities/Certificate.cs | 36 ++++- .../ams/api/entities/CertificateType.cs | 22 +-- .../ams/api/entities/ChallengeActionForm.cs | 28 +++- .../entities/ChallengeTriggerSourceType.cs | 11 +- .../alipay/ams/api/entities/ChallengeType.cs | 12 +- .../com/alipay/ams/api/entities/ClassType.cs | 17 +- .../com/alipay/ams/api/entities/CodeDetail.cs | 26 +++- .../alipay/ams/api/entities/CodeValueType.cs | 11 +- .../com/alipay/ams/api/entities/Company.cs | 57 +++++-- .../alipay/ams/api/entities/CompanyType.cs | 35 +++-- .../ams/api/entities/CompanyUnitType.cs | 16 +- .../com/alipay/ams/api/entities/Contact.cs | 36 ++++- .../alipay/ams/api/entities/ContactType.cs | 17 +- .../api/entities/CouponPaymentMethodDetail.cs | 42 +++-- .../ams/api/entities/CreditPayFeeType.cs | 10 +- .../alipay/ams/api/entities/CreditPayPlan.cs | 27 +++- .../ams/api/entities/CustomerBelongsTo.cs | 79 ++++------ .../alipay/ams/api/entities/CustomizedInfo.cs | 39 ++++- .../alipay/ams/api/entities/Declaration.cs | 17 +- .../ams/api/entities/DeliveryEstimate.cs | 29 +++- .../ams/api/entities/DeliveryEstimateInfo.cs | 29 +++- .../com/alipay/ams/api/entities/Discount.cs | 34 +++- .../entities/DiscountPaymentMethodDetail.cs | 39 ++++- .../alipay/ams/api/entities/DisplayType.cs | 14 +- .../api/entities/DisputeEvidenceFormatType.cs | 18 ++- .../ams/api/entities/DisputeEvidenceType.cs | 15 +- .../ams/api/entities/EntityAssociations.cs | 39 ++++- .../src/com/alipay/ams/api/entities/Env.cs | 85 +++++----- .../entities/ExternalPaymentMethodDetail.cs | 36 ++++- .../src/com/alipay/ams/api/entities/Gaming.cs | 36 ++++- .../src/com/alipay/ams/api/entities/Goods.cs | 63 ++++++-- .../com/alipay/ams/api/entities/GrantType.cs | 11 +- .../api/entities/InStorePaymentScenario.cs | 12 +- .../com/alipay/ams/api/entities/Individual.cs | 45 ++++-- .../alipay/ams/api/entities/Installment.cs | 26 +++- .../alipay/ams/api/entities/InterestFree.cs | 34 ++-- .../src/com/alipay/ams/api/entities/Leg.cs | 51 ++++-- .../ams/api/entities/LegalEntityType.cs | 14 +- .../com/alipay/ams/api/entities/Lodging.cs | 45 ++++-- .../src/com/alipay/ams/api/entities/Logo.cs | 25 ++- .../com/alipay/ams/api/entities/Merchant.cs | 53 ++++--- .../alipay/ams/api/entities/MerchantInfo.cs | 43 +++-- .../alipay/ams/api/entities/MerchantType.cs | 11 +- .../com/alipay/ams/api/entities/MpiData.cs | 31 ++++ .../src/com/alipay/ams/api/entities/Order.cs | 70 +++++---- .../alipay/ams/api/entities/OrderCodeForm.cs | 29 ++-- .../com/alipay/ams/api/entities/OrderInfo.cs | 24 ++- .../src/com/alipay/ams/api/entities/OsType.cs | 11 +- .../com/alipay/ams/api/entities/Passenger.cs | 36 +++-- .../alipay/ams/api/entities/PaymentFactor.cs | 34 ++-- .../alipay/ams/api/entities/PaymentMethod.cs | 41 +++-- .../api/entities/PaymentMethodCategoryType.cs | 4 +- .../ams/api/entities/PaymentMethodDetail.cs | 49 ++++-- .../api/entities/PaymentMethodDetailType.cs | 16 +- .../ams/api/entities/PaymentMethodInfo.cs | 36 ++++- .../ams/api/entities/PaymentMethodTypeItem.cs | 33 +++- .../alipay/ams/api/entities/PaymentOption.cs | 63 +++++--- .../ams/api/entities/PaymentOptionDetail.cs | 27 +++- .../ams/api/entities/PaymentResultInfo.cs | 90 ++++++----- .../api/entities/PaymentVerificationData.cs | 29 ++-- .../com/alipay/ams/api/entities/PeriodRule.cs | 26 +++- .../src/com/alipay/ams/api/entities/Plan.cs | 34 ++-- .../ams/api/entities/PresentmentMode.cs | 15 +- .../ams/api/entities/ProductCodeType.cs | 12 +- .../alipay/ams/api/entities/PromotionInfo.cs | 28 +++- .../ams/api/entities/PromotionResult.cs | 27 +++- .../alipay/ams/api/entities/PromotionType.cs | 11 +- .../ams/api/entities/PspCustomerInfo.cs | 41 +++-- .../src/com/alipay/ams/api/entities/Quote.cs | 41 +++-- .../ams/api/entities/RedirectActionForm.cs | 30 ++-- .../alipay/ams/api/entities/RefundDetail.cs | 27 +++- .../alipay/ams/api/entities/RefundFromType.cs | 14 +- .../src/com/alipay/ams/api/entities/Result.cs | 26 +++- .../ams/api/entities/ResultStatusType.cs | 13 ++ .../alipay/ams/api/entities/RiskAddress.cs | 36 +++-- .../com/alipay/ams/api/entities/RiskBuyer.cs | 32 +++- .../com/alipay/ams/api/entities/RiskData.cs | 38 +++-- .../com/alipay/ams/api/entities/RiskEnv.cs | 24 ++- .../com/alipay/ams/api/entities/RiskOrder.cs | 27 +++- .../com/alipay/ams/api/entities/RiskSignal.cs | 27 +++- .../ams/api/entities/RiskThreeDSResult.cs | 30 +++- .../com/alipay/ams/api/entities/ScopeType.cs | 16 +- .../alipay/ams/api/entities/SettleToType.cs | 15 +- .../ams/api/entities/SettlementBankAccount.cs | 60 +++++-- .../ams/api/entities/SettlementDetail.cs | 30 +++- .../alipay/ams/api/entities/SettlementInfo.cs | 31 +++- .../ams/api/entities/SettlementStrategy.cs | 24 ++- .../com/alipay/ams/api/entities/Shipping.cs | 53 +++++-- .../com/alipay/ams/api/entities/StockInfo.cs | 30 +++- .../src/com/alipay/ams/api/entities/Store.cs | 48 +++--- .../alipay/ams/api/entities/SupportBank.cs | 28 +++- .../ams/api/entities/SupportCardBrand.cs | 26 +++- .../alipay/ams/api/entities/TerminalType.cs | 13 +- .../alipay/ams/api/entities/ThreeDSResult.cs | 39 +++-- .../alipay/ams/api/entities/Transaction.cs | 49 ++++-- .../ams/api/entities/TransactionStatusType.cs | 14 +- .../ams/api/entities/TransactionType.cs | 41 ++--- .../ams/api/entities/TransferFromDetail.cs | 30 +++- .../ams/api/entities/TransferToDetail.cs | 45 ++++-- .../com/alipay/ams/api/entities/Transit.cs | 33 +++- .../alipay/ams/api/entities/TransitType.cs | 19 ++- .../src/com/alipay/ams/api/entities/Trial.cs | 28 +++- .../com/alipay/ams/api/entities/UserName.cs | 33 +++- .../src/com/alipay/ams/api/entities/Wallet.cs | 33 ++++ .../com/alipay/ams/api/entities/WebSite.cs | 29 +++- .../auth/AlipayAuthApplyTokenRequest.cs | 59 +++---- .../request/auth/AlipayAuthConsultRequest.cs | 76 +++++---- .../auth/AlipayAuthRevokeTokenRequest.cs | 33 ++-- .../dispute/AlipayAcceptDisputeRequest.cs | 41 +++-- .../AlipayDownloadDisputeEvidenceRequest.cs | 44 ++++-- .../AlipaySupplyDefenseDocumentRequest.cs | 45 +++--- .../marketplace/AlipayCreatePayoutRequest.cs | 47 +++--- .../AlipayCreateTransferRequest.cs | 46 ++++-- .../AlipayInquireBalanceRequest.cs | 38 +++-- .../marketplace/AlipayRegisterRequest.cs | 51 +++--- .../marketplace/AlipaySettleRequest.cs | 46 ++++-- .../AlipaySettlementInfoUpdateRequest.cs | 50 +++--- .../AlipaySubmitAttachmentRequest.cs | 46 ++++-- .../api/request/pay/AlipayCaptureRequest.cs | 48 +++--- .../request/pay/AlipayInquiryRefundRequest.cs | 39 +++-- .../api/request/pay/AlipayPayCancelRequest.cs | 33 ++++ .../request/pay/AlipayPayConsultRequest.cs | 84 ++++++---- .../api/request/pay/AlipayPayQueryRequest.cs | 33 ++++ .../ams/api/request/pay/AlipayPayRequest.cs | 71 +++++++++ .../pay/AlipayPaymentSessionRequest.cs | 118 +++++++------- .../api/request/pay/AlipayRefundRequest.cs | 47 ++++++ .../pay/AlipayVaultingPaymentMethodRequest.cs | 45 ++++++ .../request/pay/AlipayVaultingQueryRequest.cs | 29 ++++ .../pay/AlipayVaultingSessionRequest.cs | 39 +++++ .../AlipaySubscriptionCancelRequest.cs | 37 +++-- .../AlipaySubscriptionChangeRequest.cs | 60 ++++--- .../AlipaySubscriptionCreateRequest.cs | 78 ++++++---- .../AlipaySubscriptionUpdateRequest.cs | 56 ++++--- .../auth/AlipayAuthApplyTokenResponse.cs | 42 +++-- .../auth/AlipayAuthConsultResponse.cs | 44 ++++-- .../auth/AlipayAuthRevokeTokenResponse.cs | 27 +++- .../dispute/AlipayAcceptDisputeResponse.cs | 35 ++++- .../AlipayDownloadDisputeEvidenceResponse.cs | 34 +++- .../AlipaySupplyDefenseDocumentResponse.cs | 35 ++++- .../marketplace/AlipayCreatePayoutResponse.cs | 40 +++-- .../AlipayCreateTransferResponse.cs | 40 +++-- .../AlipayInquireBalanceResponse.cs | 31 +++- .../marketplace/AlipayRegisterResponse.cs | 32 +++- .../marketplace/AlipaySettleResponse.cs | 35 ++++- .../AlipaySettlementInfoUpdateResponse.cs | 32 +++- .../AlipaySubmitAttachmentResponse.cs | 37 ++++- .../api/response/pay/AlipayCaptureResponse.cs | 45 ++++-- .../pay/AlipayInquiryRefundResponse.cs | 53 ++++--- .../response/pay/AlipayPayCancelResponse.cs | 32 ++++ .../response/pay/AlipayPayConsultResponse.cs | 37 +++-- .../response/pay/AlipayPayQueryResponse.cs | 82 ++++++++++ .../ams/api/response/pay/AlipayPayResponse.cs | 76 +++++++++ .../pay/AlipayPaymentSessionResponse.cs | 37 +++-- .../api/response/pay/AlipayRefundResponse.cs | 46 ++++++ .../AlipayVaultingPaymentMethodResponse.cs | 36 +++++ .../pay/AlipayVaultingQueryResponse.cs | 38 +++++ .../pay/AlipayVaultingSessionResponse.cs | 32 ++++ .../AlipaySubscriptionCancelResponse.cs | 27 +++- .../AlipaySubscriptionChangeResponse.cs | 27 +++- .../AlipaySubscriptionCreateResponse.cs | 37 +++-- .../AlipaySubscriptionUpdateResponse.cs | 30 +++- 182 files changed, 4873 insertions(+), 1814 deletions(-) create mode 100644 ams-dotnet/src/com/alipay/ams/api/entities/AuthMetaData.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/entities/MpiData.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/entities/ResultStatusType.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/entities/Wallet.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs create mode 100644 ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/AccountBalance.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AccountBalance.cs index 7d51a03..a491b96 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AccountBalance.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AccountBalance.cs @@ -1,10 +1,33 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class AccountBalance -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/AccountHolderType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AccountHolderType.cs index 89d1867..3ea6181 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AccountHolderType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AccountHolderType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum AccountHolderType -{ - INDIVIDUAL, - ENTERPRISE -} \ No newline at end of file + { + INDIVIDUAL, + ENTERPRISE, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/AccountType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AccountType.cs index dc08e8a..d1f781e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AccountType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AccountType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum AccountType -{ - CHECKING, - FIXED_DEPOSIT, -} \ No newline at end of file + { + CHECKING, + FIXED_DEPOSIT, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/AcquirerInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AcquirerInfo.cs index c462b20..c2ce909 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AcquirerInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AcquirerInfo.cs @@ -1,14 +1,37 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class AcquirerInfo + +public class AcquirerInfo { - 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; } - public string AcquirerReasonDescription { get; set; } + + public AcquirerInfo() { } + + + + public AcquirerInfo( string acquirerName , string referenceRequestId , string acquirerTransactionId , string acquirerMerchantId , string acquirerResultCode , string acquirerResultMessage , string acquirerMerchantName) + { + this.AcquirerName = acquirerName; + this.ReferenceRequestId = referenceRequestId; + this.AcquirerTransactionId = acquirerTransactionId; + this.AcquirerMerchantId = acquirerMerchantId; + this.AcquirerResultCode = acquirerResultCode; + this.AcquirerResultMessage = acquirerResultMessage; + this.AcquirerMerchantName = acquirerMerchantName; + } + + 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; } + public string AcquirerMerchantName { get; set; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Address.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Address.cs index a673208..1a432bc 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Address.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Address.cs @@ -1,14 +1,37 @@ -using System; +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Address + +public class Address { - 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; } + + 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/ams-dotnet/src/com/alipay/ams/api/entities/AgreementInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AgreementInfo.cs index 066dbaa..f6ef3ff 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AgreementInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AgreementInfo.cs @@ -1,14 +1,31 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class AgreementInfo + +public class AgreementInfo { - public string AuthState { get; set; } + public AgreementInfo() { } - public string UserLoginId { get; set; } - public string UserLoginType { get; set; } + + 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; } + - public string DisplayUserLoginId { get; set; } + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Amount.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Amount.cs index 1be131b..c08f859 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Amount.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Amount.cs @@ -1,26 +1,31 @@ - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Amount - { - public Amount() { } +public class Amount + { - public string Currency { get; set; } + public Amount() { } + public Amount(string currency, long amountInCents){ + this.Currency = currency; + this.Value = amountInCents.ToString(); +} - public string Value { get; set; } - public Amount(string currency, string amountInCents) - { - this.Currency = currency; - this.Value = amountInCents; - } - public Amount(string currency, long amountInCents) + public Amount( string currency , string value) { this.Currency = currency; - this.Value = amountInCents.ToString(); + this.Value = value; } + + public string Currency { get; set; } + public string Value { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/AmountLimit.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AmountLimit.cs index 1eb7748..93d547a 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AmountLimit.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AmountLimit.cs @@ -1,9 +1,29 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class AmountLimit + +public class AmountLimit { - public Amount MaxAmount {get;set;} - public Amount MinAmount {get;set;} - public Amount RemainAmount {get;set;} + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/AssociationType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AssociationType.cs index 5f73510..2d6051e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AssociationType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AssociationType.cs @@ -1,11 +1,16 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum AssociationType -{ - LEGAL_REPRESENTATIVE, - UBO, - CONTACT, - DIRECTOR, - AUTHORIZER, - BOARD_MEMBER, -} \ No newline at end of file + { + LEGAL_REPRESENTATIVE, + UBO, + CONTACT, + DIRECTOR, + AUTHORIZER, + BOARD_MEMBER, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Attachment.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Attachment.cs index 56bcd31..d3714d0 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Attachment.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Attachment.cs @@ -1,14 +1,31 @@ -using System; +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Attachment + +public class Attachment { - public AttachmentType AttachmentType { get; set; } - public string File { get; set; } + public Attachment() { } - public string AttachmentName { get; set; } - public string FileKey { get; set; } + + 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/ams-dotnet/src/com/alipay/ams/api/entities/AttachmentType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AttachmentType.cs index 1f8cdad..e8b12d9 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AttachmentType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AttachmentType.cs @@ -1,21 +1,26 @@ -namespace com.alipay.ams.api.entities; - -public enum AttachmentType +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - 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, -} \ No newline at end of file +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/ams-dotnet/src/com/alipay/ams/api/entities/AuthCodeForm.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AuthCodeForm.cs index 116c1fd..bd42a1c 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AuthCodeForm.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AuthCodeForm.cs @@ -1,7 +1,25 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class AuthCodeForm + +public class AuthCodeForm { - public CodeDetail[] CodeDetails { get; set; } + + public AuthCodeForm() { } + + + + public AuthCodeForm( List codeDetails) + { + this.CodeDetails = codeDetails; + } + + public List CodeDetails { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/AuthMetaData.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AuthMetaData.cs new file mode 100644 index 0000000..63a72b7 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AuthMetaData.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs b/ams-dotnet/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs index 33feb42..6e5b688 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/AvailablePaymentMethod.cs @@ -1,8 +1,25 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class AvailablePaymentMethod -{ - public PaymentMethodTypeItem[] PaymentMethodTypeList { get; set; } - - public string PaymentMethodMetaData { get; set; } -} \ No newline at end of file + { + + public AvailablePaymentMethod() { } + + + + public AvailablePaymentMethod( List paymentMethodTypeList) + { + this.PaymentMethodTypeList = paymentMethodTypeList; + } + + public List PaymentMethodTypeList { get; set; } + + + + } + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/BrowserInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/BrowserInfo.cs index 36bba44..627e54c 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/BrowserInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/BrowserInfo.cs @@ -1,11 +1,33 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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; } + + + + } - 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; } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/BusinessInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/BusinessInfo.cs index c9a599d..b264ad6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/BusinessInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/BusinessInfo.cs @@ -1,12 +1,37 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class BusinessInfo -{ - public string Mcc { get; set; } - public WebSite[] 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Buyer.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Buyer.cs index 3fc0681..9343b39 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Buyer.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Buyer.cs @@ -1,17 +1,37 @@ using System; - +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Buyer + +public class Buyer { - 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 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; } + + - public Int64 SuccessfulOrderCount { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CardBrand.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CardBrand.cs index a491d28..d54574c 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CardBrand.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CardBrand.cs @@ -1,65 +1,22 @@ -namespace com.alipay.ams.api.entities; - -public enum CardBrand -{ +using System; +using System.Collections.Generic; - /** - * 维萨卡 - */ - VISA, - - /** - * 万事达卡 - */ - MASTERCARD, - - /** - * 万事达借记卡 - */ - MAESTRO, - - /** - * AMEX - */ - AMEX, - - /** - * JCB - */ - JCB, - - /** - * DINERS - */ - DINERS, - - /** - * DISCOVER - */ - DISCOVER, - - /** - * 银联 - */ - CUP, - - /** - * MIR - */ - MIR, - - /** - * ELO - */ - ELO, - - /** - * HIPERCARD - */ - HIPERCARD, +namespace com.alipay.ams.api.entities +{ - /** - * TROY - */ - TROY -} \ No newline at end of file +public enum CardBrand + { + VISA, + MASTERCARD, + MAESTRO, + AMEX, + JCB, + DINERS, + DISCOVER, + CUP, + MIR, + ELO, + HIPERCARD, + TROY, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CardInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CardInfo.cs index 769e802..ca20d90 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CardInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CardInfo.cs @@ -1,13 +1,37 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class CardInfo + +public class CardInfo { - 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 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs index 832914f..4ca821a 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CardPaymentMethodDetail.cs @@ -1,56 +1,95 @@ -using com.alipay.ams.api.entities; - -namespace com.alipay.ams.api.entities; - -public class CardPaymentMethodDetail +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - 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 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; } -} \ No newline at end of file +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/ams-dotnet/src/com/alipay/ams/api/entities/CardVerificationResult.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CardVerificationResult.cs index 2584738..530667d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CardVerificationResult.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CardVerificationResult.cs @@ -1,17 +1,35 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class CardVerificationResult + +public class CardVerificationResult { - public string AuthenticationType { get; set; } + + public CardVerificationResult() { } + - public string AuthenticationMethod { get; set; } + + 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; } + - public string CvvResult { get; set; } - - public string AvsResult { get; set; } - - public string AuthorizationCode { get; set; } - - public RiskThreeDSResult ThreeDSResult { get; set; } + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Certificate.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Certificate.cs index f060cc2..6aa2c68 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Certificate.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Certificate.cs @@ -1,13 +1,33 @@ +using System; using System.Collections.Generic; - + namespace com.alipay.ams.api.entities { - public class Certificate + +public class Certificate { - 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; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CertificateType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CertificateType.cs index d8882c5..050e7a9 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CertificateType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CertificateType.cs @@ -1,13 +1,17 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public enum CertificateType + +public enum CertificateType { - ENTERPRISE_REGISTRATION, - LICENSE_INFO, - ID_CARD, - PASSPORT, - DRIVING_LICENSE, - CPF, - CNPJ, + ENTERPRISE_REGISTRATION, + LICENSE_INFO, + ID_CARD, + PASSPORT, + DRIVING_LICENSE, + CPF, + CNPJ, } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeActionForm.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeActionForm.cs index 9a49c97..85d44a1 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeActionForm.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeActionForm.cs @@ -1,19 +1,31 @@ - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class ChallengeActionForm - { - public ChallengeType ChallengeType { get; set; } +public class ChallengeActionForm + { + public ChallengeActionForm() { } - public string ChallengeRenderValue { get; set; } + + public ChallengeActionForm( ChallengeType challengeType , string challengeRenderValue , ChallengeTriggerSourceType triggerSource , string extendInfo) + { + this.ChallengeType = challengeType; + this.ChallengeRenderValue = challengeRenderValue; + this.TriggerSource = triggerSource; + this.ExtendInfo = extendInfo; + } - public ChallengeTriggerSourceType ChallengeTriggerSourceType { get; set; } + public ChallengeType ChallengeType { get; set; } + public string ChallengeRenderValue { get; set; } + public ChallengeTriggerSourceType TriggerSource { get; set; } + public string ExtendInfo { get; set; } + - public string ExtendInfo { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs index 44c312f..68d9ee8 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeTriggerSourceType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum ChallengeTriggerSourceType + +public enum ChallengeTriggerSourceType { - AMS, CHANNEL + AMS, + CHANNEL, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeType.cs index 4e7a1bb..15e52ff 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ChallengeType.cs @@ -1,7 +1,13 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum ChallengeType + +public enum ChallengeType { - SMS_OTP, PLAINTEXT_CARD_NO, CARD_EXPIRE_DATE + SMS_OTP, + PLAINTEXT_CARD_NO, + CARD_EXPIRE_DATE, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ClassType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ClassType.cs index 40728d1..f42025b 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ClassType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ClassType.cs @@ -1,8 +1,13 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum ClassType -{ - FIRSTLEVEL, - SECONDLEVEL, - THIRDLEVEL, -} \ No newline at end of file + { + FIRSTLEVEL, + SECONDLEVEL, + THIRDLEVEL, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CodeDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CodeDetail.cs index 4f0b6cb..8cb50ed 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CodeDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CodeDetail.cs @@ -1,17 +1,29 @@ - - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class CodeDetail + +public class CodeDetail { - public CodeValueType CodeValueType { get; set; } + public CodeDetail() { } + - public string CodeValue { get; set; } + 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; } + + - public DisplayType DisplayType { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CodeValueType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CodeValueType.cs index 2796578..f645187 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CodeValueType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CodeValueType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum CodeValueType + +public enum CodeValueType { - BARCODE, QRCODE + BARCODE, + QRCODE, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Company.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Company.cs index 0ea88c6..0c2de43 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Company.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Company.cs @@ -1,16 +1,45 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Company -{ - 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 Attachment[] Attachments { get; set; } - public CompanyUnitType CompanyUnit { get; set; } - public Contact[] Contacts { get; set; } - public string VatNo { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/CompanyType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CompanyType.cs index 4cf5a3c..f681e5d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CompanyType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CompanyType.cs @@ -1,17 +1,22 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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, -} \ No newline at end of file + { + ENTERPRISE, + PARTNERSHIP, + SOLE_PROPRIETORSHIP, + STATE_OWNED_BUSINESS, + PRIVATELY_OWNED_BUSINESS, + PUBLICLY_LISTED_BUSINESS, + LTDA, + SA, + EIRELI, + BOFC, + MEI, + EI, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CompanyUnitType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CompanyUnitType.cs index b3a86aa..78ace75 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CompanyUnitType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CompanyUnitType.cs @@ -1,8 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum CompanyUnitType -{ - HEADQUARTER, - BRANCH, - -} \ No newline at end of file + { + HEADQUARTER, + BRANCH, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Contact.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Contact.cs index 0f76ac0..fd7788e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Contact.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Contact.cs @@ -1,7 +1,33 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Contact -{ - public ContactType Type { get; set; } - public string Info { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/ContactType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ContactType.cs index 1a9f659..7764a15 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ContactType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ContactType.cs @@ -1,8 +1,13 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum ContactType -{ - EMAIL, - PHONE_NO, - COMMERCIAL_PHONE_NO, -} \ No newline at end of file + { + EMAIL, + PHONE_NO, + COMMERCIAL_PHONE_NO, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs index f4a9ab3..5d4dd0b 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CouponPaymentMethodDetail.cs @@ -1,11 +1,35 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class CouponPaymentMethodDetail -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayFeeType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayFeeType.cs index 3e3f7c3..5119ef3 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayFeeType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayFeeType.cs @@ -1,11 +1,11 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - + namespace com.alipay.ams.api.entities { - public enum CreditPayFeeType + +public enum CreditPayFeeType { - PERCENTAGE + PERCENTAGE, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayPlan.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayPlan.cs index c5bbf23..14876a3 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayPlan.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CreditPayPlan.cs @@ -1,18 +1,31 @@ - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class CreditPayPlan + +public class CreditPayPlan { - public int InstallmentNum { get; set; } + public CreditPayPlan() { } - public string Interval { get; set; } - public CreditPayFeeType CreditPayFeeType { get; set; } + 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; } + + - public int FeePercentage { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs index 630c0be..4254411 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CustomerBelongsTo.cs @@ -1,55 +1,36 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - + 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 +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/ams-dotnet/src/com/alipay/ams/api/entities/CustomizedInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/CustomizedInfo.cs index 691c3d7..74d1d0e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/CustomizedInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/CustomizedInfo.cs @@ -1,10 +1,33 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class CustomizedInfo -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Declaration.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Declaration.cs index 0fefa22..83cdde3 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Declaration.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Declaration.cs @@ -1,22 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Declaration +public class Declaration { public Declaration() { } - public Declaration( DeclarationBizSceneType declarationBizScene , string declarationBeneficiaryId) + + + public Declaration( string declarationBizScene , string declarationBeneficiaryId) { this.DeclarationBizScene = declarationBizScene; this.DeclarationBeneficiaryId = declarationBeneficiaryId; } - public DeclarationBizSceneType DeclarationBizScene { get; set; } - public string DeclarationBeneficiaryId { get; set; } - + public string DeclarationBizScene { get; set; } + public string DeclarationBeneficiaryId { get; set; } + } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimate.cs b/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimate.cs index 651544b..74151b6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimate.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimate.cs @@ -1,8 +1,27 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class DeliveryEstimate -{ - public DeliveryEstimateInfo Minimum { get; set; } + { + + public DeliveryEstimate() { } + + + + public DeliveryEstimate( DeliveryEstimateInfo minimum , DeliveryEstimateInfo maximum) + { + this.Minimum = minimum; + this.Maximum = maximum; + } + + public DeliveryEstimateInfo Minimum { get; set; } + public DeliveryEstimateInfo Maximum { get; set; } + + + + } - public DeliveryEstimateInfo Maximum { get; set; } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs index 47f0183..9cdae7b 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/DeliveryEstimateInfo.cs @@ -1,8 +1,27 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class DeliveryEstimateInfo -{ - public string Unit {get;set;} + { + + public DeliveryEstimateInfo() { } + + + + public DeliveryEstimateInfo( string unit , int? value) + { + this.Unit = unit; + this.Value = value; + } + + public string Unit { get; set; } + public int? Value { get; set; } + + + + } - public int Value {get;set;} -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Discount.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Discount.cs index 8f9a4bd..7d4819f 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Discount.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Discount.cs @@ -1,11 +1,31 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Discount + +public class Discount { - public string DiscountTag { get; set; } - public string DiscountName { get; set; } - public Amount SavingsAmount { get; set; } - public Amount EstimateSavingsAmount { get; set; } - public string PromotionCode { get; set; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs index ae64b2c..ed82142 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/DiscountPaymentMethodDetail.cs @@ -1,10 +1,33 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class DiscountPaymentMethodDetail -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/DisplayType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/DisplayType.cs index fcc4617..faabe08 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/DisplayType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/DisplayType.cs @@ -1,7 +1,15 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum DisplayType + +public enum DisplayType { - TEXT, MIDDLEIMAGE, SMALLIMAGE, BIGIMAGE, IMAGE + TEXT, + MIDDLEIMAGE, + SMALLIMAGE, + BIGIMAGE, + IMAGE, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs index 6076033..689a17f 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceFormatType.cs @@ -1,10 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum DisputeEvidenceFormatType -{ - PDF, - WORD, - ZIP, - JPG, - -} \ No newline at end of file + { + PDF, + WORD, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs index b2ea165..8a39a92 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/DisputeEvidenceType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum DisputeEvidenceType -{ - DISPUTE_EVIDENCE_TEMPLATE, - DISPUTE_EVIDENCE_FILE, -} \ No newline at end of file + { + DISPUTE_EVIDENCE_TEMPLATE, + DISPUTE_EVIDENCE_FILE, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/EntityAssociations.cs b/ams-dotnet/src/com/alipay/ams/api/entities/EntityAssociations.cs index 4ffe4fe..cd8c151 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/EntityAssociations.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/EntityAssociations.cs @@ -1,10 +1,33 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class EntityAssociations -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Env.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Env.cs index 776653c..cc8a396 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Env.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Env.cs @@ -1,46 +1,61 @@ - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Env - { - public Env() - { - } - - - public string StoreTerminalId { get; internal set; } - - - public string StoreTerminalRequestTime { get; internal set; } - - public TerminalType TerminalType { get; set; } - - public string UserAgent { get; set; } - - public OsType OsType { get; set; } - - - public string DeviceTokenId { get; set; } +public class Env + { - public string ClientIp { get; set; } + public Env() { } + - public string CookieId { get; set; } + 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; } - public string ExtendInfo { 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; } + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs index 3cee78e..a57daaa 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ExternalPaymentMethodDetail.cs @@ -1,9 +1,31 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class ExternalPaymentMethodDetail -{ - public string AssetToken { get; set; } - public string AccountDisplayName { get; set; } - public string DisableReason { get; set; } - public string PaymentMethodDetailMetadata { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Gaming.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Gaming.cs index 009be16..bcb6ee1 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Gaming.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Gaming.cs @@ -1,9 +1,31 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Gaming -{ - public string GameName { get; set; } - public string ToppedUpUser { get; set; } - public string ToppedUpEmail { get; set; } - public string ToppedUpPhoneNo { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Goods.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Goods.cs index 5ffe6bc..b87bb37 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Goods.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Goods.cs @@ -1,18 +1,49 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Goods -{ - 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; } - public Amount GoodsDiscountAmount { get; set; } - public Goods CrossSell { get; set; } -} \ No newline at end of file + { + + 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 , Amount goodsDiscountAmount , Goods crossSell) + { + 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; + this.GoodsDiscountAmount = goodsDiscountAmount; + this.CrossSell = crossSell; + } + + 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; } + public Amount GoodsDiscountAmount { get; set; } + public Goods CrossSell { get; set; } + + + + } + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/GrantType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/GrantType.cs index 4d1fa9e..e03083e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/GrantType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/GrantType.cs @@ -1,11 +1,12 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - + namespace com.alipay.ams.api.entities { - public enum GrantType + +public enum GrantType { - AUTHORIZATION_CODE, REFRESH_TOKEN + AUTHORIZATION_CODE, + REFRESH_TOKEN, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs b/ams-dotnet/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs index d7995bc..b77c3b6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/InStorePaymentScenario.cs @@ -1,7 +1,13 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum InStorePaymentScenario + +public enum InStorePaymentScenario { - PaymentCode, OrderCode, EntryCode + PaymentCode, + OrderCode, + EntryCode, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Individual.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Individual.cs index 62e78a7..7a0fbad 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Individual.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Individual.cs @@ -1,12 +1,37 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Individual -{ - public UserName Name { get; set; } - public UserName EnglishName { get; set; } - public string DateOfBirth { get; set; } - public Address PlaceOfBirth { get; set; } - public Certificate Certificates { get; set; } - public string Nationality { get; set; } - public Contact[] Contacts { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Installment.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Installment.cs index 27d09c2..e042355 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Installment.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Installment.cs @@ -1,11 +1,27 @@ +using System; using System.Collections.Generic; - + namespace com.alipay.ams.api.entities { - public class Installment + +public class Installment { - public List SupportCardBrands { get; set; } - public List Plans { get; set; } + public Installment() { } + + + + public Installment( List supportCardBrands , List plans) + { + this.SupportCardBrands = supportCardBrands; + this.Plans = plans; + } + + public List SupportCardBrands { get; set; } + public List Plans { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/InterestFree.cs b/ams-dotnet/src/com/alipay/ams/api/entities/InterestFree.cs index 40ce795..d9ed0c7 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/InterestFree.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/InterestFree.cs @@ -1,19 +1,35 @@ +using System; using System.Collections.Generic; - + namespace com.alipay.ams.api.entities { - public class InterestFree + +public class InterestFree { - public string Provider { get; set; } - public string ExpireTime { get; set; } + public InterestFree() { } - public List InstallmentFreeNums { get; set; } + - public Amount MinPaymentAmount { get; set; } + 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 Amount MaxPaymentAmount { get; set; } + 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; } + + - public int FreePercentage { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Leg.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Leg.cs index f536a94..245a262 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Leg.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Leg.cs @@ -1,14 +1,41 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Leg -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/LegalEntityType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/LegalEntityType.cs index 4dd7818..8e5b635 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/LegalEntityType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/LegalEntityType.cs @@ -1,6 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum LegalEntityType -{ - COMPANY, INDIVIDUAL -} \ No newline at end of file + { + COMPANY, + INDIVIDUAL, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Lodging.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Lodging.cs index 3eff968..4fe5308 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Lodging.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Lodging.cs @@ -1,14 +1,37 @@ +using System; using System.Collections.Generic; - -namespace com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.entities +{ public class Lodging -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Logo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Logo.cs index 61a4007..5f6f5ff 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Logo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Logo.cs @@ -1,10 +1,27 @@ -using System; +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Logo + +public class Logo { - public string LogoName { get; set; } - public string LogoUrl { get; set; } + 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/ams-dotnet/src/com/alipay/ams/api/entities/Merchant.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Merchant.cs index f67f83e..0f57541 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Merchant.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Merchant.cs @@ -1,36 +1,45 @@ -using System; +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Merchant + +public class Merchant { - public Merchant(string merchantName, string referenceMerchantId, string merchantMCC, Store store) + public Merchant() { } + + public Merchant(string merchantName, string referenceMerchantId, string merchantMCC, Store store){ + this.MerchantName = merchantName; + this.ReferenceMerchantId = referenceMerchantId; + this.MerchantMCC = merchantMCC; + this.Store = store; +} + + + public Merchant( string referenceMerchantId , string merchantMCC , string merchantName , string merchantDisplayName , Address merchantAddress , string merchantRegisterDate , Store store , MerchantType merchantType) { - this.MerchantName = merchantName; 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 MerchantType MerchantType { get; set; } - - - public string ReferenceMerchantId { get; internal set; } - + 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; } - public string MerchantMCC { get; internal set; } - - - public string MerchantName { get; internal set; } - - - public Store Store { get; internal set; } - - public string MerchantDisplayName { get; set; } - - public Address MerchantAddress { get; set; } - - public string MerchantRegisterDate { get; set; } + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/MerchantInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/MerchantInfo.cs index 11ef137..ad60b82 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/MerchantInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/MerchantInfo.cs @@ -1,12 +1,35 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class MerchantInfo -{ - 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 EntityAssociations[] EntityAssociations { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/MerchantType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/MerchantType.cs index b5610bd..4332818 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/MerchantType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/MerchantType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum MerchantType + +public enum MerchantType { - INDIVIDUAL, ENTERPRISE + INDIVIDUAL, + ENTERPRISE, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/MpiData.cs b/ams-dotnet/src/com/alipay/ams/api/entities/MpiData.cs new file mode 100644 index 0000000..5829fd6 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/entities/MpiData.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/entities/Order.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Order.cs index ccfc2c7..990d181 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Order.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Order.cs @@ -1,37 +1,55 @@ - - +using System; using System.Collections.Generic; - + namespace com.alipay.ams.api.entities { - public class Order - { - - public string ReferenceOrderId { get; set; } - - - public string OrderDescription { get; set; } +public class Order + { - public Amount OrderAmount { get; set; } - + public Order() { } - 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 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 orderTest , Declaration declaration , 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.OrderTest = orderTest; + this.Declaration = declaration; + 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 OrderTest { get; set; } + public Declaration Declaration { get; set; } + public string OrderType { get; set; } - public string ExtendInfo { get; set; } - public Transit Transit { get; set; } - public Lodging Lodging { get; set; } - public Gaming Gaming { get; set; } - public Amount OrderDiscountAmount { get; set; } - public Amount SubTotalOrderAmount { get; set; } - public Declaration Declaration { get; set; } + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/OrderCodeForm.cs b/ams-dotnet/src/com/alipay/ams/api/entities/OrderCodeForm.cs index be00c16..e69cae0 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/OrderCodeForm.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/OrderCodeForm.cs @@ -1,22 +1,31 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - - + namespace com.alipay.ams.api.entities { - public class OrderCodeForm - { - public String PaymentMethodType { get; set; } +public class OrderCodeForm + { + public OrderCodeForm() { } - public String ExpireTime { get; set; } + + public OrderCodeForm( string paymentMethodType , string expireTime , List codeDetails , string extendInfo) + { + this.PaymentMethodType = paymentMethodType; + this.ExpireTime = expireTime; + this.CodeDetails = codeDetails; + this.ExtendInfo = extendInfo; + } - public List CodeDetails { get; set; } + public string PaymentMethodType { get; set; } + public string ExpireTime { get; set; } + public List CodeDetails { get; set; } + public string ExtendInfo { get; set; } + - public String ExtendInfo { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/OrderInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/OrderInfo.cs index 412939b..94377a4 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/OrderInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/OrderInfo.cs @@ -1,7 +1,25 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class OrderInfo + +public class OrderInfo { - public Amount OrderAmount { get; set;} + + public OrderInfo() { } + + + + public OrderInfo( Amount orderAmount) + { + this.OrderAmount = orderAmount; + } + + public Amount OrderAmount { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/OsType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/OsType.cs index 32833f3..4f61dd2 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/OsType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/OsType.cs @@ -1,11 +1,12 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - + namespace com.alipay.ams.api.entities { - public enum OsType + +public enum OsType { - IOS, ANDROID + IOS, + ANDROID, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Passenger.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Passenger.cs index 7440578..73e4525 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Passenger.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Passenger.cs @@ -1,11 +1,29 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Passenger -{ - public UserName PassengerName { get; set; } - public string PassengerEmail { get; set; } - public string PassengerPhoneNo { get; set; } - public string PassengerId { get; set; } - public PassengerIdType PassengerIdType { get; set; } - public string PassengerCode { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/PaymentFactor.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentFactor.cs index b3041a1..30e0924 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentFactor.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentFactor.cs @@ -1,19 +1,33 @@ -using System; - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PaymentFactor - { - public bool? IsPaymentEvaluation { get; set; } - public PresentmentMode PresentmentMode { get; set; } +public class PaymentFactor + { + + public PaymentFactor() { } - public String CaptureMode { get; set; } + - public bool? IsAuthorization { get; set; } + 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; } + + - public InStorePaymentScenario InStorePaymentScenario { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethod.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethod.cs index 9925dda..5b5012d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethod.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethod.cs @@ -1,27 +1,38 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - - + namespace com.alipay.ams.api.entities { - public class PaymentMethod + +public class PaymentMethod { - public PaymentMethod(String paymentMethodType) - { - this.PaymentMethodType = paymentMethodType; - } + public PaymentMethod() { } - public String PaymentMethodType { get; set; } + public PaymentMethod(String paymentMethodType){ + this.PaymentMethodType = paymentMethodType; +} - public String PaymentMethodId { get; set; } - public String PaymentMethodMetaData { get; set; } + 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; } - public String CustomerId { get; set; } - public string ExtendInfo { get; set; } - public bool RequireIssuerAuthentication { get; set; } + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs index a634ed9..d31db1e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodCategoryType.cs @@ -1,3 +1,6 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { @@ -10,6 +13,5 @@ public enum PaymentMethodCategoryType ONLINE_BANKING, CARD, OTC, - MPESA,VIETTELMONEY,CREDIT_PAY,CHECKOUT,DIGITAL_WALLET } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs index 5913973..7ce4796 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetail.cs @@ -1,12 +1,41 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class PaymentMethodDetail -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs index f2841ee..1b77d43 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodDetailType.cs @@ -1,6 +1,14 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum PaymentMethodDetailType -{ - CARD, EXTERNALACCOUNT, COUPON, DISCOUNT -} \ No newline at end of file + { + CARD, + EXTERNALACCOUNT, + COUPON, + DISCOUNT, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs index da4044f..7d853b0 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodInfo.cs @@ -1,13 +1,33 @@ using System; - +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PaymentMethodInfo + +public class PaymentMethodInfo { - public string PaymentMethodType { get; set; } - public string PaymentMethodDetail { get; set; } - public Boolean Enabled { get; set; } - public Boolean Preferred { get; set; } - public string ExtendInfo { get; set; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs index 480fab1..68c85de 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentMethodTypeItem.cs @@ -1,8 +1,29 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class PaymentMethodTypeItem -{ - public string PaymentMethodType { get; set; } - public int PaymentMethodOrder { get; set; } - public bool ExpressCheckout { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOption.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOption.cs index 2f8f0ae..976e96d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOption.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOption.cs @@ -1,24 +1,51 @@ using System; using System.Collections.Generic; - + namespace com.alipay.ams.api.entities { - public class PaymentOption + +public class PaymentOption { - public string PaymentMethodType { get; set; } - public PaymentMethodCategoryType PaymentMethodCategory { get; set; } - public List PaymentMethodRegion { get; set; } - public Boolean Enabled { get; set; } - public Boolean 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; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs index fd5fb90..cad8874 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentOptionDetail.cs @@ -1,14 +1,29 @@ using System; using System.Collections.Generic; - + namespace com.alipay.ams.api.entities { - public class PaymentOptionDetail + +public class PaymentOptionDetail { - public List SupportCardBrands { get; set; } - public List Funding { get; set; } + 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; } + + - public List SupportBanks { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentResultInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentResultInfo.cs index 4d51aaa..60adab1 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentResultInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentResultInfo.cs @@ -1,47 +1,63 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PaymentResultInfo - { - 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 class PaymentResultInfo + { - public string AvsResultRaw { get; set; } + public PaymentResultInfo() { } - 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; } - public string AccountNo { get; set; } - public string RefusalCodeRaw { get; set; } - public string RefusalReasonRaw { get; set; } - public string MerchantAdviceCode { get; set; } - public AcquirerInfo AcquirerInfo { get; set; } - public string ExemptionRequested { get; set; } - public string CardCategory { get; set; } - public string CredentialTypeUsed { get; set; } + 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; } + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentVerificationData.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentVerificationData.cs index 868f28c..64f05e2 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PaymentVerificationData.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PaymentVerificationData.cs @@ -1,24 +1,27 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - - + namespace com.alipay.ams.api.entities { - public class PaymentVerificationData + +public class PaymentVerificationData { - public string VerifyRequestId - { - get; internal set; - } + public PaymentVerificationData() { } - public string AuthenticationCode { get; internal set; } + - public PaymentVerificationData(string verifyRequestId, string authenticationCode) + public PaymentVerificationData( string verifyRequestId , string authenticationCode) { - VerifyRequestId = verifyRequestId; - AuthenticationCode = authenticationCode; + this.VerifyRequestId = verifyRequestId; + this.AuthenticationCode = authenticationCode; } + + public string VerifyRequestId { get; set; } + public string AuthenticationCode { get; set; } + + + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PeriodRule.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PeriodRule.cs index d172a8c..6cbfb5d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PeriodRule.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PeriodRule.cs @@ -1,9 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PeriodRule + +public class PeriodRule { - public PeriodType PeriodType { get; set; } - public int PeriodCount { get; set; } + public PeriodRule() { } + + + + public PeriodRule( string periodType , int? periodCount) + { + this.PeriodType = periodType; + this.PeriodCount = periodCount; + } + + public string PeriodType { get; set; } + public int? PeriodCount { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Plan.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Plan.cs index 551f635..c461531 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Plan.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Plan.cs @@ -1,19 +1,35 @@ using System; - +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Plan + +public class Plan { - public string InterestRate { get; set; } - public Amount MinInstallmentAmount { get; set; } + public Plan() { } - public Amount MaxInstallmentAmount { get; set; } + - public string InstallmentNum { get; set; } + 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 Interval { get; set; } + 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; } + + - public Boolean Enabled { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PresentmentMode.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PresentmentMode.cs index 70e4998..4124497 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PresentmentMode.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PresentmentMode.cs @@ -1,6 +1,13 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum PresentmentMode -{ - BUNDLE, TILE, UNIFIED -} \ No newline at end of file + { + BUNDLE, + TILE, + UNIFIED, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ProductCodeType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ProductCodeType.cs index 90310c9..53dda2c 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ProductCodeType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ProductCodeType.cs @@ -1,7 +1,13 @@ -namespace com.alipay.ams.api.entities +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities { - public enum ProductCodeType + +public enum ProductCodeType { - AGREEMENT_PAYMENT, IN_STORE_PAYMENT, CASHIER_PAYMENT + CASHIER_PAYMENT, + AGREEMENT_PAYMENT, + IN_STORE_PAYMENT, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PromotionInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PromotionInfo.cs index fab5085..8a68854 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PromotionInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PromotionInfo.cs @@ -1,11 +1,29 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PromotionInfo + +public class PromotionInfo { - public PromotionType PromotionType { get; set; } - public Discount Discount { get; set; } + 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; } + + - public InterestFree InterestFree { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PromotionResult.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PromotionResult.cs index e936379..42fe6fa 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PromotionResult.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PromotionResult.cs @@ -1,8 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PromotionResult + +public class PromotionResult { - public PromotionType PromotionType { get; set; } - public Discount Discount { get; set; } + + public PromotionResult() { } + + + + public PromotionResult( PromotionType promotionType , Discount discount) + { + this.PromotionType = promotionType; + this.Discount = discount; + } + + public PromotionType PromotionType { get; set; } + public Discount Discount { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PromotionType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PromotionType.cs index d720643..8bfbf38 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PromotionType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PromotionType.cs @@ -1,7 +1,12 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public enum PromotionType + +public enum PromotionType { - DISCOUNT, INTEREST_FREE + DISCOUNT, + INTEREST_FREE, } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/PspCustomerInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/PspCustomerInfo.cs index 2f063a2..e633c44 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/PspCustomerInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/PspCustomerInfo.cs @@ -1,26 +1,35 @@ -using System; - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class PspCustomerInfo - { - public PspCustomerInfo() { } +public class PspCustomerInfo + { - public string DisplayCustomerId { get; set; } - + public PspCustomerInfo() { } - public string PspCustomerId { get; set; } + + 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; } - public string PspName { get; set; } - - public string DisplayCustomerName { get; set; } - - public string Customer2088Id { get; set; } - - public string ExtendInfo { get; set; } + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Quote.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Quote.cs index 286e514..a802715 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Quote.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Quote.cs @@ -1,28 +1,35 @@ -using System; - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Quote - { - public Quote() { } - - public bool Guaranteed { get; set; } +public class Quote + { + public Quote() { } - public string QuoteCurrencyPair { get; set; } + + 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; } - public decimal QuotePrice { get; set; } - - public string QuoteId { get; set; } - public string QuoteStartTime { get; set; } - - public string QuoteExpiryTime { get; set; } - - public Amount ExchangeAmount { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RedirectActionForm.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RedirectActionForm.cs index 745dba7..227f22d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RedirectActionForm.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RedirectActionForm.cs @@ -1,19 +1,31 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - - + namespace com.alipay.ams.api.entities { - public class RedirectActionForm + +public class RedirectActionForm { - public String Method { get; set; } + 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 Parameters { get; set; } + public string Method { get; set; } + public string Parameters { get; set; } + public string RedirectUrl { get; set; } + public string ActionFormType { get; set; } - public String RedirectUrl { get; set; } - public String ActionFormType { get; set; } + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RefundDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RefundDetail.cs index 1791293..60a5281 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RefundDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RefundDetail.cs @@ -1,8 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RefundDetail + +public class RefundDetail { - public Amount RefundAmount { get; set; } - public RefundFromType RefundFrom { get; set; } + + public RefundDetail() { } + + + + public RefundDetail( Amount refundAmount , RefundFromType refundFrom) + { + this.RefundAmount = refundAmount; + this.RefundFrom = refundFrom; + } + + public Amount RefundAmount { get; set; } + public RefundFromType RefundFrom { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RefundFromType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RefundFromType.cs index ed13e44..58385be 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RefundFromType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RefundFromType.cs @@ -1,9 +1,13 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public enum RefundFromType + +public enum RefundFromType { - SELLER, - MARKETPLACE, - UNSETTLED_FUNDS + SELLER, + MARKETPLACE, + UNSETTLED_FUNDS, } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Result.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Result.cs index 863ecd5..4e2f9f6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Result.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Result.cs @@ -1,19 +1,29 @@ -using System; - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Result + +public class Result { - public Result() { } + public Result() { } - public string ResultCode { get; set; } + + public Result( string resultCode , ResultStatusType resultStatus , string resultMessage) + { + this.ResultCode = resultCode; + this.ResultStatus = resultStatus; + this.ResultMessage = resultMessage; + } - public string ResultMessage { get; set; } + public string ResultCode { get; set; } + public ResultStatusType ResultStatus { get; set; } + public string ResultMessage { get; set; } + - public string ResultStatus { get; set; } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ResultStatusType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ResultStatusType.cs new file mode 100644 index 0000000..1accb2e --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ResultStatusType.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ + +public enum ResultStatusType + { + S, + F, + U, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskAddress.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskAddress.cs index 8934d23..941c47d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskAddress.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskAddress.cs @@ -1,17 +1,33 @@ using System; - +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskAddress + +public class RiskAddress { - public string ShippingPhoneType { get; set; } - - public Boolean IsBillShipStateSame { get; set; } - - public Boolean IsPreviousStateSame { get; set; } + + public RiskAddress() { } + - public int LocToShipDistance { get; set; } + + 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; } + - public int MinPreviousShipToBillDistance { get; set; } + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskBuyer.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskBuyer.cs index 04a2eef..4e0c1f8 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskBuyer.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskBuyer.cs @@ -1,13 +1,31 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskBuyer + +public class RiskBuyer { - public string NoteToMerchant {get;set;} + + public RiskBuyer() { } + - public string NoteToShipping {get;set;} + + 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; } + - public int OrderCountIn1H {get;set;} - - public int OrderCountIn24H {get;set;} + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskData.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskData.cs index 7857143..9af3fc6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskData.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskData.cs @@ -1,17 +1,35 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskData + +public class RiskData { - private RiskOrder Order { get; set; } - private RiskBuyer Buyer { get; set; } - - private RiskEnv Env { get; set; } - - private RiskSignal RiskSignal { get; set; } + public RiskData() { } + - private RiskAddress Address { get; set; } + + 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; } + - private CardVerificationResult CardVerificationResult { get; set; } + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskEnv.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskEnv.cs index a1d1082..e8ec0e9 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskEnv.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskEnv.cs @@ -1,7 +1,25 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskEnv + +public class RiskEnv { - public string IpAddressType { get; set; } + + public RiskEnv() { } + + + + public RiskEnv( string ipAddressType) + { + this.IpAddressType = ipAddressType; + } + + public string IpAddressType { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskOrder.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskOrder.cs index 3438e4a..7149570 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskOrder.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskOrder.cs @@ -1,8 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskOrder + +public class RiskOrder { - public string OrderType { get; set; } - public string ReferringSite { get; set; } + + public RiskOrder() { } + + + + public RiskOrder( string orderType , string referringSite) + { + this.OrderType = orderType; + this.ReferringSite = referringSite; + } + + public string OrderType { get; set; } + public string ReferringSite { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskSignal.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskSignal.cs index 8034ad3..8ade3b9 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskSignal.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskSignal.cs @@ -1,8 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskSignal + +public class RiskSignal { - public string RiskCode { get; set; } - public string RiskReason { get; set; } + + public RiskSignal() { } + + + + public RiskSignal( string riskCode , string riskReason) + { + this.RiskCode = riskCode; + this.RiskReason = riskReason; + } + + public string RiskCode { get; set; } + public string RiskReason { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs b/ams-dotnet/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs index d64a6e3..9af8997 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/RiskThreeDSResult.cs @@ -1,13 +1,31 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class RiskThreeDSResult + +public class RiskThreeDSResult { - public string ThreeDSVersion { get; set; } + + public RiskThreeDSResult() { } + - public string ThreeDSInteractionMode { get; set; } - public string Eci { get; set; } + 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; } + + - public string Cavv { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ScopeType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ScopeType.cs index 7434283..03c1ace 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ScopeType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ScopeType.cs @@ -1,11 +1,17 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - + namespace com.alipay.ams.api.entities { - public enum ScopeType + +public enum ScopeType { - BASE_USER_INFO, AGREEMENT_PAY, USER_INFO, USER_LOGIN_ID, HASH_LOGIN_ID, SEND_OTP,TAOBAO_REBIND + BASE_USER_INFO, + AGREEMENT_PAY, + USER_INFO, + USER_LOGIN_ID, + HASH_LOGIN_ID, + SEND_OTP, + TAOBAO_REBIND, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/SettleToType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SettleToType.cs index d5e63c2..2e679ee 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SettleToType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SettleToType.cs @@ -1,7 +1,12 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum SettleToType -{ - SELLER, - MARKETPLACE, -} \ No newline at end of file + { + SELLER, + MARKETPLACE, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/SettlementBankAccount.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementBankAccount.cs index 756c5be..1b34d05 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SettlementBankAccount.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementBankAccount.cs @@ -1,17 +1,47 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class SettlementBankAccount -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/SettlementDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementDetail.cs index 6b07dff..6d693a2 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SettlementDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementDetail.cs @@ -1,7 +1,27 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class SettlementDetail -{ - public SettleToType SettleTo { get; set; } - public Amount SettlementAmount { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/SettlementInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementInfo.cs index 5b87115..1d1b0ba 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SettlementInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementInfo.cs @@ -1,8 +1,27 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class SettlementInfo -{ - public string SettlementCurrency { get; set; } - public SettlementBankAccount SettlementBankAccount { get; set; } - -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/SettlementStrategy.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementStrategy.cs index 7030a6c..e5f2b22 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SettlementStrategy.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SettlementStrategy.cs @@ -1,13 +1,25 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - - + namespace com.alipay.ams.api.entities { - public class SettlementStrategy + +public class SettlementStrategy { - public String SettlementCurrency { get; set; } + public SettlementStrategy() { } + + + + public SettlementStrategy( string settlementCurrency) + { + this.SettlementCurrency = settlementCurrency; + } + + public string SettlementCurrency { get; set; } + + + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Shipping.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Shipping.cs index cec0d9f..83a0922 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Shipping.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Shipping.cs @@ -1,16 +1,41 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Shipping -{ - 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; } - public string ShippingNumber { get; set; } - public string Notes { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/StockInfo.cs b/ams-dotnet/src/com/alipay/ams/api/entities/StockInfo.cs index 6b62121..e419b32 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/StockInfo.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/StockInfo.cs @@ -1,7 +1,27 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class StockInfo -{ - public string ListedRegion { get; set; } - public string TickerSymbol { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Store.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Store.cs index 5d3d6fb..4866cca 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Store.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Store.cs @@ -1,32 +1,44 @@ -using System; - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Store + +public class Store { - public Store(string storeName, string referenceStoreId, string storeMCC) + public Store() { } + + public Store(string storeName, string referenceStoreId, string storeMCC){ + this.StoreName = storeName; + this.ReferenceStoreId = referenceStoreId; + this.StoreMCC = storeMCC; +} + + + 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; } - 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/ams-dotnet/src/com/alipay/ams/api/entities/SupportBank.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SupportBank.cs index 1cba86f..b159f49 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SupportBank.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SupportBank.cs @@ -1,11 +1,29 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class SupportBank + +public class SupportBank { - public string BankIdentifierCode { get; set; } - public string BankShortName { get; set; } + 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; } + + - public Logo BankLogo { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/SupportCardBrand.cs b/ams-dotnet/src/com/alipay/ams/api/entities/SupportCardBrand.cs index 2ac6523..0923f74 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/SupportCardBrand.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/SupportCardBrand.cs @@ -1,9 +1,27 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class SupportCardBrand + +public class SupportCardBrand { - public string CardBrand { get; set; } - public Logo Logo { get; set; } + public SupportCardBrand() { } + + + + public SupportCardBrand( string cardBrand , Logo logo) + { + this.CardBrand = cardBrand; + this.Logo = logo; + } + + public string CardBrand { get; set; } + public Logo Logo { get; set; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/TerminalType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/TerminalType.cs index b4d36bb..5f7e6b0 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/TerminalType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/TerminalType.cs @@ -1,11 +1,14 @@ -using System; +using System; using System.Collections.Generic; -using System.Text; - + namespace com.alipay.ams.api.entities { - public enum TerminalType + +public enum TerminalType { - WEB, WAP, APP, MINI_AP + WEB, + WAP, + APP, + MINI_APP, } } diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/ThreeDSResult.cs b/ams-dotnet/src/com/alipay/ams/api/entities/ThreeDSResult.cs index 6f16744..bd7f915 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/ThreeDSResult.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/ThreeDSResult.cs @@ -1,14 +1,33 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class ThreeDSResult + +public class ThreeDSResult { - 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; } - public bool Challenged { get; set; } - public string ExemptionType { get; set; } - public bool ThreeDSOffered { get; set; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Transaction.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Transaction.cs index 37195d8..6de85d6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Transaction.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Transaction.cs @@ -1,14 +1,39 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class Transaction -{ - public Result transactionResult; - public string transactionId; - public TransactionType transactionType; - public TransactionStatusType transactionStatus; - public Amount transactionAmount; - public string transactionRequestId; - public string transactionTime; - - public AcquirerInfo acquirerInfo; -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/TransactionStatusType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/TransactionStatusType.cs index f8ed3d2..8313b9e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/TransactionStatusType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/TransactionStatusType.cs @@ -1,7 +1,15 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public enum TransactionStatusType + +public enum TransactionStatusType { - SUCCESS, FAIL, PROCESSING, CANCELLED, PENDING + SUCCESS, + FAIL, + PROCESSING, + CANCELLED, + PENDING, } -} \ No newline at end of file +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/TransactionType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/TransactionType.cs index 936bd90..1ad7c9c 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/TransactionType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/TransactionType.cs @@ -1,29 +1,16 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum TransactionType -{ - /** - * PAYMENT - */ - PAYMENT, - /** - * REFUND - */ - REFUND, - /** - * CAPTURE - */ - CAPTURE, - /** - * CANCEL - */ - CANCEL, - /** - * AUTH - */ - AUTHORIZATION, - /** - * VOID - */ - VOID -} \ No newline at end of file + { + PAYMENT, + REFUND, + CAPTURE, + CANCEL, + AUTHORIZATION, + VOID, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/TransferFromDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/TransferFromDetail.cs index b202874..38db395 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/TransferFromDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/TransferFromDetail.cs @@ -1,7 +1,27 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class TransferFromDetail -{ - public PaymentMethod TransferFromMethod { get; set; } - public Amount TransferFromAmount { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/TransferToDetail.cs b/ams-dotnet/src/com/alipay/ams/api/entities/TransferToDetail.cs index 1dfdad7..12e474d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/TransferToDetail.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/TransferToDetail.cs @@ -1,12 +1,37 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public class TransferToDetail -{ - 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; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/Transit.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Transit.cs index a089feb..8791558 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Transit.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Transit.cs @@ -1,10 +1,29 @@ +using System; using System.Collections.Generic; - -namespace com.alipay.ams.api.entities; + +namespace com.alipay.ams.api.entities +{ public class Transit -{ - public TransitType TransitType { get; set; } - public List Legs { get; set; } - public List Passengers { get; set; } -} \ No newline at end of file + { + + 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/ams-dotnet/src/com/alipay/ams/api/entities/TransitType.cs b/ams-dotnet/src/com/alipay/ams/api/entities/TransitType.cs index 60ceef9..aac73c5 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/TransitType.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/TransitType.cs @@ -1,9 +1,14 @@ -namespace com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.entities +{ public enum TransitType -{ - FLIGHT, // indicates that the trip mode is by plane. - TRAIN, // indicates that the trip mode is by train. - CRUISE, // indicates that the trip mode is by cruise. - COACH, // indicates that the trip mode is by coach. -} \ No newline at end of file + { + FLIGHT, + TRAIN, + CRUISE, + COACH, + } +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Trial.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Trial.cs index bea958b..0013875 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/Trial.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Trial.cs @@ -1,11 +1,29 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class Trial + +public class Trial { - public int TrialStartPeriod { get; set; } - public Amount TrialAmount { get; set; } + 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; } + + - public int TrialEndPeriod { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/UserName.cs b/ams-dotnet/src/com/alipay/ams/api/entities/UserName.cs index 49b3a31..1ea3055 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/UserName.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/UserName.cs @@ -1,10 +1,31 @@ +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class UserName + +public class UserName { - public string FirstName { get; set; } - public string MiddleName { get; set; } - public string LastName { get; set; } - public string FullName { get; set; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/entities/Wallet.cs b/ams-dotnet/src/com/alipay/ams/api/entities/Wallet.cs new file mode 100644 index 0000000..1dd3ef4 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/entities/Wallet.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/entities/WebSite.cs b/ams-dotnet/src/com/alipay/ams/api/entities/WebSite.cs index 4b97ca4..6ee2a9b 100644 --- a/ams-dotnet/src/com/alipay/ams/api/entities/WebSite.cs +++ b/ams-dotnet/src/com/alipay/ams/api/entities/WebSite.cs @@ -1,14 +1,31 @@ -using System; +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.entities { - public class WebSite + +public class WebSite { - public string Name { get; set; } - public string Url { get; set; } + public WebSite() { } - public string Desc { get; set; } - public string Type { get; set; } + + 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/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs index 1dc800c..03ef39e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthApplyTokenRequest.cs @@ -1,56 +1,39 @@ -using com.alipay.ams.api.entities; using com.alipay.ams.api.response.auth; -using com.alipay.ams.util; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; using System; using System.Collections.Generic; -using System.Text; -using System.Text.Json; - - + namespace com.alipay.ams.api.request.auth { - public class AlipayAuthApplyTokenRequest : AMSRequest - { - - public GrantType GrantType { get; set; } +public class AlipayAuthApplyTokenRequest : AMSRequest + { - public CustomerBelongsTo CustomerBelongsTo { get; set; } - + public AlipayAuthApplyTokenRequest() { } - public string AuthCode { get; set; } - - public string RefreshToken { get; set; } - - public string ExtendInfo { get; set; } - - public string MerchantRegion { get; set; } - public override string GetRequestURI() + public AlipayAuthApplyTokenRequest( GrantType grantType , CustomerBelongsTo customerBelongsTo , string authCode , string refreshToken , string extendInfo , string merchantRegion) { - return AntomPathConstants.AUTH_APPLY_TOKEN_PATH; + this.GrantType = grantType; + this.CustomerBelongsTo = customerBelongsTo; + this.AuthCode = authCode; + this.RefreshToken = refreshToken; + this.ExtendInfo = extendInfo; + this.MerchantRegion = merchantRegion; } - public override void validate() - { - - Asserts.NotNull(CustomerBelongsTo, "customerBelongsTo required."); - Asserts.NotNull(GrantType, "grantType required. "); + 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; } - switch (GrantType) - { - case GrantType.AUTHORIZATION_CODE: - Asserts.NotNull(AuthCode, "authCode required."); - break; + public override string GetRequestURI(){ return "/ams/api/v1/authorizations/applyToken"; } - case GrantType.REFRESH_TOKEN: - Asserts.NotNull(RefreshToken, "refreshToken required."); - break; - default: - break; - } - } } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs index 6307733..989c539 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthConsultRequest.cs @@ -1,55 +1,51 @@ -using com.alipay.ams.api.entities; -using com.alipay.ams.api.request; using com.alipay.ams.api.response.auth; -using com.alipay.ams.util; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; using System; using System.Collections.Generic; -using System.Text; -using System.Text.Json; - - + namespace com.alipay.ams.api.request.auth { - public class AlipayAuthConsultRequest : AMSRequest - { - - public CustomerBelongsTo CustomerBelongsTo { get; set; } - - - public string AuthClientId { get; set; } - - - public string AuthRedirectUrl { get; set; } - - - public ScopeType[] Scopes { get; set; } - - public string AuthState { get; set; } - - - public TerminalType TerminalType { get; set; } - - - public OsType OsType { get; set; } +public class AlipayAuthConsultRequest : AMSRequest + { + public AlipayAuthConsultRequest() { } - public string OsVersion { get; set; } - - public string ExtendInfo { get; set; } - - public string MerchantRegion { get; set; } - public bool? RecurringPayment { get; set; } - public override string GetRequestURI() + 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) { - return AntomPathConstants.AUTH_CONSULT_PATH; + 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 override void validate() - { - - } + 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/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs index 927215e..e37496f 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/auth/AlipayAuthRevokeTokenRequest.cs @@ -1,30 +1,31 @@ -using com.alipay.ams.api.request; using com.alipay.ams.api.response.auth; -using com.alipay.ams.util; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; using System; using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using com.alipay.ams.api.entities; - - + namespace com.alipay.ams.api.request.auth { - public class AlipayAuthRevokeTokenRequest : AMSRequest + +public class AlipayAuthRevokeTokenRequest : AMSRequest { - public string AccessToken { get; set; } + public AlipayAuthRevokeTokenRequest() { } + - public string ExtendInfo { get; set; } - public override string GetRequestURI() + public AlipayAuthRevokeTokenRequest( string accessToken , string extendInfo) { - return AntomPathConstants.AUTH_REVOKE_PATH; + this.AccessToken = accessToken; + this.ExtendInfo = extendInfo; } - public override void validate() - { - Asserts.NotNull(AccessToken, "accessToken required."); - } + public string AccessToken { get; set; } + public string ExtendInfo { get; set; } + + public override string GetRequestURI(){ return "/ams/api/v1/authorizations/revoke"; } + + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs index 6b90363..0a4ae55 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayAcceptDisputeRequest.cs @@ -1,20 +1,29 @@ -using ams_dotnet.com.alipay.ams.api.response.dispute; +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 string DisputeId { get; set; } +using System; +using System.Collections.Generic; - - public override string GetRequestURI() - { - return AntomPathConstants.ACCEPT_DISPUTE_PATH; - } - - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs index fcfd3de..eefdc29 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipayDownloadDisputeEvidenceRequest.cs @@ -1,21 +1,31 @@ -using ams_dotnet.com.alipay.ams.api.response.dispute; +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 string DisputeId { get; set; } - public DisputeEvidenceType DisputeEvidenceType { get; set; } +using System; +using System.Collections.Generic; - - public override string GetRequestURI() - { - return AntomPathConstants.DOWNLOAD_DISPUTE_EVIDENCE_PATH; - } - - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs index a97b007..f1388d9 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/dispute/AlipaySupplyDefenseDocumentRequest.cs @@ -1,22 +1,31 @@ -using ams_dotnet.com.alipay.ams.api.response.dispute; +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 string DisputeId { get; set; } - public string DisputeEvidence { get; set; } +using System; +using System.Collections.Generic; - public override string GetRequestURI() - { - return AntomPathConstants.SUPPLY_DEFENCE_DOC_PATH; - } - - - public override void validate() +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"; } + + } - -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs index 231db37..4aa3c7b 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreatePayoutRequest.cs @@ -1,22 +1,33 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; +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 string TransferRequestId { get; set; } - public TransferFromDetail TransferFromDetail { get; set; } - public TransferToDetail TransferToDetail { get; set; } +using System; +using System.Collections.Generic; - - public override string GetRequestURI() - { - return AntomPathConstants.MARKETPLACE_CREATEPAYOUT_PATH; - } - - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs index 4bebdd9..df2d869 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayCreateTransferRequest.cs @@ -1,21 +1,33 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; +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 string TransferRequestId { get; set; } - public TransferFromDetail TransferFromDetail { get; set; } - public TransferToDetail TransferToDetail { get; set; } - - public override string GetRequestURI() - { - return AntomPathConstants.MARKETPLACE_CREATETRANSFER_PATH; - } +using System; +using System.Collections.Generic; - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs index 0d1faed..368037e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayInquireBalanceRequest.cs @@ -1,21 +1,29 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.response.marketplace; +using com.alipay.ams.api.request; using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.marketplace +{ -namespace com.alipay.ams.api.request.marketplace; +public class AlipayInquireBalanceRequest : AMSRequest + { -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"; } - public string ReferenceMerchantId { get; set; } - public override string GetRequestURI() - { - return AntomPathConstants.MARKETPLACE_INQUIREBALANCE_PATH; - } - - public override void validate() - { - } - -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs index 8f5f5d0..2125293 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipayRegisterRequest.cs @@ -1,24 +1,35 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; +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 string RegistrationRequestId { get; set; } - public SettlementInfo[] SettlementInfos { get; set; } - public MerchantInfo MerchantInfo { get; set; } - public PaymentMethod[] PaymentMethods { get; set; } - - +using System; +using System.Collections.Generic; - public override string GetRequestURI() - { - return AntomPathConstants.MARKETPLACE_REGISTER_PATH; - } - - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs index 27aac1e..e40e5f1 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettleRequest.cs @@ -1,21 +1,33 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; +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 string SettlementRequestId { get; set; } - public string PaymentId { get; set; } - public SettlementDetail[] SettlementDetails { get; set; } - - public override string GetRequestURI() - { - return AntomPathConstants.MARKETPLACE_SETTLE_PATH; - } +using System; +using System.Collections.Generic; - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs index b1c548a..9e620c9 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySettlementInfoUpdateRequest.cs @@ -1,23 +1,35 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; -using com.alipay.ams.api.entities; +using com.alipay.ams.api.response.marketplace; using com.alipay.ams.api.request; - -namespace com.alipay.ams.api.request.marketplace; - -public class AlipaySettlementInfoUpdateRequest:AMSRequest -{ - 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 AntomPathConstants.MARKETPLACE_SETTLEMENTINFO_UPDATE_PATH; - } +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs index 55bcb60..e6c7434 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/marketplace/AlipaySubmitAttachmentRequest.cs @@ -1,21 +1,33 @@ -using ams_dotnet.com.alipay.ams.api.response.marketplace; +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 string SubmitAttachmentRequestId { get; set; } - public AttachmentType AttachmentType { get; set; } - public string FileSha256 { get; set; } - - public override string GetRequestURI() - { - return AntomPathConstants.MARKETPLACE_SUBMITATTACHMENT_PATH; - } +using System; +using System.Collections.Generic; - public override void validate() +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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs index dd31fb9..51ff4d4 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayCaptureRequest.cs @@ -1,29 +1,35 @@ -using System; -using ams_dotnet.com.alipay.ams.api.response.pay; +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; using com.alipay.ams.api.entities; -using com.alipay.ams.util; - -namespace com.alipay.ams.api.request +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.pay { - public class AlipayCaptureRequest : AMSRequest + +public class AlipayCaptureRequest : AMSRequest { - public string CaptureRequestId { get; set; } - public string PaymentId { get; set; } - public Amount CaptureAmount { get; set; } - public Boolean IsLastCapture { get; set; } - + + public AlipayCaptureRequest() { } + - public override string GetRequestURI() - { - return AntomPathConstants.CAPTURE_PATH; - } - public override void validate() + public AlipayCaptureRequest( string captureRequestId , string paymentId , Amount captureAmount , bool? isLastCapture) { - Asserts.NotNull(PaymentId, "PaymentId required."); + 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"; } + + } - - -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs index 1fd4398..d00d5a1 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayInquiryRefundRequest.cs @@ -1,24 +1,33 @@ -using ams_dotnet.com.alipay.ams.api.response.pay; +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; using com.alipay.ams.api.entities; -using com.alipay.ams.util; - -namespace com.alipay.ams.api.request +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.pay { - public class AlipayInquiryRefundRequest : AMSRequest + +public class AlipayInquiryRefundRequest : AMSRequest { - public string RefundRequestId { get; set; } - public string RefundId { get; set; } - public string MerchantAccountId { get; set; } + + public AlipayInquiryRefundRequest() { } + - public override string GetRequestURI() - { - return AntomPathConstants.INQUIRY_REFUND_PATH; - } - public override void validate() + 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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs new file mode 100644 index 0000000..3f03596 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayCancelRequest.cs @@ -0,0 +1,33 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs index 4a904e0..4c16fdb 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayConsultRequest.cs @@ -1,37 +1,63 @@ -using System.Collections.Generic; -using ams_dotnet.com.alipay.ams.api.response.pay; +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 +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.pay { - public class AlipayPayConsultRequest : AMSRequest + +public class AlipayPayConsultRequest : AMSRequest { - public ProductCodeType ProductCode { get; set; } - public Amount PaymentAmount { get; set; } - public string MerchantRegion { get; set; } - public string[] AllowedPaymentMethodRegions { get; set; } - public string[] AllowedPaymentMethods { get; set; } - public string[] 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 string[] AllowedPspRegions { get; set; } - public Buyer Buyer { get; set; } + + public AlipayPayConsultRequest() { } + - public override string GetRequestURI() - { - return AntomPathConstants.CONSULT_PAYMENT_PATH; - } - public override void validate() + 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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs new file mode 100644 index 0000000..f93ea3c --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayQueryRequest.cs @@ -0,0 +1,33 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs new file mode 100644 index 0000000..b709c3f --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPayRequest.cs @@ -0,0 +1,71 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs index cff6cb8..eba2cee 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayPaymentSessionRequest.cs @@ -1,67 +1,69 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; using System; using System.Collections.Generic; -using ams_dotnet.com.alipay.ams.api.response.pay; -using com.alipay.ams.api.entities; - -namespace com.alipay.ams.api.request + +namespace com.alipay.ams.api.request.pay { - public class AlipayPaymentSessionRequest : AMSRequest + +public class AlipayPaymentSessionRequest : AMSRequest { - 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 Boolean 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 AlipayPaymentSessionRequest() { } - public List SavedPaymentMethods { get; set; } + + + 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"; } - public string Locale { get; set; } - - public AvailablePaymentMethod AvailablePaymentMethod { get; set; } - - public List AllowedPaymentMethodRegions { get; set; } - - public SubscriptionInfo SubscriptionInfo { get; set; } - - public List Scopes { get; set; } - - public override string GetRequestURI() - { - return AntomPathConstants.CREATE_SESSION_PATH; - } - public override void validate() - { - - } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs new file mode 100644 index 0000000..225bc46 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayRefundRequest.cs @@ -0,0 +1,47 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs new file mode 100644 index 0000000..7ded374 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingPaymentMethodRequest.cs @@ -0,0 +1,45 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs new file mode 100644 index 0000000..72f099f --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingQueryRequest.cs @@ -0,0 +1,29 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs new file mode 100644 index 0000000..3bbe992 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/request/pay/AlipayVaultingSessionRequest.cs @@ -0,0 +1,39 @@ +using com.alipay.ams.api.response.pay; +using com.alipay.ams.api.request; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs index 05e5bc3..4415d98 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCancelRequest.cs @@ -1,22 +1,33 @@ -using ams_dotnet.com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.request; using com.alipay.ams.api.entities; - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.request.subscription { - public class AlipaySubscriptionCancelRequest : AMSRequest + +public class AlipaySubscriptionCancelRequest : AMSRequest { - public string SubscriptionId { get; set; } - public string SubscriptionRequestId { get; set; } - public CancellationType CancellationType { get; set; } + + public AlipaySubscriptionCancelRequest() { } + - public override string GetRequestURI() - { - return AntomPathConstants.SUBSCRIPTION_CANCEL_PATH; - } - public override void validate() + 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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs index fcbc723..cb0392a 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionChangeRequest.cs @@ -1,29 +1,47 @@ -using com.alipay.ams.api.entities; +using com.alipay.ams.api.response.subscription; using com.alipay.ams.api.request; - -namespace ams_dotnet.com.alipay.ams.api.response.subscription +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.subscription { - public class AlipaySubscriptionChangeRequest : AMSRequest + +public class AlipaySubscriptionChangeRequest : AMSRequest { - 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 AlipaySubscriptionChangeRequest() { } + - public override string GetRequestURI() - { - return AntomPathConstants.SUBSCRIPTION_CHANGE_PATH; - } - public override void validate() + 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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs index 9eeeaef..68da996 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionCreateRequest.cs @@ -1,35 +1,57 @@ -using System.Collections.Generic; -using ams_dotnet.com.alipay.ams.api.response.subscription; -using com.alipay.ams.api.entities; +using com.alipay.ams.api.response.subscription; using com.alipay.ams.api.request; - -namespace ams_dotnet.com.alipay.ams.api.request.subscription +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.subscription { - public class AlipaySubscriptionCreateRequest : AMSRequest + +public class AlipaySubscriptionCreateRequest : AMSRequest { - 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 AntomPathConstants.SUBSCRIPTION_CREATE_PATH; - } - public override void validate() + 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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs index 9fb30e0..a16acdf 100644 --- a/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs +++ b/ams-dotnet/src/com/alipay/ams/api/request/subscription/AlipaySubscriptionUpdateRequest.cs @@ -1,27 +1,41 @@ -using ams_dotnet.com.alipay.ams.api.response.subscription; -using com.alipay.ams.api.entities; +using com.alipay.ams.api.response.subscription; using com.alipay.ams.api.request; - -namespace ams_dotnet.com.alipay.ams.api.request.subscription; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.request.subscription +{ public class AlipaySubscriptionUpdateRequest : AMSRequest -{ - 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 AntomPathConstants.SUBSCRIPTION_UPDATE_PATH; - } - public override void validate() - { - + 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"; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs index 2ceaa11..4c281c1 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthApplyTokenResponse.cs @@ -1,24 +1,40 @@ -using System; -using System.Collections.Generic; -using System.Text; using com.alipay.ams.api.entities; - - +using System; +using System.Collections.Generic; + namespace com.alipay.ams.api.response.auth { - public class AlipayAuthApplyTokenResponse : AMSResponse + +public class AlipayAuthApplyTokenResponse : AMSResponse { - public string AccessToken { get; set; } + public AlipayAuthApplyTokenResponse() { } - public string AccessTokenExpiryTime { get; set; } + + + 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 string RefreshToken { get; set; } + 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; } - public string RefreshTokenExpiryTime { get; set; } - public string ExtendInfo { get; set; } - public string UserLoginId { get; set; } - public PspCustomerInfo PspCustomerInfo { get; set; } + } + } diff --git a/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs index f55f993..7df6acc 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthConsultResponse.cs @@ -1,22 +1,40 @@ -using com.alipay.ams.api.response; +using com.alipay.ams.api.entities; using System; using System.Collections.Generic; -using System.Text; -using com.alipay.ams.api.entities; - - + namespace com.alipay.ams.api.response.auth { - public class AlipayAuthConsultResponse : AMSResponse + +public class AlipayAuthConsultResponse : AMSResponse { - public string AuthUrl { get; set; } + public AlipayAuthConsultResponse() { } + - 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; } + + 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/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs index 95342d5..2bf71dc 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/auth/AlipayAuthRevokeTokenResponse.cs @@ -1,7 +1,28 @@ -namespace com.alipay.ams.api.response.auth +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.auth { - public class AlipayAuthRevokeTokenResponse : AMSResponse + +public class AlipayAuthRevokeTokenResponse : AMSResponse { - public string ExtendInfo { get; set; } + + 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/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs index 7a99556..678977e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayAcceptDisputeResponse.cs @@ -1,11 +1,30 @@ -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.dispute; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.dispute +{ public class AlipayAcceptDisputeResponse : AMSResponse -{ - public string DisputeId { get; set; } + { - public string DisputeResolutionTime { get; set; } - -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs index 85d2db7..d71b20a 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipayDownloadDisputeEvidenceResponse.cs @@ -1,8 +1,30 @@ -using com.alipay.ams.api.response; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.dispute +{ -namespace ams_dotnet.com.alipay.ams.api.response.dispute; +public class AlipayDownloadDisputeEvidenceResponse : AMSResponse + { -public class AlipayDownloadDisputeEvidenceResponse:AMSResponse -{ - public string DisputeEvidence { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs index 04eca2a..812b9e2 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/dispute/AlipaySupplyDefenseDocumentResponse.cs @@ -1,9 +1,30 @@ -using com.alipay.ams.api.response; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.dispute +{ -namespace ams_dotnet.com.alipay.ams.api.response.dispute; +public class AlipaySupplyDefenseDocumentResponse : AMSResponse + { -public class AlipaySupplyDefenseDocumentResponse:AMSResponse -{ - public string DisputeId { get; set; } - public string DisputeResolutionTime { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs index 638bb0c..d01164e 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreatePayoutResponse.cs @@ -1,12 +1,34 @@ using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipayCreatePayoutResponse : AMSResponse + { -public class AlipayCreatePayoutResponse:AMSResponse -{ - public string TransferId { get; set; } - public string TransferRequestId { get; set; } - public TransferFromDetail TransferFromDetail { get; set; } - public TransferToDetail TransferToDetail { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs index c55b88d..ab9ba99 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayCreateTransferResponse.cs @@ -1,12 +1,34 @@ using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipayCreateTransferResponse : AMSResponse + { -public class AlipayCreateTransferResponse:AMSResponse -{ - public string TransferId { get; set; } - public string TransferRequestId { get; set; } - public TransferFromDetail TransferFromDetail { get; set; } - public TransferToDetail TransferToDetail { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs index 087c768..38f67ce 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayInquireBalanceResponse.cs @@ -1,9 +1,28 @@ using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipayInquireBalanceResponse : AMSResponse + { -public class AlipayInquireBalanceResponse:AMSResponse -{ - public AccountBalance[] AccountBalances { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs index f08e665..7e60b95 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipayRegisterResponse.cs @@ -1,8 +1,28 @@ -using com.alipay.ams.api.response; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipayRegisterResponse : AMSResponse + { -public class AlipayRegisterResponse:AMSResponse -{ - public string RegistrationStatus { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs index d6c7651..591fc46 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettleResponse.cs @@ -1,9 +1,30 @@ -using com.alipay.ams.api.response; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipaySettleResponse : AMSResponse + { -public class AlipaySettleResponse:AMSResponse -{ - public string SettlementRequestId { get; set; } - public string SettlementId { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs index ed4cec0..600f451 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySettlementInfoUpdateResponse.cs @@ -1,8 +1,28 @@ -using com.alipay.ams.api.response; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipaySettlementInfoUpdateResponse : AMSResponse + { -public class AlipaySettlementInfoUpdateResponse:AMSResponse -{ - public string UpdateStatus { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs index a909ef1..f709f81 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/marketplace/AlipaySubmitAttachmentResponse.cs @@ -1,11 +1,32 @@ using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.marketplace +{ -namespace ams_dotnet.com.alipay.ams.api.response.marketplace; +public class AlipaySubmitAttachmentResponse : AMSResponse + { -public class AlipaySubmitAttachmentResponse:AMSResponse -{ - public string SubmitAttachmentRequestId { get; set; } - public AttachmentType AttachmentType { get; set; } - public string AttachmentKey { get; set; } -} \ No newline at end of file + 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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs index f9caf8a..90ab0a6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayCaptureResponse.cs @@ -1,17 +1,38 @@ -using System; using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.pay +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.pay { - public class AlipayCaptureResponse : AMSResponse + +public class AlipayCaptureResponse : AMSResponse { - 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; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs index c38b37a..9bf9932 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayInquiryRefundResponse.cs @@ -1,25 +1,42 @@ -using System; using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.pay +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.pay { - public class AlipayInquiryRefundResponse : AMSResponse + +public class AlipayInquiryRefundResponse : AMSResponse { - 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; } + + public AlipayInquiryRefundResponse() { } + - - public CustomizedInfo CustomizedInfo { get; set; } - public string Arn { get; set; } + 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; } + + - public Amount ActualRefundAmount { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs new file mode 100644 index 0000000..0f64d3e --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayCancelResponse.cs @@ -0,0 +1,32 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs index 2c778e1..8983bea 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayConsultResponse.cs @@ -1,13 +1,32 @@ -using System.Collections.Generic; using com.alipay.ams.api.entities; -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.pay +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.pay { - public class AlipayPayConsultResponse : AMSResponse + +public class AlipayPayConsultResponse : AMSResponse { - public List PaymentOptions { get; set; } - public List PaymentMethodInfos { get; set; } - public string ExtendInfo { get; set; } + + 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; } + + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs new file mode 100644 index 0000000..4cc198f --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayQueryResponse.cs @@ -0,0 +1,82 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs new file mode 100644 index 0000000..07635ef --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPayResponse.cs @@ -0,0 +1,76 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs index eec4f93..8e2d9e5 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayPaymentSessionResponse.cs @@ -1,15 +1,34 @@ -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.pay +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.pay { - public class AlipayPaymentSessionResponse : AMSResponse + +public class AlipayPaymentSessionResponse : AMSResponse { - public string PaymentSessionData { get; set; } - public string PaymentSessionExpiryTime { get; set; } + public AlipayPaymentSessionResponse() { } + + - public string PaymentSessionId { get; set; } + 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; } + + - public string NormalUrl { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs new file mode 100644 index 0000000..3690c53 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayRefundResponse.cs @@ -0,0 +1,46 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs new file mode 100644 index 0000000..ed8502c --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingPaymentMethodResponse.cs @@ -0,0 +1,36 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs new file mode 100644 index 0000000..a3b2337 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingQueryResponse.cs @@ -0,0 +1,38 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs new file mode 100644 index 0000000..070b174 --- /dev/null +++ b/ams-dotnet/src/com/alipay/ams/api/response/pay/AlipayVaultingSessionResponse.cs @@ -0,0 +1,32 @@ +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +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/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs index d1605d4..b1009a0 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCancelResponse.cs @@ -1,9 +1,26 @@ -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.subscription +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.subscription { - public class AlipaySubscriptionCancelResponse : AMSResponse + +public class AlipaySubscriptionCancelResponse : AMSResponse { + + public AlipaySubscriptionCancelResponse() { } + + + + public AlipaySubscriptionCancelResponse( Result result) + { + this.Result = result; + } + + public Result Result { get; set; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs index 2ff4fac..701a7e6 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionChangeResponse.cs @@ -1,9 +1,26 @@ -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.subscription +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.subscription { - public class AlipaySubscriptionChangeResponse : AMSResponse + +public class AlipaySubscriptionChangeResponse : AMSResponse { + + public AlipaySubscriptionChangeResponse() { } + + + + public AlipaySubscriptionChangeResponse( Result result) + { + this.Result = result; + } + + public Result Result { get; set; } + + } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs index e9d0773..3e8b8be 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionCreateResponse.cs @@ -1,15 +1,34 @@ -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.subscription +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.subscription { - public class AlipaySubscriptionCreateResponse : AMSResponse + +public class AlipaySubscriptionCreateResponse : AMSResponse { - public string SchemeUrl { get; set; } - public string ApplinkUrl { get; set; } + public AlipaySubscriptionCreateResponse() { } + + - public string NormalUrl { get; set; } + 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; } + + - public string AppIdentifier { get; set; } } -} \ No newline at end of file + +} diff --git a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs index b8ca0b3..aeaad3d 100644 --- a/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs +++ b/ams-dotnet/src/com/alipay/ams/api/response/subscription/AlipaySubscriptionUpdateResponse.cs @@ -1,8 +1,26 @@ -using com.alipay.ams.api.response; - -namespace ams_dotnet.com.alipay.ams.api.response.subscription; +using com.alipay.ams.api.entities; +using System; +using System.Collections.Generic; + +namespace com.alipay.ams.api.response.subscription +{ public class AlipaySubscriptionUpdateResponse : AMSResponse -{ - -} \ No newline at end of file + { + + public AlipaySubscriptionUpdateResponse() { } + + + + public AlipaySubscriptionUpdateResponse( Result result) + { + this.Result = result; + } + + public Result Result { get; set; } + + + + } + +}