Skip to content

Commit deec410

Browse files
authored
Merge pull request #101 from snavinch/master
+ March 2021 SDK Release
2 parents a6a6d1b + 87c95cb commit deec410

File tree

35 files changed

+1185
-950
lines changed

35 files changed

+1185
-950
lines changed

Client/ApiClient.cs

Lines changed: 836 additions & 836 deletions
Large diffs are not rendered by default.

Model/PtsV2PaymentsPost201ResponseProcessingInformation.cs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ public partial class PtsV2PaymentsPost201ResponseProcessingInformation : IEquat
3434
/// Initializes a new instance of the <see cref="PtsV2PaymentsPost201ResponseProcessingInformation" /> class.
3535
/// </summary>
3636
/// <param name="BankTransferOptions">BankTransferOptions.</param>
37+
/// <param name="PaymentSolution">Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. - &#x60;014&#x60;: Mastercard credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. - &#x60;015&#x60;: Visa credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. .</param>
3738
/// <param name="EnhancedDataEnabled">The possible values for the reply field are: - &#x60;true&#x60; : the airline data was included in the request to the processor. - &#x60;false&#x60; : the airline data was not included in the request to the processor. Returned by authorization, capture, or credit services. .</param>
38-
public PtsV2PaymentsPost201ResponseProcessingInformation(PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions BankTransferOptions = default(PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions), bool? EnhancedDataEnabled = default(bool?))
39+
public PtsV2PaymentsPost201ResponseProcessingInformation(PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions BankTransferOptions = default(PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions), string PaymentSolution = default(string), bool? EnhancedDataEnabled = default(bool?))
3940
{
4041
this.BankTransferOptions = BankTransferOptions;
42+
this.PaymentSolution = PaymentSolution;
4143
this.EnhancedDataEnabled = EnhancedDataEnabled;
4244
}
4345

@@ -47,6 +49,13 @@ public partial class PtsV2PaymentsPost201ResponseProcessingInformation : IEquat
4749
[DataMember(Name="bankTransferOptions", EmitDefaultValue=false)]
4850
public PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions BankTransferOptions { get; set; }
4951

52+
/// <summary>
53+
/// Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. - &#x60;014&#x60;: Mastercard credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. - &#x60;015&#x60;: Visa credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token.
54+
/// </summary>
55+
/// <value>Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. - &#x60;014&#x60;: Mastercard credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. - &#x60;015&#x60;: Visa credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. </value>
56+
[DataMember(Name="paymentSolution", EmitDefaultValue=false)]
57+
public string PaymentSolution { get; set; }
58+
5059
/// <summary>
5160
/// The possible values for the reply field are: - &#x60;true&#x60; : the airline data was included in the request to the processor. - &#x60;false&#x60; : the airline data was not included in the request to the processor. Returned by authorization, capture, or credit services.
5261
/// </summary>
@@ -63,6 +72,7 @@ public override string ToString()
6372
var sb = new StringBuilder();
6473
sb.Append("class PtsV2PaymentsPost201ResponseProcessingInformation {\n");
6574
sb.Append(" BankTransferOptions: ").Append(BankTransferOptions).Append("\n");
75+
sb.Append(" PaymentSolution: ").Append(PaymentSolution).Append("\n");
6676
sb.Append(" EnhancedDataEnabled: ").Append(EnhancedDataEnabled).Append("\n");
6777
sb.Append("}\n");
6878
return sb.ToString();
@@ -105,6 +115,11 @@ public bool Equals(PtsV2PaymentsPost201ResponseProcessingInformation other)
105115
this.BankTransferOptions != null &&
106116
this.BankTransferOptions.Equals(other.BankTransferOptions)
107117
) &&
118+
(
119+
this.PaymentSolution == other.PaymentSolution ||
120+
this.PaymentSolution != null &&
121+
this.PaymentSolution.Equals(other.PaymentSolution)
122+
) &&
108123
(
109124
this.EnhancedDataEnabled == other.EnhancedDataEnabled ||
110125
this.EnhancedDataEnabled != null &&
@@ -125,6 +140,8 @@ public override int GetHashCode()
125140
// Suitable nullity checks etc, of course :)
126141
if (this.BankTransferOptions != null)
127142
hash = hash * 59 + this.BankTransferOptions.GetHashCode();
143+
if (this.PaymentSolution != null)
144+
hash = hash * 59 + this.PaymentSolution.GetHashCode();
128145
if (this.EnhancedDataEnabled != null)
129146
hash = hash * 59 + this.EnhancedDataEnabled.GetHashCode();
130147
return hash;
@@ -138,6 +155,12 @@ public override int GetHashCode()
138155
/// <returns>Validation Result</returns>
139156
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
140157
{
158+
// PaymentSolution (string) maxLength
159+
if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12)
160+
{
161+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" });
162+
}
163+
141164
yield break;
142165
}
143166
}

Model/Ptsv2creditsProcessingInformation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public partial class Ptsv2creditsProcessingInformation : IEquatable<Ptsv2credit
3535
/// </summary>
3636
/// <param name="CommerceIndicator">Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only &#x60;internet&#x60;, &#x60;moto&#x60;, &#x60;install&#x60;, &#x60;recurring&#x60;, and &#x60;recurring_internet&#x60; are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \&quot;Commerce Indicators,\&quot; on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \&quot;Payer Authentication,\&quot; page 195. #### Other Types of Transactions See Appendix I, \&quot;Commerce Indicators,\&quot; on page 441. #### Card Present You must set this field to &#x60;retail&#x60;. This field is required for a card-present transaction. Note that this should ONLY be used when the cardholder and card are present at the time of the transaction. For all keyed transactions originated from a POS terminal where the cardholder and card are not present, commerceIndicator should be submitted as “moto\&quot; .</param>
3737
/// <param name="ProcessorId">Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. Contact CyberSource Customer Support to get the value for this field. .</param>
38-
/// <param name="PaymentSolution">Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. .</param>
38+
/// <param name="PaymentSolution">Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. - &#x60;014&#x60;: Mastercard credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. - &#x60;015&#x60;: Visa credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. .</param>
3939
/// <param name="ReconciliationId">Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). .</param>
4040
/// <param name="LinkId">Value that links the current authorization request to the original authorization request. Set this value to the ID that was returned in the reply message from the original authorization request. This value is used for: - Partial authorizations - Split shipments For details, see &#x60;link_to_request&#x60; field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) .</param>
4141
/// <param name="ReportGroup">Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Worldpay VAP**. For details, see &#x60;report_group&#x60; field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) .</param>
@@ -88,9 +88,9 @@ public partial class Ptsv2creditsProcessingInformation : IEquatable<Ptsv2credit
8888
public string ProcessorId { get; set; }
8989

9090
/// <summary>
91-
/// Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay.
91+
/// Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. - &#x60;014&#x60;: Mastercard credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. - &#x60;015&#x60;: Visa credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token.
9292
/// </summary>
93-
/// <value>Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. </value>
93+
/// <value>Type of digital payment solution for the transaction. Possible Values: - &#x60;visacheckout&#x60;: Visa Checkout. This value is required for Visa Checkout transactions. For details, see &#x60;payment_solution&#x60; field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - &#x60;001&#x60;: Apple Pay. - &#x60;004&#x60;: Cybersource In-App Solution. - &#x60;005&#x60;: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \&quot;Masterpass\&quot; in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - &#x60;006&#x60;: Android Pay. - &#x60;007&#x60;: Chase Pay. - &#x60;008&#x60;: Samsung Pay. - &#x60;012&#x60;: Google Pay. - &#x60;014&#x60;: Mastercard credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. - &#x60;015&#x60;: Visa credential on file (COF) payment network token. Returned in authorizations that use a payment network token associated with a TMS token. </value>
9494
[DataMember(Name="paymentSolution", EmitDefaultValue=false)]
9595
public string PaymentSolution { get; set; }
9696

0 commit comments

Comments
 (0)