本文整理汇总了C#中Braintree.NodeWrapper.GetBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# NodeWrapper.GetBoolean方法的具体用法?C# NodeWrapper.GetBoolean怎么用?C# NodeWrapper.GetBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Braintree.NodeWrapper
的用法示例。
在下文中一共展示了NodeWrapper.GetBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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");
}
示例2: 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");
}
示例3: 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));
}
}
示例4: 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");
}
示例5: AndroidPayCard
protected internal AndroidPayCard(NodeWrapper node, IBraintreeGateway gateway)
{
CardType = node.GetString("virtual-card-type");
VirtualCardType = node.GetString("virtual-card-type");
SourceCardType = node.GetString("source-card-type");
Last4 = node.GetString("virtual-card-last-4");
SourceCardLast4 = node.GetString("source-card-last-4");
VirtualCardLast4 = node.GetString("virtual-card-last-4");
SourceDescription = node.GetString("source-description");
Bin = node.GetString("bin");
ExpirationMonth = node.GetString("expiration-month");
ExpirationYear = node.GetString("expiration-year");
GoogleTransactionId = node.GetString("google-transaction-id");
Token = node.GetString("token");
IsDefault = node.GetBoolean("default");
ImageUrl = node.GetString("image-url");
CustomerId = node.GetString("customer-id");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], gateway);
}
}
示例6: Disbursement
public Disbursement(NodeWrapper node, BraintreeGateway gateway)
{
Id = node.GetString("id");
Amount = node.GetDecimal("amount");
ExceptionMessage = node.GetString("exception-message");
DisbursementDate = node.GetDateTime("disbursement-date");
FollowUpAction = node.GetString("follow-up-action");
MerchantAccount = new MerchantAccount(node.GetNode("merchant-account"));
TransactionIds = new List<string>();
foreach (var stringNode in node.GetList("transaction-ids/item"))
{
TransactionIds.Add(stringNode.GetString("."));
}
Success = node.GetBoolean("success");
Retry = node.GetBoolean("retry");
this.gateway = gateway;
}
示例7: Modification
internal Modification(NodeWrapper node)
{
Amount = node.GetDecimal("amount");
Id = node.GetString("id");
NeverExpires = node.GetBoolean("never-expires");
NumberOfBillingCycles = node.GetInteger("number-of-billing-cycles");
Quantity = node.GetInteger("quantity");
}
示例8: UsBankAccount
protected internal UsBankAccount(NodeWrapper node)
{
RoutingNumber = node.GetString("routing-number");
Last4 = node.GetString("last-4");
AccountType = node.GetString("account-type");
AccountDescription = node.GetString("account-description");
AccountHolderName = node.GetString("account-holder-name");
Token = node.GetString("token");
ImageUrl = node.GetString("image-url");
BankName = node.GetString("bank-name");
CustomerId = node.GetString("customer-id");
IsDefault = node.GetBoolean("default");
}
示例9: Modification
protected Modification(NodeWrapper node)
{
Amount = node.GetDecimal("amount");
CreatedAt = node.GetDateTime("created-at");
Description = node.GetString("description");
Id = node.GetString("id");
Kind = node.GetString("kind");
MerchantId = node.GetString("merchant-id");
Name = node.GetString("name");
NeverExpires = node.GetBoolean("never-expires");
NumberOfBillingCycles = node.GetInteger("number-of-billing-cycles");
Quantity = node.GetInteger("quantity");
UpdatedAt = node.GetDateTime("updated-at");
}
示例10: ApplePayCard
protected internal ApplePayCard(NodeWrapper node, IBraintreeGateway gateway)
{
CardType = node.GetString("card-type");
Last4 = node.GetString("last-4");
ExpirationMonth = node.GetString("expiration-month");
ExpirationYear = node.GetString("expiration-year");
Token = node.GetString("token");
PaymentInstrumentName = node.GetString("payment-instrument-name");
SourceDescription = node.GetString("source-description");
IsDefault = node.GetBoolean("default");
IsExpired = node.GetBoolean("expired");
ImageUrl = node.GetString("image-url");
CustomerId = node.GetString("customer-id");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], gateway);
}
}
示例11: PayPalAccount
protected internal PayPalAccount(NodeWrapper node, BraintreeGateway gateway)
{
Email = node.GetString("email");
Token = node.GetString("token");
IsDefault = node.GetBoolean("default");
ImageUrl = node.GetString("image-url");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], gateway);
}
}
示例12: CoinbaseAccount
protected internal CoinbaseAccount(NodeWrapper node, BraintreeService service)
{
UserId = node.GetString("user-id");
UserEmail = node.GetString("user-email");
UserName = node.GetString("user-name");
Token = node.GetString("token");
IsDefault = node.GetBoolean("default");
ImageUrl = node.GetString("image-url");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], service);
}
}
示例13: VenmoAccount
protected internal VenmoAccount(NodeWrapper node, IBraintreeGateway gateway)
{
Token = node.GetString("token");
Username = node.GetString("username");
VenmoUserId = node.GetString("venmo-user-id");
SourceDescription = node.GetString("source-description");
ImageUrl = node.GetString("image-url");
IsDefault = node.GetBoolean("default");
CustomerId = node.GetString("customer-id");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], gateway);
}
}
示例14: AmexExpressCheckoutCard
protected internal AmexExpressCheckoutCard(NodeWrapper node, BraintreeGateway gateway)
{
Token = node.GetString("token");
CardType = node.GetString("card-type");
Bin = node.GetString("bin");
ExpirationMonth = node.GetString("expiration-month");
ExpirationYear = node.GetString("expiration-year");
CardMemberNumber = node.GetString("card-member-number");
CardMemberExpiryDate = node.GetString("card-member-expiry-date");
SourceDescription = node.GetString("source-description");
IsDefault = node.GetBoolean("default");
ImageUrl = node.GetString("image-url");
CustomerId = node.GetString("customer-id");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], gateway);
}
}
示例15: CreditCard
internal CreditCard(NodeWrapper node, BraintreeService service)
{
if (node == null) return;
Bin = node.GetString("bin");
CardholderName = node.GetString("cardholder-name");
CardType = (CreditCardCardType)CollectionUtil.Find(CreditCardCardType.ALL, node.GetString("card-type"), CreditCardCardType.UNRECOGNIZED);
CustomerId = node.GetString("customer-id");
IsDefault = node.GetBoolean("default");
ExpirationMonth = node.GetString("expiration-month");
ExpirationYear = node.GetString("expiration-year");
IsExpired = node.GetBoolean("expired");
CustomerLocation = (CreditCardCustomerLocation)CollectionUtil.Find(CreditCardCustomerLocation.ALL, node.GetString("customer-location"), CreditCardCustomerLocation.UNRECOGNIZED);
LastFour = node.GetString("last-4");
Token = node.GetString("token");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
BillingAddress = new Address(node.GetNode("billing-address"));
var subscriptionXmlNodes = node.GetList("subscriptions/subscription");
Subscriptions = new Subscription[subscriptionXmlNodes.Count];
for (int i = 0; i < subscriptionXmlNodes.Count; i++)
{
Subscriptions[i] = new Subscription(subscriptionXmlNodes[i], service);
}
}