From 6b9c5ffac559159d3f1f323f537de55fe8ed89f1 Mon Sep 17 00:00:00 2001 From: WorldlineAcquiring Date: Wed, 11 Dec 2024 16:33:31 +0100 Subject: [PATCH] Release 1.0.0. --- ...line.Acquiring.Sdk.IntegrationTests.csproj | 4 +- .../Worldline.Acquiring.Sdk.StrongName.csproj | 4 +- .../Worldline.Acquiring.Sdk.Tests.csproj | 4 +- .../Communication/MetadataProvider.cs | 2 +- .../BalanceInquiriesClient.cs | 55 ++++++++++++++++ .../V1/Acquirer/Merchant/MerchantClient.cs | 7 ++ .../V1/Domain/AmountData.cs | 2 +- .../Domain/ApiAccountVerificationRequest.cs | 2 + .../Domain/ApiAccountVerificationResponse.cs | 15 ++++- .../V1/Domain/ApiActionResponse.cs | 15 ++++- .../V1/Domain/ApiActionResponseForRefund.cs | 15 ++++- .../V1/Domain/ApiBalanceInquiryRequest.cs | 43 ++++++++++++ .../V1/Domain/ApiBalanceInquiryResponse.cs | 65 +++++++++++++++++++ .../V1/Domain/ApiCaptureRequest.cs | 7 ++ .../V1/Domain/ApiCaptureRequestForRefund.cs | 7 ++ .../V1/Domain/ApiIncrementRequest.cs | 2 + .../V1/Domain/ApiPaymentRefundRequest.cs | 2 + .../V1/Domain/ApiPaymentRequest.cs | 2 + .../V1/Domain/ApiPaymentResource.cs | 12 +++- .../V1/Domain/ApiPaymentResponse.cs | 33 +++++++++- .../V1/Domain/ApiPaymentReversalRequest.cs | 2 + .../V1/Domain/ApiPaymentSummaryForResponse.cs | 12 +++- .../V1/Domain/ApiRefundResource.cs | 12 +++- .../V1/Domain/ApiRefundResponse.cs | 34 +++++++++- .../V1/Domain/ApiRefundSummaryForResponse.cs | 12 +++- .../V1/Domain/ApiTechnicalReversalRequest.cs | 2 + .../V1/Domain/ApiTechnicalReversalResponse.cs | 15 ++++- .../V1/Domain/CardDataForDcc.cs | 7 +- .../V1/Domain/CardOnFileData.cs | 2 +- .../V1/Domain/CardPaymentData.cs | 13 ++-- .../CardPaymentDataForBalanceInquiry.cs | 50 ++++++++++++++ .../V1/Domain/CardPaymentDataForRefund.cs | 15 +++-- .../V1/Domain/CardPaymentDataForResource.cs | 5 -- .../V1/Domain/CardPaymentDataForResponse.cs | 5 +- .../Domain/CardPaymentDataForVerification.cs | 14 +++- Worldline.Acquiring.Sdk/V1/Domain/DccData.cs | 5 +- .../V1/Domain/ECommerceDataForResponse.cs | 23 ++++++- .../V1/Domain/EmvDataItem.cs | 18 +++++ .../V1/Domain/GetDCCRateRequest.cs | 6 +- .../V1/Domain/NetworkTokenData.cs | 3 +- .../V1/Domain/PaymentReferences.cs | 5 -- .../V1/Domain/PointOfSaleData.cs | 33 +++++++++- .../V1/Domain/PointOfSaleDataForDcc.cs | 2 +- .../V1/Domain/PointOfSaleDataForResponse.cs | 18 +++++ .../V1/Domain/SubOperation.cs | 22 ++++++- .../V1/Domain/SubOperationForRefund.cs | 20 +++++- .../V1/Domain/SubsequentCardOnFileData.cs | 3 +- .../V1/Domain/TerminalData.cs | 53 +++++++++++++++ .../V1/Domain/ThreeDSecure.cs | 3 +- .../Worldline.Acquiring.Sdk.csproj | 4 +- 50 files changed, 647 insertions(+), 69 deletions(-) create mode 100644 Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/Balanceinquiries/BalanceInquiriesClient.cs create mode 100644 Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryRequest.cs create mode 100644 Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryResponse.cs create mode 100644 Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForBalanceInquiry.cs create mode 100644 Worldline.Acquiring.Sdk/V1/Domain/EmvDataItem.cs create mode 100644 Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForResponse.cs create mode 100644 Worldline.Acquiring.Sdk/V1/Domain/TerminalData.cs diff --git a/Worldline.Acquiring.Sdk.IntegrationTests/Worldline.Acquiring.Sdk.IntegrationTests.csproj b/Worldline.Acquiring.Sdk.IntegrationTests/Worldline.Acquiring.Sdk.IntegrationTests.csproj index 034237c..5ce272f 100644 --- a/Worldline.Acquiring.Sdk.IntegrationTests/Worldline.Acquiring.Sdk.IntegrationTests.csproj +++ b/Worldline.Acquiring.Sdk.IntegrationTests/Worldline.Acquiring.Sdk.IntegrationTests.csproj @@ -3,8 +3,8 @@ net8.0 Worldline.Acquiring.Sdk - 0.1.0 - 0.1.0 + 1.0.0 + 1.0.0 false Worldline Worldline Acquiring .NET SDK integration tests diff --git a/Worldline.Acquiring.Sdk.StrongName/Worldline.Acquiring.Sdk.StrongName.csproj b/Worldline.Acquiring.Sdk.StrongName/Worldline.Acquiring.Sdk.StrongName.csproj index 58028b8..570c681 100644 --- a/Worldline.Acquiring.Sdk.StrongName/Worldline.Acquiring.Sdk.StrongName.csproj +++ b/Worldline.Acquiring.Sdk.StrongName/Worldline.Acquiring.Sdk.StrongName.csproj @@ -3,8 +3,8 @@ netstandard2.0 Worldline.Acquiring.Sdk - 0.1.0 - 0.1.0 + 1.0.0 + 1.0.0 true Worldline Worldline Acquiring .NET SDK diff --git a/Worldline.Acquiring.Sdk.Tests/Worldline.Acquiring.Sdk.Tests.csproj b/Worldline.Acquiring.Sdk.Tests/Worldline.Acquiring.Sdk.Tests.csproj index 9170f0a..10ac497 100644 --- a/Worldline.Acquiring.Sdk.Tests/Worldline.Acquiring.Sdk.Tests.csproj +++ b/Worldline.Acquiring.Sdk.Tests/Worldline.Acquiring.Sdk.Tests.csproj @@ -3,8 +3,8 @@ net8.0 Worldline.Acquiring.Sdk - 0.1.0 - 0.1.0 + 1.0.0 + 1.0.0 false Worldline Worldline Acquiring .NET SDK unit tests diff --git a/Worldline.Acquiring.Sdk/Communication/MetadataProvider.cs b/Worldline.Acquiring.Sdk/Communication/MetadataProvider.cs index db9346b..a14ec32 100644 --- a/Worldline.Acquiring.Sdk/Communication/MetadataProvider.cs +++ b/Worldline.Acquiring.Sdk/Communication/MetadataProvider.cs @@ -94,7 +94,7 @@ internal class ServerMetaInfo .Append(Environment.Version) .ToString(); - private const string SdkVersion = "0.1.0"; + private const string SdkVersion = "1.0.0"; private const string ServerMetaInfoHeader = "X-WL-ServerMetaInfo"; diff --git a/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/Balanceinquiries/BalanceInquiriesClient.cs b/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/Balanceinquiries/BalanceInquiriesClient.cs new file mode 100644 index 0000000..8ac3409 --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/Balanceinquiries/BalanceInquiriesClient.cs @@ -0,0 +1,55 @@ +/* + * This file was automatically generated. + */ +using System.Collections.Generic; +using System.Threading.Tasks; +using Worldline.Acquiring.Sdk.Communication; +using Worldline.Acquiring.Sdk.V1.Domain; + +namespace Worldline.Acquiring.Sdk.V1.Acquirer.Merchant.Balanceinquiries +{ + /// + /// BalanceInquiries client. Thread-safe. + /// + public class BalanceInquiriesClient : ApiResource + { + public BalanceInquiriesClient(ApiResource parent, IDictionary pathContext) : + base(parent, pathContext) + { + } + + /// + /// Resource /processing/v1/{acquirerId}/{merchantId}/balance-inquiries + /// - Balance inquiry + /// + /// ApiBalanceInquiryRequest + /// CallContext + /// ApiBalanceInquiryResponse + /// if the request was not correct and couldn't be processed (HTTP status code 400) + /// if the request was not allowed (HTTP status code 403) + /// if an object was attempted to be referenced that doesn't exist or has been removed, + /// or there was a conflict (HTTP status code 404, 409 or 410) + /// if something went wrong at the Worldline Acquiring platform, + /// the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, + /// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) + /// if the Worldline Acquiring platform returned any other error + public async Task ProcessBalanceInquiry(ApiBalanceInquiryRequest body, CallContext context = null) + { + var uri = InstantiateUri("/processing/v1/{acquirerId}/{merchantId}/balance-inquiries", null); + try + { + return await _communicator.Post( + uri, + null, + null, + body, + context).ConfigureAwait(false); + } + catch (ResponseException e) + { + object errorObject = _communicator.Marshaller.Unmarshal(e.Body); + throw ExceptionFactory.CreateException(e.StatusCode, e.Body, errorObject, context); + } + } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/MerchantClient.cs b/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/MerchantClient.cs index cd81903..30cc0b8 100644 --- a/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/MerchantClient.cs +++ b/Worldline.Acquiring.Sdk/V1/Acquirer/Merchant/MerchantClient.cs @@ -3,6 +3,7 @@ */ using System.Collections.Generic; using Worldline.Acquiring.Sdk.V1.Acquirer.Merchant.Accountverifications; +using Worldline.Acquiring.Sdk.V1.Acquirer.Merchant.Balanceinquiries; using Worldline.Acquiring.Sdk.V1.Acquirer.Merchant.Dynamiccurrencyconversion; using Worldline.Acquiring.Sdk.V1.Acquirer.Merchant.Payments; using Worldline.Acquiring.Sdk.V1.Acquirer.Merchant.Refunds; @@ -38,6 +39,12 @@ public MerchantClient(ApiResource parent, IDictionary pathContex /// AccountVerificationsClient public AccountVerificationsClient AccountVerifications => new AccountVerificationsClient(this, null); + /// + /// Resource /processing/v1/{acquirerId}/{merchantId}/balance-inquiries + /// + /// BalanceInquiriesClient + public BalanceInquiriesClient BalanceInquiries => new BalanceInquiriesClient(this, null); + /// /// Resource /processing/v1/{acquirerId}/{merchantId}/operations/{operationId}/reverse /// diff --git a/Worldline.Acquiring.Sdk/V1/Domain/AmountData.cs b/Worldline.Acquiring.Sdk/V1/Domain/AmountData.cs index 6a28b6b..3161c69 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/AmountData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/AmountData.cs @@ -8,7 +8,7 @@ public class AmountData /// /// Amount of transaction formatted according to card scheme /// specifications. - /// E.g. 100 for 1.00 EUR. Either this or amount must be present. + /// E.g. 100 for 1.00 EUR. /// public long? Amount { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationRequest.cs index 6e71a5f..60c4264 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationRequest.cs @@ -31,6 +31,8 @@ public class ApiAccountVerificationRequest /// public PaymentReferences References { get; set; } + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationResponse.cs index 4213311..0fb100b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiAccountVerificationResponse.cs @@ -28,6 +28,13 @@ public class ApiAccountVerificationResponse /// /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// /// public string Responder { get; set; } @@ -37,7 +44,13 @@ public class ApiAccountVerificationResponse public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponse.cs index 379800c..26a071b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponse.cs @@ -21,6 +21,13 @@ public class ApiActionResponse /// /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// /// public string Responder { get; set; } @@ -30,7 +37,13 @@ public class ApiActionResponse public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponseForRefund.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponseForRefund.cs index d2d8584..e9a35c0 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponseForRefund.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiActionResponseForRefund.cs @@ -21,6 +21,13 @@ public class ApiActionResponseForRefund /// /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// /// public string Responder { get; set; } @@ -30,7 +37,13 @@ public class ApiActionResponseForRefund public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryRequest.cs new file mode 100644 index 0000000..8f2059e --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryRequest.cs @@ -0,0 +1,43 @@ +/* + * This file was automatically generated. + */ +using System; + +namespace Worldline.Acquiring.Sdk.V1.Domain +{ + public class ApiBalanceInquiryRequest + { + /// + /// Card data + /// + public CardPaymentDataForBalanceInquiry CardPaymentData { get; set; } + + /// + /// Merchant Data + /// + public MerchantData Merchant { get; set; } + + /// + /// A globally unique identifier of the operation, generated by you.
+ /// We advise you to submit a UUID or an identifier composed of an arbitrary string + /// and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ /// It's used to detect duplicate requests or to reference an operation in + /// technical reversals. + ///
+ public string OperationId { get; set; } + + /// + /// Payment References + /// + public PaymentReferences References { get; set; } + + public TerminalData TerminalData { get; set; } + + /// + /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ /// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) + /// or in UTC (ex: 2023-10-10T08:00Z) + ///
+ public DateTimeOffset TransactionTimestamp { get; set; } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryResponse.cs new file mode 100644 index 0000000..54ed69c --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiBalanceInquiryResponse.cs @@ -0,0 +1,65 @@ +/* + * This file was automatically generated. + */ +namespace Worldline.Acquiring.Sdk.V1.Domain +{ + public class ApiBalanceInquiryResponse + { + /// + /// Authorization approval code + /// + public string AuthorizationCode { get; set; } + + /// + /// Amount for the operation. + /// + public AmountData AvailableAmount { get; set; } + + /// + /// A globally unique identifier of the operation, generated by you.
+ /// We advise you to submit a UUID or an identifier composed of an arbitrary string + /// and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ /// It's used to detect duplicate requests or to reference an operation in + /// technical reversals. + ///
+ public string OperationId { get; set; } + + /// + /// A set of references returned in responses + /// + public ApiReferencesForResponses References { get; set; } + + /// + /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// + /// + public string Responder { get; set; } + + /// + /// Numeric response code, e.g. 0000, 0005 + /// + public string ResponseCode { get; set; } + + /// + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// + ///
+ public string ResponseCodeCategory { get; set; } + + /// + /// Description of the response code + /// + public string ResponseCodeDescription { get; set; } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequest.cs index 975fad5..7e3cf1e 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequest.cs @@ -38,6 +38,13 @@ public class ApiCaptureRequest ///
public string OperationId { get; set; } + /// + /// Payment References + /// + public PaymentReferences References { get; set; } + + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequestForRefund.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequestForRefund.cs index 1a9b7fe..b6e7518 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequestForRefund.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiCaptureRequestForRefund.cs @@ -16,6 +16,13 @@ public class ApiCaptureRequestForRefund ///
public string OperationId { get; set; } + /// + /// Payment References + /// + public PaymentReferences References { get; set; } + + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiIncrementRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiIncrementRequest.cs index f29d9ca..411e9b6 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiIncrementRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiIncrementRequest.cs @@ -27,6 +27,8 @@ public class ApiIncrementRequest ///
public string OperationId { get; set; } + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRefundRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRefundRequest.cs index 295d354..85b952f 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRefundRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRefundRequest.cs @@ -37,6 +37,8 @@ public class ApiPaymentRefundRequest ///
public PaymentReferences References { get; set; } + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRequest.cs index fae02ba..d791ba6 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentRequest.cs @@ -47,6 +47,8 @@ public class ApiPaymentRequest ///
public PaymentReferences References { get; set; } + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResource.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResource.cs index 2d151e0..c019c4d 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResource.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResource.cs @@ -36,7 +36,17 @@ public class ApiPaymentResource public string RetryAfter { get; set; } /// - /// The status of the payment, refund or credit transfer + /// The status of the payment, refund or credit transfer
+ /// Possible values are: + /// + /// AUTHORIZED + /// NOT_AUTHORIZED + /// PENDING + /// PENDING_CAPTURE + /// CONFIRMED + /// REVERSED + /// CANCELLED + /// ///
public string Status { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResponse.cs index 30de70f..79549b9 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentResponse.cs @@ -2,6 +2,7 @@ * This file was automatically generated. */ using System; +using System.Collections.Generic; namespace Worldline.Acquiring.Sdk.V1.Domain { @@ -9,6 +10,11 @@ public class ApiPaymentResponse { public CardPaymentDataForResponse CardPaymentData { get; set; } + /// + /// EMV data of the card as tag/value pairs. + /// + public IList EmvData { get; set; } + /// /// Authorization approval code /// @@ -35,6 +41,13 @@ public class ApiPaymentResponse /// /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// /// public string Responder { get; set; } @@ -44,7 +57,13 @@ public class ApiPaymentResponse public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } @@ -62,7 +81,17 @@ public class ApiPaymentResponse public string RetryAfter { get; set; } /// - /// The status of the payment, refund or credit transfer + /// The status of the payment, refund or credit transfer
+ /// Possible values are: + /// + /// AUTHORIZED + /// NOT_AUTHORIZED + /// PENDING + /// PENDING_CAPTURE + /// CONFIRMED + /// REVERSED + /// CANCELLED + /// ///
public string Status { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentReversalRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentReversalRequest.cs index 61ad1cc..7b4e790 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentReversalRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentReversalRequest.cs @@ -27,6 +27,8 @@ public class ApiPaymentReversalRequest ///
public AmountData ReversalAmount { get; set; } + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentSummaryForResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentSummaryForResponse.cs index 21aa298..ac107d6 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentSummaryForResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiPaymentSummaryForResponse.cs @@ -26,7 +26,17 @@ public class ApiPaymentSummaryForResponse public string RetryAfter { get; set; } /// - /// The status of the payment, refund or credit transfer + /// The status of the payment, refund or credit transfer
+ /// Possible values are: + /// + /// AUTHORIZED + /// NOT_AUTHORIZED + /// PENDING + /// PENDING_CAPTURE + /// CONFIRMED + /// REVERSED + /// CANCELLED + /// ///
public string Status { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResource.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResource.cs index b573624..040202b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResource.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResource.cs @@ -41,7 +41,17 @@ public class ApiRefundResource public string RetryAfter { get; set; } /// - /// The status of the payment, refund or credit transfer + /// The status of the payment, refund or credit transfer
+ /// Possible values are: + /// + /// AUTHORIZED + /// NOT_AUTHORIZED + /// PENDING + /// PENDING_CAPTURE + /// CONFIRMED + /// REVERSED + /// CANCELLED + /// ///
public string Status { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResponse.cs index 1e90f24..d242f2e 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundResponse.cs @@ -2,6 +2,7 @@ * This file was automatically generated. */ using System; +using System.Collections.Generic; namespace Worldline.Acquiring.Sdk.V1.Domain { @@ -14,6 +15,12 @@ public class ApiRefundResponse public CardPaymentDataForResource CardPaymentData { get; set; } + /// + /// EMV data of the card as tag/value pairs. + /// It is needed when cardEntryMode is CHIP or CONTACTLESS. + /// + public IList EmvData { get; set; } + /// /// A globally unique identifier of the operation, generated by you.
/// We advise you to submit a UUID or an identifier composed of an arbitrary string @@ -40,6 +47,13 @@ public class ApiRefundResponse /// /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// /// public string Responder { get; set; } @@ -49,7 +63,13 @@ public class ApiRefundResponse public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } @@ -67,7 +87,17 @@ public class ApiRefundResponse public string RetryAfter { get; set; } /// - /// The status of the payment, refund or credit transfer + /// The status of the payment, refund or credit transfer
+ /// Possible values are: + /// + /// AUTHORIZED + /// NOT_AUTHORIZED + /// PENDING + /// PENDING_CAPTURE + /// CONFIRMED + /// REVERSED + /// CANCELLED + /// ///
public string Status { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundSummaryForResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundSummaryForResponse.cs index 20129f7..1066ad7 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundSummaryForResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiRefundSummaryForResponse.cs @@ -26,7 +26,17 @@ public class ApiRefundSummaryForResponse public string RetryAfter { get; set; } /// - /// The status of the payment, refund or credit transfer + /// The status of the payment, refund or credit transfer
+ /// Possible values are: + /// + /// AUTHORIZED + /// NOT_AUTHORIZED + /// PENDING + /// PENDING_CAPTURE + /// CONFIRMED + /// REVERSED + /// CANCELLED + /// ///
public string Status { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalRequest.cs index 1fd3869..04d8ccc 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalRequest.cs @@ -21,6 +21,8 @@ public class ApiTechnicalReversalRequest ///
public string Reason { get; set; } + public TerminalData TerminalData { get; set; } + /// /// Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
/// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalResponse.cs index 2d7fb03..b9b55ae 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ApiTechnicalReversalResponse.cs @@ -16,6 +16,13 @@ public class ApiTechnicalReversalResponse /// /// The party that originated the response + /// Possible values are: + /// + /// WORLDLINE + /// ISSUER + /// SCHEME + /// PARTNER + /// /// public string Responder { get; set; } @@ -25,7 +32,13 @@ public class ApiTechnicalReversalResponse public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardDataForDcc.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardDataForDcc.cs index d3b2af2..2d21a5c 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardDataForDcc.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardDataForDcc.cs @@ -20,8 +20,13 @@ public class CardDataForDcc public string Brand { get; set; } /// - /// The country code of the card + /// The ISO 3166 country code of the card /// public string CardCountryCode { get; set; } + + /// + /// Card entry mode used in the transaction + /// + public string CardEntryMode { get; set; } } } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardOnFileData.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardOnFileData.cs index 37f2c2a..5b411ba 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardOnFileData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardOnFileData.cs @@ -8,7 +8,7 @@ public class CardOnFileData public InitialCardOnFileData InitialCardOnFileData { get; set; } /// - /// Indicate wether this is the initial Card on File transaction or not + /// Indicate whether this is the initial Card on File transaction or not /// public bool? IsInitialTransaction { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentData.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentData.cs index 4ee8fd4..4b560da 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentData.cs @@ -6,7 +6,7 @@ namespace Worldline.Acquiring.Sdk.V1.Domain public class CardPaymentData { /// - /// Indicate wether you allow partial approval or not + /// Indicate whether you allow partial approval or not /// public bool? AllowPartialApproval { get; set; } @@ -15,6 +15,11 @@ public class CardPaymentData ///
public string Brand { get; set; } + /// + /// The party responsible for the brand selection. + /// + public string BrandSelector { get; set; } + /// /// If true the transaction will be authorized and captured immediately /// @@ -26,7 +31,7 @@ public class CardPaymentData public PlainCardData CardData { get; set; } /// - /// Card entry mode used in the transaction, defaults to ECOMMERCE + /// Card entry mode used in the transaction /// public string CardEntryMode { get; set; } @@ -38,14 +43,14 @@ public class CardPaymentData public string CardholderVerificationMethod { get; set; } /// - /// Request data for eCommerce and MOTO transactions + /// Request data for eCommerce transactions /// public ECommerceData EcommerceData { get; set; } public NetworkTokenData NetworkTokenData { get; set; } /// - /// Payment terminal request data + /// Request data for Point Of Sale (POS) or "in person" Transaction /// public PointOfSaleData PointOfSaleData { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForBalanceInquiry.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForBalanceInquiry.cs new file mode 100644 index 0000000..b9ed0c0 --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForBalanceInquiry.cs @@ -0,0 +1,50 @@ +/* + * This file was automatically generated. + */ +namespace Worldline.Acquiring.Sdk.V1.Domain +{ + public class CardPaymentDataForBalanceInquiry + { + /// + /// The card brand + /// + public string Brand { get; set; } + + /// + /// The party responsible for the brand selection. + /// + public string BrandSelector { get; set; } + + /// + /// Card data in plain text + /// + public PlainCardData CardData { get; set; } + + /// + /// Card entry mode used in the transaction + /// + public string CardEntryMode { get; set; } + + /// + /// Cardholder verification method used in the transaction + /// + public string CardholderVerificationMethod { get; set; } + + /// + /// Request data for eCommerce transactions + /// + public ECommerceData EcommerceData { get; set; } + + /// + /// Request data for Point Of Sale (POS) or "in person" Transaction + /// + public PointOfSaleData PointOfSaleData { get; set; } + + /// + /// Type of wallet, values are assigned by card schemes, e.g. 101 + /// for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay, + /// 216 for Google Pay and 217 for Samsung Pay + /// + public string WalletId { get; set; } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForRefund.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForRefund.cs index 1ddb021..834a248 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForRefund.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForRefund.cs @@ -10,6 +10,11 @@ public class CardPaymentDataForRefund ///
public string Brand { get; set; } + /// + /// The party responsible for the brand selection. + /// + public string BrandSelector { get; set; } + /// /// If true the transaction will be authorized and captured immediately /// @@ -21,16 +26,16 @@ public class CardPaymentDataForRefund public PlainCardData CardData { get; set; } /// - /// Card entry mode used in the transaction, defaults to ECOMMERCE + /// Card entry mode used in the transaction /// public string CardEntryMode { get; set; } - public NetworkTokenData NetworkTokenData { get; set; } - /// - /// Payment terminal request data + /// Cardholder verification method used in the transaction /// - public PointOfSaleData PointOfSaleData { get; set; } + public string CardholderVerificationMethod { get; set; } + + public NetworkTokenData NetworkTokenData { get; set; } /// /// Type of wallet, values are assigned by card schemes, e.g. 101 diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResource.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResource.cs index 4f58ca8..bc6c569 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResource.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResource.cs @@ -9,10 +9,5 @@ public class CardPaymentDataForResource /// The card brand /// public string Brand { get; set; } - - /// - /// Payment terminal request data - /// - public PointOfSaleData PointOfSaleData { get; set; } } } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResponse.cs index 8a0b926..ede5c15 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForResponse.cs @@ -12,9 +12,6 @@ public class CardPaymentDataForResponse public ECommerceDataForResponse EcommerceData { get; set; } - /// - /// Payment terminal request data - /// - public PointOfSaleData PointOfSaleData { get; set; } + public PointOfSaleDataForResponse PointOfSaleData { get; set; } } } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForVerification.cs b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForVerification.cs index a2b579a..68f9f4d 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForVerification.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/CardPaymentDataForVerification.cs @@ -10,13 +10,18 @@ public class CardPaymentDataForVerification /// public string Brand { get; set; } + /// + /// The party responsible for the brand selection. + /// + public string BrandSelector { get; set; } + /// /// Card data in plain text /// public PlainCardData CardData { get; set; } /// - /// Card entry mode used in the transaction, defaults to ECOMMERCE + /// Card entry mode used in the transaction /// public string CardEntryMode { get; set; } @@ -28,12 +33,17 @@ public class CardPaymentDataForVerification public string CardholderVerificationMethod { get; set; } /// - /// Request data for eCommerce and MOTO transactions + /// Request data for eCommerce transactions /// public ECommerceDataForAccountVerification EcommerceData { get; set; } public NetworkTokenData NetworkTokenData { get; set; } + /// + /// Request data for Point Of Sale (POS) or "in person" Transaction + /// + public PointOfSaleData PointOfSaleData { get; set; } + /// /// Type of wallet, values are assigned by card schemes, e.g. 101 /// for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay, diff --git a/Worldline.Acquiring.Sdk/V1/Domain/DccData.cs b/Worldline.Acquiring.Sdk/V1/Domain/DccData.cs index b02477a..3d3fdb7 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/DccData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/DccData.cs @@ -8,13 +8,12 @@ public class DccData /// /// Amount of transaction formatted according to card scheme /// specifications. - /// E.g. 100 for 1.00 EUR. Either this or amount must be present. + /// E.g. 100 for 1.00 EUR. /// public long? Amount { get; set; } /// - /// Currency conversion rate in decimal notation.
- /// Either this or isoConversionRate must be present + /// Currency conversion rate in decimal notation. ///
public decimal? ConversionRate { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ECommerceDataForResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/ECommerceDataForResponse.cs index 05e5a8e..c5b328b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ECommerceDataForResponse.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ECommerceDataForResponse.cs @@ -6,12 +6,31 @@ namespace Worldline.Acquiring.Sdk.V1.Domain public class ECommerceDataForResponse { /// - /// Result of Address Verification Result + /// Result of Address Verification Result
+ /// Possible values: + /// + /// MATCH + /// ADDRESS_MATCH_POSTAL_CODE_MISMATCH + /// ADDRESS_MISMATCH_POSTAL_CODE_MATCH + /// ADDRESS_MATCH_POSTAL_CODE_NOT_VERIFIED + /// ADDRESS_NOT_VERIFIED_POSTAL_CODE_MATCH + /// MISMATCH + /// ERROR + /// NOT_VERIFIED + /// ///
public string AddressVerificationResult { get; set; } /// - /// Result of card security code check + /// Result of card security code check
+ /// Possible values: + /// + /// MATCH + /// MISMATCH + /// NOT_VERIFIED + /// OMITTED + /// MISSING + /// ///
public string CardSecurityCodeResult { get; set; } } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/EmvDataItem.cs b/Worldline.Acquiring.Sdk/V1/Domain/EmvDataItem.cs new file mode 100644 index 0000000..d719351 --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Domain/EmvDataItem.cs @@ -0,0 +1,18 @@ +/* + * This file was automatically generated. + */ +namespace Worldline.Acquiring.Sdk.V1.Domain +{ + public class EmvDataItem + { + /// + /// EMV tag + /// + public string Tag { get; set; } + + /// + /// EMV value encoded in base64 + /// + public string Value { get; set; } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Domain/GetDCCRateRequest.cs b/Worldline.Acquiring.Sdk/V1/Domain/GetDCCRateRequest.cs index ee981b4..825b33b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/GetDCCRateRequest.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/GetDCCRateRequest.cs @@ -8,7 +8,11 @@ public class GetDCCRateRequest public CardDataForDcc CardPaymentData { get; set; } /// - /// A unique identifier of the operation, generated by the client. + /// A globally unique identifier of the operation, generated by you.
+ /// We advise you to submit a UUID or an identifier composed of an arbitrary string + /// and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ /// It's used to detect duplicate requests or to reference an operation in + /// technical reversals. ///
public string OperationId { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/NetworkTokenData.cs b/Worldline.Acquiring.Sdk/V1/Domain/NetworkTokenData.cs index f1a0bf1..730399b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/NetworkTokenData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/NetworkTokenData.cs @@ -12,8 +12,7 @@ public class NetworkTokenData /// /// Electronic Commerce Indicator
- /// Value returned by the 3D Secure process that indicates the level of - /// authentication.
+ /// Value that indicates the level of authentication.
/// Contains different values depending on the brand. ///
public string Eci { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/PaymentReferences.cs b/Worldline.Acquiring.Sdk/V1/Domain/PaymentReferences.cs index 1a0c7c6..3dba3f9 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/PaymentReferences.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/PaymentReferences.cs @@ -17,10 +17,5 @@ public class PaymentReferences /// The value provided here is returned in the baseTrxType/addlMercData element of the MRX file. ///
public string MerchantReference { get; set; } - - /// - /// Retrieval reference number for transaction, must be AN(12) if provided - /// - public string RetrievalReferenceNumber { get; set; } } } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleData.cs b/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleData.cs index 469e7ac..e6e3f28 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleData.cs @@ -1,13 +1,42 @@ /* * This file was automatically generated. */ +using System.Collections.Generic; + namespace Worldline.Acquiring.Sdk.V1.Domain { public class PointOfSaleData { /// - /// Terminal ID ANS(8) + /// EMV data of the card as tag/value pairs.
+ /// It is needed when cardEntryMode is CHIP or CONTACTLESS. ///
- public string TerminalId { get; set; } + public IList EmvData { get; set; } + + /// + /// Encrypted data containing a PIN + /// + public string EncryptedPinBlock { get; set; } + + /// + /// Indicate whether the request is made after a first one that resulted in a PIN request + /// + public bool? IsResponseToPinRequest { get; set; } + + /// + /// Indicate whether the request is a retry with the same operation ID after a first request that resulted in a PIN request + /// + public bool? IsRetryWithTheSameOperationId { get; set; } + + /// + /// Reference to the master key used to encrypt the PIN + /// + public string PinMasterKeyReference { get; set; } + + /// + /// Track 2 data from the card
+ /// It is needed when cardEntryMode is MAGNETIC_STRIPE. + ///
+ public string Track2Data { get; set; } } } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForDcc.cs b/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForDcc.cs index 5bba214..91de205 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForDcc.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForDcc.cs @@ -6,7 +6,7 @@ namespace Worldline.Acquiring.Sdk.V1.Domain public class PointOfSaleDataForDcc { /// - /// Country code of the terminal + /// ISO 3166 Country code of the terminal /// public string TerminalCountryCode { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForResponse.cs b/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForResponse.cs new file mode 100644 index 0000000..05019ed --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Domain/PointOfSaleDataForResponse.cs @@ -0,0 +1,18 @@ +/* + * This file was automatically generated. + */ +namespace Worldline.Acquiring.Sdk.V1.Domain +{ + public class PointOfSaleDataForResponse + { + /// + /// Last 4 digits of the PAN + /// + public string PanLast4Digits { get; set; } + + /// + /// Number of PIN retries + /// + public int? PinRetryCounter { get; set; } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Domain/SubOperation.cs b/Worldline.Acquiring.Sdk/V1/Domain/SubOperation.cs index e465bbb..e8f261b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/SubOperation.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/SubOperation.cs @@ -27,13 +27,23 @@ public class SubOperation public string OperationId { get; set; } /// - /// Timestamp of the operation in merchant time zone in format + /// Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ /// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) + /// or in UTC (ex: 2023-10-10T08:00Z) /// yyyy-MM-ddTHH:mm:ssZ ///
public DateTimeOffset OperationTimestamp { get; set; } /// - /// The kind of operation + /// The kind of operation.
+ /// Possible values are: + /// + /// AUTHORIZATION + /// CAPTURE + /// REFUND + /// INCREMENT + /// AUTHORIZATION_REVERSAL + /// ///
public string OperationType { get; set; } @@ -43,7 +53,13 @@ public class SubOperation public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/SubOperationForRefund.cs b/Worldline.Acquiring.Sdk/V1/Domain/SubOperationForRefund.cs index 5e9a0e3..4266b7b 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/SubOperationForRefund.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/SubOperationForRefund.cs @@ -22,13 +22,21 @@ public class SubOperationForRefund public string OperationId { get; set; } /// - /// Timestamp of the operation in merchant time zone in format + /// Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ /// It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00) + /// or in UTC (ex: 2023-10-10T08:00Z) /// yyyy-MM-ddTHH:mm:ssZ ///
public DateTimeOffset OperationTimestamp { get; set; } /// - /// The kind of operation + /// The kind of operation
+ /// Possible values are: + /// + /// AUTHORIZATION + /// CAPTURE + /// AUTHORIZATION_REVERSAL + /// ///
public string OperationType { get; set; } @@ -38,7 +46,13 @@ public class SubOperationForRefund public string ResponseCode { get; set; } /// - /// Category of response code. + /// Category of response code.
+ /// Possible values are: + /// + /// APPROVED + /// PARTIALLY_APPROVED + /// DECLINED + /// ///
public string ResponseCodeCategory { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/SubsequentCardOnFileData.cs b/Worldline.Acquiring.Sdk/V1/Domain/SubsequentCardOnFileData.cs index 94ca4f2..75dd9bc 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/SubsequentCardOnFileData.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/SubsequentCardOnFileData.cs @@ -11,7 +11,8 @@ public class SubsequentCardOnFileData public string CardOnFileInitiator { get; set; } /// - /// Scheme transaction ID of initial transaction + /// ID assigned by the scheme to identify a transaction through + /// its whole lifecycle. /// public string InitialSchemeTransactionId { get; set; } diff --git a/Worldline.Acquiring.Sdk/V1/Domain/TerminalData.cs b/Worldline.Acquiring.Sdk/V1/Domain/TerminalData.cs new file mode 100644 index 0000000..126e15d --- /dev/null +++ b/Worldline.Acquiring.Sdk/V1/Domain/TerminalData.cs @@ -0,0 +1,53 @@ +/* + * This file was automatically generated. + */ +using System.Collections.Generic; + +namespace Worldline.Acquiring.Sdk.V1.Domain +{ + public class TerminalData + { + /// + /// Indicate whether the terminal allow one single tap for a contactless transaction + /// followed by a PIN entry if the contactless transaction is refused + /// + public bool? AllowSingleTap { get; set; } + + /// + /// Card reading capabilities of the terminal. + /// + public IList CardReadingCapabilities { get; set; } + + /// + /// Level of security for a terminal activated with the use of a card (Cardholder Activated Terminal) + /// + public string CardholderActivatedTerminalLevel { get; set; } + + /// + /// Indicate whether the terminal is attended or not + /// + public bool? IsAttendedTerminal { get; set; } + + /// + /// The capabilities of the terminal to enter the PIN + /// + /// UNKNOWN : Unspecified or unknown + /// PRESENT : Terminal has PIN entry capability + /// ABSENT : Terminal does not have PIN entry capability + /// MPOS_SOFTWARE_BASED_PIN : Mobile POS with PIN entry capability + /// NOT_OPERATIVE : Terminal has PIN entry capability but PIN pad is not currently operative + /// + /// + public string PinEntryCapability { get; set; } + + /// + /// The identifier of the terminal + /// + public string TerminalId { get; set; } + + /// + /// The location of the terminal + /// + public string TerminalLocation { get; set; } + } +} diff --git a/Worldline.Acquiring.Sdk/V1/Domain/ThreeDSecure.cs b/Worldline.Acquiring.Sdk/V1/Domain/ThreeDSecure.cs index 19295b0..e11d2bf 100644 --- a/Worldline.Acquiring.Sdk/V1/Domain/ThreeDSecure.cs +++ b/Worldline.Acquiring.Sdk/V1/Domain/ThreeDSecure.cs @@ -18,8 +18,7 @@ public class ThreeDSecure /// /// Electronic Commerce Indicator
- /// Value returned by the 3D Secure process that indicates the level of - /// authentication.
+ /// Value that indicates the level of authentication.
/// Contains different values depending on the brand. ///
public string Eci { get; set; } diff --git a/Worldline.Acquiring.Sdk/Worldline.Acquiring.Sdk.csproj b/Worldline.Acquiring.Sdk/Worldline.Acquiring.Sdk.csproj index ccdfcd8..336039a 100644 --- a/Worldline.Acquiring.Sdk/Worldline.Acquiring.Sdk.csproj +++ b/Worldline.Acquiring.Sdk/Worldline.Acquiring.Sdk.csproj @@ -3,8 +3,8 @@ netstandard2.0 Worldline.Acquiring.Sdk - 0.1.0 - 0.1.0 + 1.0.0 + 1.0.0 true Worldline Worldline Acquiring .NET SDK