-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [PW-1535]Add CheckoutPaymentAction (#132) * Add CheckoutPaymentAction * Fix issues in CheckoutPaymentsAction * Change additionaldata type to dictionary (#134) * Adyen Outputtext variable is named 'Text'; for correct serialization, class should have same variable name. (#133) Caused problems in PaymentResponse.PaymentReceipt[] where the content values of the receipts were all set to null. * [PW-1583] Add Sepa fields and Bank Account (#136) * Add Sepa fields * Correct equals * Add Bank account field * Correct ToString fields * Correct comments * Update version 3.2.1
- Loading branch information
1 parent
a6097bc
commit 8cc96e5
Showing
16 changed files
with
456 additions
and
109 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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,89 +1,93 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace Adyen.Model.BinLookup { | ||
namespace Adyen.Model.BinLookup | ||
{ | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[DataContract] | ||
public class ThreeDSAvailabilityRequest { | ||
/// <summary> | ||
/// This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/developers/api-reference/payments-api#paymentrequestadditionaldata). | ||
/// ThreeDSAvailabilityRequest | ||
/// </summary> | ||
/// <value>This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/developers/api-reference/payments-api#paymentrequestadditionaldata).</value> | ||
[DataMember(Name="additionalData", EmitDefaultValue=false)] | ||
[JsonProperty(PropertyName = "additionalData")] | ||
public Object AdditionalData { get; set; } | ||
[DataContract] | ||
public class ThreeDSAvailabilityRequest | ||
{ | ||
|
||
/// <summary> | ||
/// List of brands. | ||
/// </summary> | ||
/// <value>List of brands.</value> | ||
[DataMember(Name="brands", EmitDefaultValue=false)] | ||
[JsonProperty(PropertyName = "brands")] | ||
public List<string> Brands { get; set; } | ||
/// <summary> | ||
/// This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/developers/api-reference/payments-api#paymentrequestadditionaldata). | ||
/// </summary> | ||
/// <value>This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/developers/api-reference/payments-api#paymentrequestadditionaldata).</value> | ||
[DataMember(Name = "additionalData", EmitDefaultValue = false)] | ||
[JsonProperty(PropertyName = "additionalData")] | ||
public Dictionary<string, string> AdditionalData { get; set; } | ||
|
||
/// <summary> | ||
/// Card number or BIN. | ||
/// </summary> | ||
/// <value>Card number or BIN.</value> | ||
[DataMember(Name="cardNumber", EmitDefaultValue=false)] | ||
[JsonProperty(PropertyName = "cardNumber")] | ||
public string CardNumber { get; set; } | ||
/// <summary> | ||
/// List of brands. | ||
/// </summary> | ||
/// <value>List of brands.</value> | ||
[DataMember(Name = "brands", EmitDefaultValue = false)] | ||
[JsonProperty(PropertyName = "brands")] | ||
public List<string> Brands { get; set; } | ||
|
||
/// <summary> | ||
/// The merchant account identifier. | ||
/// </summary> | ||
/// <value>The merchant account identifier.</value> | ||
[DataMember(Name="merchantAccount", EmitDefaultValue=false)] | ||
[JsonProperty(PropertyName = "merchantAccount")] | ||
public string MerchantAccount { get; set; } | ||
/// <summary> | ||
/// Card number or BIN. | ||
/// </summary> | ||
/// <value>Card number or BIN.</value> | ||
[DataMember(Name = "cardNumber", EmitDefaultValue = false)] | ||
[JsonProperty(PropertyName = "cardNumber")] | ||
public string CardNumber { get; set; } | ||
|
||
/// <summary> | ||
/// A recurring detail reference corresponding to a card. | ||
/// </summary> | ||
/// <value>A recurring detail reference corresponding to a card.</value> | ||
[DataMember(Name="recurringDetailReference", EmitDefaultValue=false)] | ||
[JsonProperty(PropertyName = "recurringDetailReference")] | ||
public string RecurringDetailReference { get; set; } | ||
/// <summary> | ||
/// The merchant account identifier. | ||
/// </summary> | ||
/// <value>The merchant account identifier.</value> | ||
[DataMember(Name = "merchantAccount", EmitDefaultValue = false)] | ||
[JsonProperty(PropertyName = "merchantAccount")] | ||
public string MerchantAccount { get; set; } | ||
|
||
/// <summary> | ||
/// The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). | ||
/// </summary> | ||
/// <value>The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).</value> | ||
[DataMember(Name="shopperReference", EmitDefaultValue=false)] | ||
[JsonProperty(PropertyName = "shopperReference")] | ||
public string ShopperReference { get; set; } | ||
/// <summary> | ||
/// A recurring detail reference corresponding to a card. | ||
/// </summary> | ||
/// <value>A recurring detail reference corresponding to a card.</value> | ||
[DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] | ||
[JsonProperty(PropertyName = "recurringDetailReference")] | ||
public string RecurringDetailReference { get; set; } | ||
|
||
/// <summary> | ||
/// The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). | ||
/// </summary> | ||
/// <value>The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).</value> | ||
[DataMember(Name = "shopperReference", EmitDefaultValue = false)] | ||
[JsonProperty(PropertyName = "shopperReference")] | ||
public string ShopperReference { get; set; } | ||
|
||
/// <summary> | ||
/// Get the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() { | ||
var sb = new StringBuilder(); | ||
sb.Append("class ThreeDSAvailabilityRequest {\n"); | ||
sb.Append(" AdditionalData: ").Append(AdditionalData).Append("\n"); | ||
sb.Append(" Brands: ").Append(Brands).Append("\n"); | ||
sb.Append(" CardNumber: ").Append(CardNumber).Append("\n"); | ||
sb.Append(" MerchantAccount: ").Append(MerchantAccount).Append("\n"); | ||
sb.Append(" RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n"); | ||
sb.Append(" ShopperReference: ").Append(ShopperReference).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Get the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public string ToJson() { | ||
return JsonConvert.SerializeObject(this, Formatting.Indented); | ||
} | ||
/// <summary> | ||
/// Get the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
var sb = new StringBuilder(); | ||
sb.Append("class ThreeDSAvailabilityRequest {\n"); | ||
sb.Append(" AdditionalData: ").Append(AdditionalData).Append("\n"); | ||
sb.Append(" Brands: ").Append(Brands).Append("\n"); | ||
sb.Append(" CardNumber: ").Append(CardNumber).Append("\n"); | ||
sb.Append(" MerchantAccount: ").Append(MerchantAccount).Append("\n"); | ||
sb.Append(" RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n"); | ||
sb.Append(" ShopperReference: ").Append(ShopperReference).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
} | ||
/// <summary> | ||
/// Get the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public string ToJson() | ||
{ | ||
return JsonConvert.SerializeObject(this, Formatting.Indented); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.