-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a92abae
commit f739d77
Showing
14 changed files
with
235 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,8 @@ public void Create_AcceptsBankFundingDestination() | |
{ | ||
var request = createRequest(null); | ||
request.Funding.Destination = FundingDestination.BANK; | ||
request.Funding.AccountNumber = "43759348798"; | ||
request.Funding.RoutingNumber = "122100024"; | ||
Result<MerchantAccount> result = gateway.MerchantAccount.Create(request); | ||
Assert.IsTrue(result.IsSuccess()); | ||
} | ||
|
@@ -369,8 +371,6 @@ private MerchantAccountRequest createRequest(String id) | |
Destination = FundingDestination.EMAIL, | ||
Email = "[email protected]", | ||
MobilePhone = "3125551212", | ||
RoutingNumber = "122100024", | ||
AccountNumber = "43759348798", | ||
Descriptor = "Job Leoggs OH", | ||
}, | ||
TosAccepted = true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
|
||
namespace Braintree | ||
{ | ||
public class AndroidPayCard : PaymentMethod | ||
{ | ||
public String CardType { get; protected set; } | ||
public String Last4 { get; protected set; } | ||
public String SourceCardType { get; protected set; } | ||
public String SourceCardLast4 { get; protected set; } | ||
public String VirtualCardType { get; protected set; } | ||
public String VirtualCardLast4 { get; protected set; } | ||
public String ExpirationMonth { get; protected set; } | ||
public String ExpirationYear { get; protected set; } | ||
public String Token { get; protected set; } | ||
public String GoogleTransactionId { get; protected set; } | ||
public String Bin { get; protected set; } | ||
public Boolean? IsDefault { get; protected set; } | ||
public String ImageUrl { get; protected set; } | ||
public DateTime? CreatedAt { get; protected set; } | ||
public DateTime? UpdatedAt { get; protected set; } | ||
public Subscription[] Subscriptions { get; protected set; } | ||
|
||
protected internal AndroidPayCard(NodeWrapper node, BraintreeService service) | ||
{ | ||
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"); | ||
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"); | ||
|
||
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); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
|
||
namespace Braintree | ||
{ | ||
public class AndroidPayDetails | ||
{ | ||
public String Bin { get; protected set; } | ||
public String ExpirationMonth { get; protected set; } | ||
public String ExpirationYear { get; protected set; } | ||
public String GoogleTransactionId { get; protected set; } | ||
public String ImageUrl { get; protected set; } | ||
public String SourceCardLast4 { get; protected set; } | ||
public String SourceCardType { get; protected set; } | ||
public String VirtualCardLast4 { get; protected set; } | ||
public String VirtualCardType { get; protected set; } | ||
public String CardType { get; protected set; } | ||
public String Last4 { get; protected set; } | ||
public String Token { get; protected set; } | ||
|
||
protected internal AndroidPayDetails(NodeWrapper node) | ||
{ | ||
Bin = node.GetString("bin"); | ||
ExpirationMonth = node.GetString("expiration-month"); | ||
ExpirationYear = node.GetString("expiration-year"); | ||
GoogleTransactionId = node.GetString("google-transaction-id"); | ||
ImageUrl = node.GetString("image-url"); | ||
SourceCardType = node.GetString("source-card-type"); | ||
SourceCardLast4 = node.GetString("source-card-last-4"); | ||
VirtualCardLast4 = node.GetString("virtual-card-last-4"); | ||
VirtualCardType = node.GetString("virtual-card-type"); | ||
CardType = node.GetString("virtual-card-type"); | ||
Last4 = node.GetString("virtual-card-last-4"); | ||
Token = node.GetString("token"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.