当前位置: 首页>>代码示例>>C#>>正文


C# NodeWrapper.GetString方法代码示例

本文整理汇总了C#中Braintree.NodeWrapper.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# NodeWrapper.GetString方法的具体用法?C# NodeWrapper.GetString怎么用?C# NodeWrapper.GetString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Braintree.NodeWrapper的用法示例。


在下文中一共展示了NodeWrapper.GetString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreditCardVerification

        public CreditCardVerification(NodeWrapper node, BraintreeGateway gateway)
        {
            if (node == null) return;

            AvsErrorResponseCode = node.GetString("avs-error-response-code");
            AvsPostalCodeResponseCode = node.GetString("avs-postal-code-response-code");
            AvsStreetAddressResponseCode = node.GetString("avs-street-address-response-code");
            CvvResponseCode = node.GetString("cvv-response-code");
            GatewayRejectionReason = (TransactionGatewayRejectionReason)CollectionUtil.Find(
                TransactionGatewayRejectionReason.ALL,
                node.GetString("gateway-rejection-reason"),
                null
            );
            ProcessorResponseCode = node.GetString("processor-response-code");
            ProcessorResponseText = node.GetString("processor-response-text");
            MerchantAccountId = node.GetString("merchant-account-id");
            Status = (VerificationStatus)CollectionUtil.Find(VerificationStatus.ALL, node.GetString("status"), VerificationStatus.UNRECOGNIZED);
            Id = node.GetString("id");
            BillingAddress = new Address(node.GetNode("billing"));
            CreditCard = new CreditCard(node.GetNode("credit-card"), gateway);
            CreatedAt = node.GetDateTime("created-at");

            var riskDataNode = node.GetNode("risk-data");
            if (riskDataNode != null) {
                RiskData = new RiskData(riskDataNode);
            }
        }
开发者ID:ronin1,项目名称:braintree_dotnet,代码行数:27,代码来源:CreditCardVerification.cs

示例2: MerchantAccountBusinessDetails

 protected internal MerchantAccountBusinessDetails(NodeWrapper node)
 {
     DbaName = node.GetString("dba-name");
     LegalName = node.GetString("legal-name");
     TaxId = node.GetString("tax-id");
     Address = new Address(node.GetNode("address"));
 }
开发者ID:zxed,项目名称:braintree_dotnet,代码行数:7,代码来源:MerchantAccountBusinessDetails.cs

示例3: Descriptor

 protected internal Descriptor(NodeWrapper node)
 {
     if (node != null) {
         Name = node.GetString("name");
         Phone = node.GetString("phone");
     }
 }
开发者ID:khorvat,项目名称:braintree_dotnet,代码行数:7,代码来源:Descriptor.cs

示例4: Plan

 public Plan(NodeWrapper node)
 {
     if (node == null) return;
     BillingDayOfMonth = node.GetInteger("billing-day-of-month");
     BillingFrequency = node.GetInteger("billing-frequency");
     CurrencyIsoCode = node.GetString("currency-iso-code");
     Description = node.GetString("description");
     Id = node.GetString("id");
     Name = node.GetString("name");
     NumberOfBillingCycles = node.GetInteger("number-of-billing-cycles");
     Price = node.GetDecimal("price");
     TrialPeriod = node.GetBoolean("trial-period");
     TrialDuration = node.GetInteger("trial-duration");
     string trialDurationUnitStr = node.GetString("trial-duration-unit");
     if (trialDurationUnitStr != null) {
         TrialDurationUnit = (PlanDurationUnit) CollectionUtil.Find(PlanDurationUnit.ALL, trialDurationUnitStr, PlanDurationUnit.UNRECOGNIZED);
     }
     AddOns = new List<AddOn> ();
     foreach (var addOnResponse in node.GetList("add-ons/add-on")) {
         AddOns.Add(new AddOn(addOnResponse));
     }
     Discounts = new List<Discount> ();
     foreach (var discountResponse in node.GetList("discounts/discount")) {
         Discounts.Add(new Discount(discountResponse));
     }
 }
开发者ID:ronin1,项目名称:braintree_dotnet,代码行数:26,代码来源:Plan.cs

示例5: CoinbaseDetails

 protected internal CoinbaseDetails(NodeWrapper node)
 {
     UserId = node.GetString("user-id");
     UserEmail = node.GetString("user-email");
     UserName = node.GetString("user-name");
     Token = node.GetString("token");
 }
开发者ID:zxed,项目名称:braintree_dotnet,代码行数:7,代码来源:CoinbaseDetails.cs

示例6: UnknownPaymentMethod

 public UnknownPaymentMethod(NodeWrapper node)
 {
     Token = node.GetString("token");
     IsDefault = node.GetBoolean("default");
     ImageUrl = "https://assets.braintreegateway.com/payment_method_logo/unknown.png";
     CustomerId = node.GetString("customer-id");
 }
开发者ID:ronin1,项目名称:braintree_dotnet,代码行数:7,代码来源:UnknownPaymentMethod.cs

示例7: MerchantAccount

 protected internal MerchantAccount(NodeWrapper node)
 {
   Id = node.GetString("id");
   CurrencyIsoCode = node.GetString("currency-iso-code");
   Status = (MerchantAccountStatus) CollectionUtil.Find(MerchantAccountStatus.ALL, node.GetString("status"), null);
   NodeWrapper masterNode = node.GetNode("master-merchant-account");
   if (masterNode != null)
       MasterMerchantAccount = new MerchantAccount(masterNode);
   else
       MasterMerchantAccount = null;
   NodeWrapper individualNode = node.GetNode("individual");
   if (individualNode != null)
       IndividualDetails = new MerchantAccountIndividualDetails(individualNode);
   else
       IndividualDetails = null;
   NodeWrapper businessNode = node.GetNode("business");
   if (businessNode != null)
       BusinessDetails = new MerchantAccountBusinessDetails(businessNode);
   else
       BusinessDetails = null;
   NodeWrapper fundingNode = node.GetNode("funding");
   if (fundingNode != null)
       FundingDetails = new MerchantAccountFundingDetails(fundingNode);
   else
       FundingDetails = null;
 }
开发者ID:Jammyhammy,项目名称:braintree_dotnet,代码行数:26,代码来源:MerchantAccount.cs

示例8: RiskData

        public RiskData(NodeWrapper node)
        {
            if (node == null)
                return;

            id = node.GetString("id");
            decision = node.GetString("decision");
        }
开发者ID:braintree,项目名称:braintree_dotnet,代码行数:8,代码来源:RiskData.cs

示例9: VenmoAccountDetails

 protected internal VenmoAccountDetails(NodeWrapper node)
 {
     Token = node.GetString("token");
     Username = node.GetString("username");
     VenmoUserId = node.GetString("venmo-user-id");
     ImageUrl = node.GetString("image-url");
     SourceDescription = node.GetString("source-description");
 }
开发者ID:Jammyhammy,项目名称:braintree_dotnet,代码行数:8,代码来源:VenmoAccountDetails.cs

示例10: PartnerMerchant

 protected internal PartnerMerchant(NodeWrapper node)
 {
     MerchantPublicId = node.GetString("merchant-public-id");
     PublicKey = node.GetString("public-key");
     PrivateKey = node.GetString("private-key");
     PartnerMerchantId = node.GetString("partner-merchant-id");
     ClientSideEncryptionKey = node.GetString("client-side-encryption-key");
 }
开发者ID:Jammyhammy,项目名称:braintree_dotnet,代码行数:8,代码来源:PartnerMerchant.cs

示例11: OAuthCredentials

        public OAuthCredentials(NodeWrapper node)
        {
            if (node == null) return;

            AccessToken = node.GetString("access-token");
            RefreshToken = node.GetString("refresh-token");
            TokenType = node.GetString("token-type");
            ExpiresAt = node.GetDateTime("expires-at");
        }
开发者ID:Jammyhammy,项目名称:braintree_dotnet,代码行数:9,代码来源:OAuthCredentials.cs

示例12: DisbursementDetails

 protected internal DisbursementDetails(NodeWrapper node)
 {
     SettlementAmount = node.GetDecimal("settlement-amount");
     SettlementCurrencyIsoCode = node.GetString("settlement-currency-iso-code");
     SettlementCurrencyExchangeRate = node.GetString("settlement-currency-exchange-rate");
     FundsHeld = node.GetBoolean("funds-held");
     Success = node.GetBoolean("success");
     DisbursementDate = node.GetDateTime("disbursement-date");
 }
开发者ID:zxed,项目名称:braintree_dotnet,代码行数:9,代码来源:DisbursementDetails.cs

示例13: ThreeDSecureInfo

        public ThreeDSecureInfo(NodeWrapper node)
        {
            if (node == null) return;

            Enrolled = node.GetString("enrolled");
            Status = node.GetString("status");
            LiabilityShifted = node.GetBoolean("liability-shifted");
            LiabilityShiftPossible = node.GetBoolean("liability-shift-possible");
        }
开发者ID:Jammyhammy,项目名称:braintree_dotnet,代码行数:9,代码来源:ThreeDSecureInfo.cs

示例14: StatusEvent

        public StatusEvent(NodeWrapper node)
        {
            if (node == null) return;

            Amount = node.GetDecimal("amount");
            Status = (TransactionStatus)CollectionUtil.Find(TransactionStatus.ALL, node.GetString("status"), TransactionStatus.UNRECOGNIZED);
            Timestamp = node.GetDateTime("timestamp");
            Source = (TransactionSource)CollectionUtil.Find(TransactionSource.ALL, node.GetString("transaction-source"), TransactionSource.UNRECOGNIZED);
            User = node.GetString("user");
        }
开发者ID:ronin1,项目名称:braintree_dotnet,代码行数:10,代码来源:StatusEvent.cs

示例15: Dispute

 public Dispute(NodeWrapper node)
 {
     Amount = node.GetDecimal("amount");
     ReceivedDate = node.GetDateTime("received-date");
     ReplyByDate = node.GetDateTime("reply-by-date");
     Reason = (DisputeReason)CollectionUtil.Find(DisputeReason.ALL, node.GetString("reason"), DisputeReason.GENERAL);
     Status = (DisputeStatus)CollectionUtil.Find(DisputeStatus.ALL, node.GetString("status"), DisputeStatus.UNRECOGNIZED);
     CurrencyIsoCode = node.GetString("currency-iso-code");
     Id = node.GetString("id");
 }
开发者ID:zxed,项目名称:braintree_dotnet,代码行数:10,代码来源:Dispute.cs


注:本文中的Braintree.NodeWrapper.GetString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。