Skip to content

Commit 18d00f7

Browse files
committed
adding spec changes
1 parent 6530df9 commit 18d00f7

File tree

281 files changed

+14250
-6329
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+14250
-6329
lines changed

Api/InstrumentIdentifierApi.cs

+112-40
Large diffs are not rendered by default.

Api/PaymentInstrumentApi.cs

+84-30
Large diffs are not rendered by default.

Model/CreatePaymentRequest.cs

+17-1
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ public partial class CreatePaymentRequest : IEquatable<CreatePaymentRequest>, I
5959
/// <param name="RiskInformation">RiskInformation.</param>
6060
/// <param name="AcquirerInformation">AcquirerInformation.</param>
6161
/// <param name="RecurringPaymentInformation">RecurringPaymentInformation.</param>
62+
/// <param name="UnscheduledPaymentInformation">UnscheduledPaymentInformation.</param>
6263
/// <param name="HostedPaymentInformation">HostedPaymentInformation.</param>
6364
/// <param name="WatchlistScreeningInformation">WatchlistScreeningInformation.</param>
64-
public CreatePaymentRequest(Ptsv2paymentsClientReferenceInformation ClientReferenceInformation = default(Ptsv2paymentsClientReferenceInformation), Ptsv2paymentsProcessingInformation ProcessingInformation = default(Ptsv2paymentsProcessingInformation), Ptsv2paymentsIssuerInformation IssuerInformation = default(Ptsv2paymentsIssuerInformation), Ptsv2paymentsPaymentInformation PaymentInformation = default(Ptsv2paymentsPaymentInformation), Ptsv2paymentsOrderInformation OrderInformation = default(Ptsv2paymentsOrderInformation), Ptsv2paymentsBuyerInformation BuyerInformation = default(Ptsv2paymentsBuyerInformation), Ptsv2paymentsSenderInformation SenderInformation = default(Ptsv2paymentsSenderInformation), Ptsv2paymentsRecipientInformation RecipientInformation = default(Ptsv2paymentsRecipientInformation), Ptsv2paymentsDeviceInformation DeviceInformation = default(Ptsv2paymentsDeviceInformation), Ptsv2paymentsMerchantInformation MerchantInformation = default(Ptsv2paymentsMerchantInformation), Ptsv2paymentsAggregatorInformation AggregatorInformation = default(Ptsv2paymentsAggregatorInformation), Ptsv2paymentsConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(Ptsv2paymentsConsumerAuthenticationInformation), Ptsv2paymentsPointOfSaleInformation PointOfSaleInformation = default(Ptsv2paymentsPointOfSaleInformation), List<Ptsv2paymentsMerchantDefinedInformation> MerchantDefinedInformation = default(List<Ptsv2paymentsMerchantDefinedInformation>), Ptsv2paymentsMerchantDefinedSecureInformation MerchantDefinedSecureInformation = default(Ptsv2paymentsMerchantDefinedSecureInformation), Ptsv2paymentsInstallmentInformation InstallmentInformation = default(Ptsv2paymentsInstallmentInformation), Ptsv2paymentsTravelInformation TravelInformation = default(Ptsv2paymentsTravelInformation), Ptsv2paymentsHealthCareInformation HealthCareInformation = default(Ptsv2paymentsHealthCareInformation), Ptsv2paymentsPromotionInformation PromotionInformation = default(Ptsv2paymentsPromotionInformation), Ptsv2paymentsTokenInformation TokenInformation = default(Ptsv2paymentsTokenInformation), Ptsv2paymentsInvoiceDetails InvoiceDetails = default(Ptsv2paymentsInvoiceDetails), Ptsv2paymentsProcessorInformation ProcessorInformation = default(Ptsv2paymentsProcessorInformation), Ptsv2paymentsAgreementInformation AgreementInformation = default(Ptsv2paymentsAgreementInformation), Ptsv2paymentsRiskInformation RiskInformation = default(Ptsv2paymentsRiskInformation), Ptsv2paymentsAcquirerInformation AcquirerInformation = default(Ptsv2paymentsAcquirerInformation), Ptsv2paymentsRecurringPaymentInformation RecurringPaymentInformation = default(Ptsv2paymentsRecurringPaymentInformation), Ptsv2paymentsHostedPaymentInformation HostedPaymentInformation = default(Ptsv2paymentsHostedPaymentInformation), Ptsv2paymentsWatchlistScreeningInformation WatchlistScreeningInformation = default(Ptsv2paymentsWatchlistScreeningInformation))
65+
public CreatePaymentRequest(Ptsv2paymentsClientReferenceInformation ClientReferenceInformation = default(Ptsv2paymentsClientReferenceInformation), Ptsv2paymentsProcessingInformation ProcessingInformation = default(Ptsv2paymentsProcessingInformation), Ptsv2paymentsIssuerInformation IssuerInformation = default(Ptsv2paymentsIssuerInformation), Ptsv2paymentsPaymentInformation PaymentInformation = default(Ptsv2paymentsPaymentInformation), Ptsv2paymentsOrderInformation OrderInformation = default(Ptsv2paymentsOrderInformation), Ptsv2paymentsBuyerInformation BuyerInformation = default(Ptsv2paymentsBuyerInformation), Ptsv2paymentsSenderInformation SenderInformation = default(Ptsv2paymentsSenderInformation), Ptsv2paymentsRecipientInformation RecipientInformation = default(Ptsv2paymentsRecipientInformation), Ptsv2paymentsDeviceInformation DeviceInformation = default(Ptsv2paymentsDeviceInformation), Ptsv2paymentsMerchantInformation MerchantInformation = default(Ptsv2paymentsMerchantInformation), Ptsv2paymentsAggregatorInformation AggregatorInformation = default(Ptsv2paymentsAggregatorInformation), Ptsv2paymentsConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(Ptsv2paymentsConsumerAuthenticationInformation), Ptsv2paymentsPointOfSaleInformation PointOfSaleInformation = default(Ptsv2paymentsPointOfSaleInformation), List<Ptsv2paymentsMerchantDefinedInformation> MerchantDefinedInformation = default(List<Ptsv2paymentsMerchantDefinedInformation>), Ptsv2paymentsMerchantDefinedSecureInformation MerchantDefinedSecureInformation = default(Ptsv2paymentsMerchantDefinedSecureInformation), Ptsv2paymentsInstallmentInformation InstallmentInformation = default(Ptsv2paymentsInstallmentInformation), Ptsv2paymentsTravelInformation TravelInformation = default(Ptsv2paymentsTravelInformation), Ptsv2paymentsHealthCareInformation HealthCareInformation = default(Ptsv2paymentsHealthCareInformation), Ptsv2paymentsPromotionInformation PromotionInformation = default(Ptsv2paymentsPromotionInformation), Ptsv2paymentsTokenInformation TokenInformation = default(Ptsv2paymentsTokenInformation), Ptsv2paymentsInvoiceDetails InvoiceDetails = default(Ptsv2paymentsInvoiceDetails), Ptsv2paymentsProcessorInformation ProcessorInformation = default(Ptsv2paymentsProcessorInformation), Ptsv2paymentsAgreementInformation AgreementInformation = default(Ptsv2paymentsAgreementInformation), Ptsv2paymentsRiskInformation RiskInformation = default(Ptsv2paymentsRiskInformation), Ptsv2paymentsAcquirerInformation AcquirerInformation = default(Ptsv2paymentsAcquirerInformation), Ptsv2paymentsRecurringPaymentInformation RecurringPaymentInformation = default(Ptsv2paymentsRecurringPaymentInformation), Ptsv2paymentsUnscheduledPaymentInformation UnscheduledPaymentInformation = default(Ptsv2paymentsUnscheduledPaymentInformation), Ptsv2paymentsHostedPaymentInformation HostedPaymentInformation = default(Ptsv2paymentsHostedPaymentInformation), Ptsv2paymentsWatchlistScreeningInformation WatchlistScreeningInformation = default(Ptsv2paymentsWatchlistScreeningInformation))
6566
{
6667
this.ClientReferenceInformation = ClientReferenceInformation;
6768
this.ProcessingInformation = ProcessingInformation;
@@ -89,6 +90,7 @@ public partial class CreatePaymentRequest : IEquatable<CreatePaymentRequest>, I
8990
this.RiskInformation = RiskInformation;
9091
this.AcquirerInformation = AcquirerInformation;
9192
this.RecurringPaymentInformation = RecurringPaymentInformation;
93+
this.UnscheduledPaymentInformation = UnscheduledPaymentInformation;
9294
this.HostedPaymentInformation = HostedPaymentInformation;
9395
this.WatchlistScreeningInformation = WatchlistScreeningInformation;
9496
}
@@ -250,6 +252,12 @@ public partial class CreatePaymentRequest : IEquatable<CreatePaymentRequest>, I
250252
[DataMember(Name="recurringPaymentInformation", EmitDefaultValue=false)]
251253
public Ptsv2paymentsRecurringPaymentInformation RecurringPaymentInformation { get; set; }
252254

255+
/// <summary>
256+
/// Gets or Sets UnscheduledPaymentInformation
257+
/// </summary>
258+
[DataMember(Name="unscheduledPaymentInformation", EmitDefaultValue=false)]
259+
public Ptsv2paymentsUnscheduledPaymentInformation UnscheduledPaymentInformation { get; set; }
260+
253261
/// <summary>
254262
/// Gets or Sets HostedPaymentInformation
255263
/// </summary>
@@ -296,6 +304,7 @@ public override string ToString()
296304
if (RiskInformation != null) sb.Append(" RiskInformation: ").Append(RiskInformation).Append("\n");
297305
if (AcquirerInformation != null) sb.Append(" AcquirerInformation: ").Append(AcquirerInformation).Append("\n");
298306
if (RecurringPaymentInformation != null) sb.Append(" RecurringPaymentInformation: ").Append(RecurringPaymentInformation).Append("\n");
307+
if (UnscheduledPaymentInformation != null) sb.Append(" UnscheduledPaymentInformation: ").Append(UnscheduledPaymentInformation).Append("\n");
299308
if (HostedPaymentInformation != null) sb.Append(" HostedPaymentInformation: ").Append(HostedPaymentInformation).Append("\n");
300309
if (WatchlistScreeningInformation != null) sb.Append(" WatchlistScreeningInformation: ").Append(WatchlistScreeningInformation).Append("\n");
301310
sb.Append("}\n");
@@ -464,6 +473,11 @@ public bool Equals(CreatePaymentRequest other)
464473
this.RecurringPaymentInformation != null &&
465474
this.RecurringPaymentInformation.Equals(other.RecurringPaymentInformation)
466475
) &&
476+
(
477+
this.UnscheduledPaymentInformation == other.UnscheduledPaymentInformation ||
478+
this.UnscheduledPaymentInformation != null &&
479+
this.UnscheduledPaymentInformation.Equals(other.UnscheduledPaymentInformation)
480+
) &&
467481
(
468482
this.HostedPaymentInformation == other.HostedPaymentInformation ||
469483
this.HostedPaymentInformation != null &&
@@ -539,6 +553,8 @@ public override int GetHashCode()
539553
hash = hash * 59 + this.AcquirerInformation.GetHashCode();
540554
if (this.RecurringPaymentInformation != null)
541555
hash = hash * 59 + this.RecurringPaymentInformation.GetHashCode();
556+
if (this.UnscheduledPaymentInformation != null)
557+
hash = hash * 59 + this.UnscheduledPaymentInformation.GetHashCode();
542558
if (this.HostedPaymentInformation != null)
543559
hash = hash * 59 + this.HostedPaymentInformation.GetHashCode();
544560
if (this.WatchlistScreeningInformation != null)

Model/GenerateCaptureContextRequest.cs

+17-16
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
namespace CyberSource.Model
2626
{
2727
/// <summary>
28-
/// This is a server-to-server API request to generate the capture context that can be used to initiate instance of microform on a acceptance page. The capture context is a digitally signed JWT that provides authentication, one-time keys, and the target origin to the Microform Integration application.
28+
/// This is a server-to-server API request to generate the capture context that can be used to initiate an instance of Microform on an acceptance page. The capture context is a digitally signed JWT that provides authentication, one-time keys, and the target origin to the Microform Integration application.
2929
/// </summary>
3030
[DataContract]
3131
public partial class GenerateCaptureContextRequest : IEquatable<GenerateCaptureContextRequest>, IValidatableObject
@@ -35,14 +35,14 @@ public partial class GenerateCaptureContextRequest : IEquatable<GenerateCapture
3535
/// </summary>
3636
/// <param name="ClientVersion">Specify the version of Microform that you want to use. .</param>
3737
/// <param name="TargetOrigins">The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Microform is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080&lt;br&gt;&lt;br&gt; If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \&quot;https://example.com\&quot;, \&quot;https://basket.example.com\&quot;, \&quot;https://ecom.example.com\&quot; ] .</param>
38-
/// <param name="AllowedCardNetworks">The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA .</param>
39-
/// <param name="CheckoutApiInitialization">CheckoutApiInitialization.</param>
40-
public GenerateCaptureContextRequest(string ClientVersion = default(string), List<string> TargetOrigins = default(List<string>), List<string> AllowedCardNetworks = default(List<string>), Microformv2sessionsCheckoutApiInitialization CheckoutApiInitialization = default(Microformv2sessionsCheckoutApiInitialization))
38+
/// <param name="AllowedCardNetworks">The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA **Important:** - When integrating Microform (Accept Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (Accept Check) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Accept Card) and Microform (Accept Check) at least one card network should be specified in the allowedCardNetworks field in the capture context request. .</param>
39+
/// <param name="AllowedPaymentTypes">The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK &lt;br&gt;&lt;br&gt; .</param>
40+
public GenerateCaptureContextRequest(string ClientVersion = default(string), List<string> TargetOrigins = default(List<string>), List<string> AllowedCardNetworks = default(List<string>), List<string> AllowedPaymentTypes = default(List<string>))
4141
{
4242
this.ClientVersion = ClientVersion;
4343
this.TargetOrigins = TargetOrigins;
4444
this.AllowedCardNetworks = AllowedCardNetworks;
45-
this.CheckoutApiInitialization = CheckoutApiInitialization;
45+
this.AllowedPaymentTypes = AllowedPaymentTypes;
4646
}
4747

4848
/// <summary>
@@ -60,17 +60,18 @@ public partial class GenerateCaptureContextRequest : IEquatable<GenerateCapture
6060
public List<string> TargetOrigins { get; set; }
6161

6262
/// <summary>
63-
/// The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA
63+
/// The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA **Important:** - When integrating Microform (Accept Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (Accept Check) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Accept Card) and Microform (Accept Check) at least one card network should be specified in the allowedCardNetworks field in the capture context request.
6464
/// </summary>
65-
/// <value>The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA </value>
65+
/// <value>The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA **Important:** - When integrating Microform (Accept Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (Accept Check) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Accept Card) and Microform (Accept Check) at least one card network should be specified in the allowedCardNetworks field in the capture context request. </value>
6666
[DataMember(Name="allowedCardNetworks", EmitDefaultValue=false)]
6767
public List<string> AllowedCardNetworks { get; set; }
6868

6969
/// <summary>
70-
/// Gets or Sets CheckoutApiInitialization
70+
/// The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK &lt;br&gt;&lt;br&gt;
7171
/// </summary>
72-
[DataMember(Name="checkoutApiInitialization", EmitDefaultValue=false)]
73-
public Microformv2sessionsCheckoutApiInitialization CheckoutApiInitialization { get; set; }
72+
/// <value>The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK &lt;br&gt;&lt;br&gt; </value>
73+
[DataMember(Name="allowedPaymentTypes", EmitDefaultValue=false)]
74+
public List<string> AllowedPaymentTypes { get; set; }
7475

7576
/// <summary>
7677
/// Returns the string presentation of the object
@@ -83,7 +84,7 @@ public override string ToString()
8384
if (ClientVersion != null) sb.Append(" ClientVersion: ").Append(ClientVersion).Append("\n");
8485
if (TargetOrigins != null) sb.Append(" TargetOrigins: ").Append(TargetOrigins).Append("\n");
8586
if (AllowedCardNetworks != null) sb.Append(" AllowedCardNetworks: ").Append(AllowedCardNetworks).Append("\n");
86-
if (CheckoutApiInitialization != null) sb.Append(" CheckoutApiInitialization: ").Append(CheckoutApiInitialization).Append("\n");
87+
if (AllowedPaymentTypes != null) sb.Append(" AllowedPaymentTypes: ").Append(AllowedPaymentTypes).Append("\n");
8788
sb.Append("}\n");
8889
return sb.ToString();
8990
}
@@ -136,9 +137,9 @@ public bool Equals(GenerateCaptureContextRequest other)
136137
this.AllowedCardNetworks.SequenceEqual(other.AllowedCardNetworks)
137138
) &&
138139
(
139-
this.CheckoutApiInitialization == other.CheckoutApiInitialization ||
140-
this.CheckoutApiInitialization != null &&
141-
this.CheckoutApiInitialization.Equals(other.CheckoutApiInitialization)
140+
this.AllowedPaymentTypes == other.AllowedPaymentTypes ||
141+
this.AllowedPaymentTypes != null &&
142+
this.AllowedPaymentTypes.SequenceEqual(other.AllowedPaymentTypes)
142143
);
143144
}
144145

@@ -159,8 +160,8 @@ public override int GetHashCode()
159160
hash = hash * 59 + this.TargetOrigins.GetHashCode();
160161
if (this.AllowedCardNetworks != null)
161162
hash = hash * 59 + this.AllowedCardNetworks.GetHashCode();
162-
if (this.CheckoutApiInitialization != null)
163-
hash = hash * 59 + this.CheckoutApiInitialization.GetHashCode();
163+
if (this.AllowedPaymentTypes != null)
164+
hash = hash * 59 + this.AllowedPaymentTypes.GetHashCode();
164165
return hash;
165166
}
166167
}

0 commit comments

Comments
 (0)