本文整理汇总了C#中Braintree.NodeWrapper.GetDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# NodeWrapper.GetDateTime方法的具体用法?C# NodeWrapper.GetDateTime怎么用?C# NodeWrapper.GetDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Braintree.NodeWrapper
的用法示例。
在下文中一共展示了NodeWrapper.GetDateTime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Customer
internal Customer(NodeWrapper node, BraintreeService service)
{
if (node == null) return;
Id = node.GetString("id");
FirstName = node.GetString("first-name");
LastName = node.GetString("last-name");
Company = node.GetString("company");
Email = node.GetString("email");
Phone = node.GetString("phone");
Fax = node.GetString("fax");
Website = node.GetString("website");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
var creditCardXmlNodes = node.GetList("credit-cards/credit-card");
CreditCards = new CreditCard[creditCardXmlNodes.Count];
for (int i = 0; i < creditCardXmlNodes.Count; i++)
{
CreditCards[i] = new CreditCard(creditCardXmlNodes[i], service);
}
var addressXmlNodes = node.GetList("addresses/address");
Addresses = new Address[addressXmlNodes.Count];
for (int i = 0; i < addressXmlNodes.Count; i++)
{
Addresses[i] = new Address(addressXmlNodes[i]);
}
CustomFields = node.GetDictionary("custom-fields");
}
示例2: 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);
}
}
示例3: 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");
}
示例4: 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");
}
示例5: Dispute
public Dispute(NodeWrapper node)
{
Amount = node.GetDecimal("amount");
ReceivedDate = node.GetDateTime("received-date");
ReplyByDate = node.GetDateTime("reply-by-date");
DateOpened = node.GetDateTime("date-opened");
DateWon = node.GetDateTime("date-won");
Reason = (DisputeReason)CollectionUtil.Find(DisputeReason.ALL, node.GetString("reason"), DisputeReason.GENERAL);
Status = (DisputeStatus)CollectionUtil.Find(DisputeStatus.ALL, node.GetString("status"), DisputeStatus.UNRECOGNIZED);
Kind = (DisputeKind)CollectionUtil.Find(DisputeKind.ALL, node.GetString("kind"), DisputeKind.UNRECOGNIZED);
CurrencyIsoCode = node.GetString("currency-iso-code");
Id = node.GetString("id");
TransactionDetails = new TransactionDetails(node.GetNode("transaction"));
}
示例6: 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);
}
}
示例7: 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);
}
}
示例8: 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");
}
示例9: 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");
}
示例10: 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");
}
示例11: SubscriptionStatusEvent
public SubscriptionStatusEvent(NodeWrapper node)
{
if (node == null) return;
Price = node.GetDecimal("price");
Balance = node.GetDecimal("balance");
Status = (SubscriptionStatus)CollectionUtil.Find(SubscriptionStatus.STATUSES, node.GetString("status"), SubscriptionStatus.UNRECOGNIZED);
Timestamp = node.GetDateTime("timestamp");
Source = (SubscriptionSource)CollectionUtil.Find(SubscriptionSource.ALL, node.GetString("subscription-source"), SubscriptionSource.UNRECOGNIZED);
User = node.GetString("user");
}
示例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: Address
internal Address(NodeWrapper node)
{
if (node == null) return;
Id = node.GetString("id");
CustomerId = node.GetString("customer-id");
FirstName = node.GetString("first-name");
LastName = node.GetString("last-name");
Company = node.GetString("company");
StreetAddress = node.GetString("street-address");
ExtendedAddress = node.GetString("extended-address");
Locality = node.GetString("locality");
Region = node.GetString("region");
PostalCode = node.GetString("postal-code");
CountryCodeAlpha2 = node.GetString("country-code-alpha2");
CountryCodeAlpha3 = node.GetString("country-code-alpha3");
CountryCodeNumeric = node.GetString("country-code-numeric");
CountryName = node.GetString("country-name");
CreatedAt = node.GetDateTime("created-at");
UpdatedAt = node.GetDateTime("updated-at");
}
示例14: ApplePayCard
protected internal ApplePayCard(NodeWrapper node, BraintreeGateway 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");
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);
}
}
示例15: 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);
}
}