-
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.
Co-authored-by: klaguerre <[email protected]> Co-authored-by: Sara Vasquez <[email protected]> Co-authored-by: Rajaram Gurumurthi <[email protected]>
- Loading branch information
1 parent
49c40ea
commit a18cba8
Showing
23 changed files
with
432 additions
and
228 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
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,46 @@ | ||
#pragma warning disable 1591 | ||
|
||
using System; | ||
|
||
namespace Braintree | ||
{ | ||
/// <summary> | ||
/// A class for building transaction requests with manual key entry. | ||
/// </summary> | ||
/// <example> | ||
/// A network tokenization attributes request can be constructed as follows: | ||
/// <code> | ||
/// NetworkTokenizationAttributesRequest createRequest = new NetworkTokenizationAttributesRequest | ||
/// { | ||
/// Cryptogram = "validcryptogram", | ||
/// EcommerceIndicator = "05", | ||
/// TokenRequestorId = "123456" | ||
/// } | ||
/// </code> | ||
/// </example> | ||
public class NetworkTokenizationAttributesRequest : Request | ||
{ | ||
public string Cryptogram { get; set; } | ||
public string EcommerceIndicator { get; set; } | ||
public string TokenRequestorId { get; set; } | ||
|
||
public override string ToXml() | ||
{ | ||
return ToXml("network-tokenization-attributes"); | ||
} | ||
|
||
public override string ToXml(string root) | ||
{ | ||
return BuildRequest(root).ToXml(); | ||
} | ||
|
||
protected virtual RequestBuilder BuildRequest(string root) | ||
{ | ||
return new RequestBuilder(root). | ||
AddElement("cryptogram", Cryptogram). | ||
AddElement("ecommerce-indicator", EcommerceIndicator). | ||
AddElement("token-requestor-id", TokenRequestorId); | ||
|
||
} | ||
} | ||
} |
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.