From f5c4fe5ce5e1172fb7e924cd0754510e8204c436 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sun, 19 May 2024 02:10:45 +0000 Subject: [PATCH 1/2] [CodeFactor] Apply fixes --- Src/VTEX/GoodPractices/BridgeException.cs | 3 +-- .../UnexpectedApiResponseException.cs | 3 +-- .../UpdatePriceInfoSKUException.cs | 3 +-- .../UpdateStockInfoSKUException.cs | 3 +-- Src/VTEX/Transport/Bridge/BridgeAction.cs | 3 +-- Src/VTEX/Transport/Bridge/BridgeItem.cs | 3 +-- Src/VTEX/Transport/CallCenterOperatorData.cs | 5 +--- Src/VTEX/Transport/ClientProfileData.cs | 16 +------------ Src/VTEX/Transport/Item.cs | 3 +-- Src/VTEX/Transport/List.cs | 20 +--------------- Src/VTEX/Transport/Order.cs | 24 +------------------ Src/VTEX/Transport/OrderCancellation.cs | 5 +--- Src/VTEX/Transport/Package.cs | 10 +------- Src/VTEX/Transport/PackageAttachment.cs | 3 +-- Src/VTEX/Transport/Paging.cs | 6 +---- Src/VTEX/Transport/Payment.cs | 20 +--------------- .../PaymentAggregate/ConnectorResponse.cs | 3 +-- Src/VTEX/Transport/PaymentData.cs | 6 +---- Src/VTEX/Transport/Price.cs | 5 ++-- Src/VTEX/Transport/RatesAndBenefitsData.cs | 4 +--- Src/VTEX/Transport/Seller.cs | 5 +--- Src/VTEX/Transport/ShippingData.cs | 5 +--- Src/VTEX/Transport/ShippingNotification.cs | 10 +------- .../Transport/ShippingNotificationPatch.cs | 5 +--- Src/VTEX/Transport/Sla.cs | 8 +------ Src/VTEX/Transport/StatsItem.cs | 4 +--- Src/VTEX/Transport/StatsItemTotal.cs | 10 +------- Src/VTEX/Transport/StatsList.cs | 3 +-- Src/VTEX/Transport/StockInfo.cs | 7 +----- Src/VTEX/Transport/Total.cs | 5 +--- Src/VTEX/Transport/TrackingHints.cs | 7 +----- Src/VTEX/Transport/Transaction.cs | 5 +--- Src/VTEX/VTEXContext.cs | 5 ++-- 33 files changed, 35 insertions(+), 192 deletions(-) diff --git a/Src/VTEX/GoodPractices/BridgeException.cs b/Src/VTEX/GoodPractices/BridgeException.cs index 04007beaf..43b08523b 100644 --- a/Src/VTEX/GoodPractices/BridgeException.cs +++ b/Src/VTEX/GoodPractices/BridgeException.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -20,7 +20,6 @@ namespace VTEX.GoodPractices /// Class BridgeException. This class cannot be inherited. /// /// - [Serializable] public class BridgeException : Exception { diff --git a/Src/VTEX/GoodPractices/UnexpectedApiResponseException.cs b/Src/VTEX/GoodPractices/UnexpectedApiResponseException.cs index 906850350..a5b19ea2b 100644 --- a/Src/VTEX/GoodPractices/UnexpectedApiResponseException.cs +++ b/Src/VTEX/GoodPractices/UnexpectedApiResponseException.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -23,7 +23,6 @@ namespace VTEX.GoodPractices /// /// /// - [Serializable] public class UnexpectedApiResponseException : Exception, IRestException { diff --git a/Src/VTEX/GoodPractices/UpdatePriceInfoSKUException.cs b/Src/VTEX/GoodPractices/UpdatePriceInfoSKUException.cs index daaca6b66..2d0a4b6b6 100644 --- a/Src/VTEX/GoodPractices/UpdatePriceInfoSKUException.cs +++ b/Src/VTEX/GoodPractices/UpdatePriceInfoSKUException.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -20,7 +20,6 @@ namespace VTEX.GoodPractices /// Class UpdatePriceInfoSKUException. This class cannot be inherited. /// /// - [Serializable] public class UpdatePriceInfoSkuException : Exception { diff --git a/Src/VTEX/GoodPractices/UpdateStockInfoSKUException.cs b/Src/VTEX/GoodPractices/UpdateStockInfoSKUException.cs index 2be86041b..4f699806f 100644 --- a/Src/VTEX/GoodPractices/UpdateStockInfoSKUException.cs +++ b/Src/VTEX/GoodPractices/UpdateStockInfoSKUException.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -20,7 +20,6 @@ namespace VTEX.GoodPractices /// Class UpdateStockInfoSKUException. This class cannot be inherited. /// /// - [Serializable] public class UpdateStockInfoSKUException : Exception { diff --git a/Src/VTEX/Transport/Bridge/BridgeAction.cs b/Src/VTEX/Transport/Bridge/BridgeAction.cs index 35883e9a2..7db76f706 100644 --- a/Src/VTEX/Transport/Bridge/BridgeAction.cs +++ b/Src/VTEX/Transport/Bridge/BridgeAction.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -19,7 +19,6 @@ namespace VTEX.Transport.Bridge /// /// Class BridgeAction. This class cannot be inherited. /// - [Serializer(SerializerFormat.Json)] public sealed class BridgeAction { diff --git a/Src/VTEX/Transport/Bridge/BridgeItem.cs b/Src/VTEX/Transport/Bridge/BridgeItem.cs index 0ef1d0128..82a8fe6e8 100644 --- a/Src/VTEX/Transport/Bridge/BridgeItem.cs +++ b/Src/VTEX/Transport/Bridge/BridgeItem.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-16-2023 @@ -23,7 +23,6 @@ namespace VTEX.Transport.Bridge /// /// Class BridgeItem. This class cannot be inherited. /// - [Serializer(SerializerFormat.Json)] public sealed class BridgeItem { diff --git a/Src/VTEX/Transport/CallCenterOperatorData.cs b/Src/VTEX/Transport/CallCenterOperatorData.cs index a2d561c0f..cdc877461 100644 --- a/Src/VTEX/Transport/CallCenterOperatorData.cs +++ b/Src/VTEX/Transport/CallCenterOperatorData.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class CallCenterOperatorData /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -32,7 +31,6 @@ public sealed class CallCenterOperatorData /// Gets or sets the email. /// /// The email. - [JsonProperty("email")] public string Email { get; set; } @@ -40,7 +38,6 @@ public sealed class CallCenterOperatorData /// Gets or sets the name of the user. /// /// The name of the user. - [JsonProperty("userName")] public string UserName { get; set; } } diff --git a/Src/VTEX/Transport/ClientProfileData.cs b/Src/VTEX/Transport/ClientProfileData.cs index 6ed3df5c6..7b7e2748b 100644 --- a/Src/VTEX/Transport/ClientProfileData.cs +++ b/Src/VTEX/Transport/ClientProfileData.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -27,7 +27,6 @@ public sealed class ClientProfileData /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -35,7 +34,6 @@ public sealed class ClientProfileData /// Gets or sets the email. /// /// The email. - [JsonProperty("email")] public string Email { get; set; } @@ -43,7 +41,6 @@ public sealed class ClientProfileData /// Gets or sets the person's first name. /// /// The name of the first. - [JsonProperty("firstName")] public string FirstName { get; set; } @@ -51,7 +48,6 @@ public sealed class ClientProfileData /// Gets or sets the person's last name. /// /// The name of the last. - [JsonProperty("lastName")] public string LastName { get; set; } @@ -85,7 +81,6 @@ public string DocumentTypeInternal /// Gets or sets the document. /// /// The document. - [JsonProperty("document")] public string Document { get; set; } @@ -93,7 +88,6 @@ public string DocumentTypeInternal /// Gets or sets the phone. /// /// The phone. - [JsonProperty("phone")] public string Phone { get; set; } @@ -101,7 +95,6 @@ public string DocumentTypeInternal /// Gets or sets the name of the corporate. /// /// The name of the corporate. - [JsonProperty("corporateName")] public string CorporateName { get; set; } @@ -109,7 +102,6 @@ public string DocumentTypeInternal /// Gets or sets the name of the trade. /// /// The name of the trade. - [JsonProperty("tradeName")] public string TradeName { get; set; } @@ -117,7 +109,6 @@ public string DocumentTypeInternal /// Gets or sets the corporate document. /// /// The corporate document. - [JsonProperty("corporateDocument")] public string CorporateDocument { get; set; } @@ -125,7 +116,6 @@ public string DocumentTypeInternal /// Gets or sets the state inscription. /// /// The state inscription. - [JsonProperty("stateInscription")] public string StateInscription { get; set; } @@ -133,7 +123,6 @@ public string DocumentTypeInternal /// Gets or sets the postal code. /// /// The postal code. - [JsonProperty("postalCode")] public string PostalCode { get; set; } @@ -141,7 +130,6 @@ public string DocumentTypeInternal /// Gets or sets the corporate phone. /// /// The corporate phone. - [JsonProperty("corporatePhone")] public string CorporatePhone { get; set; } @@ -149,7 +137,6 @@ public string DocumentTypeInternal /// Gets or sets a value indicating whether this object is corporate. /// /// true if this object is corporate, false if not. - [JsonProperty("isCorporate")] public bool IsCorporate { get; set; } @@ -157,7 +144,6 @@ public string DocumentTypeInternal /// Gets or sets the identifier of the user profile. /// /// The identifier of the user profile. - [JsonProperty("userProfileId")] public string UserProfileId { get; set; } diff --git a/Src/VTEX/Transport/Item.cs b/Src/VTEX/Transport/Item.cs index e47fdacfa..0894a7acd 100644 --- a/Src/VTEX/Transport/Item.cs +++ b/Src/VTEX/Transport/Item.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -118,7 +118,6 @@ public sealed class Item /// Gets or sets the components. /// /// The components. - [JsonProperty("components")] public Item[] Components { get; set; } diff --git a/Src/VTEX/Transport/List.cs b/Src/VTEX/Transport/List.cs index 590487f09..204726981 100644 --- a/Src/VTEX/Transport/List.cs +++ b/Src/VTEX/Transport/List.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -26,7 +26,6 @@ public sealed class List /// Gets or sets the identifier of the order. /// /// The identifier of the order. - [JsonProperty("orderId")] public string OrderId { get; set; } @@ -34,7 +33,6 @@ public sealed class List /// Gets or sets the creation date. /// /// The creation date. - [JsonProperty("creationDate")] public DateTime CreationDate { get; set; } @@ -42,7 +40,6 @@ public sealed class List /// Gets or sets the name of the client. /// /// The name of the client. - [JsonProperty("clientName")] public string ClientName { get; set; } @@ -50,7 +47,6 @@ public sealed class List /// Gets or sets the items. /// /// The items. - [JsonProperty("items")] public ListItem[] Items { get; set; } @@ -58,7 +54,6 @@ public sealed class List /// Gets or sets the total number of value. /// /// The total number of value. - [JsonProperty("totalValue")] public decimal TotalValue { get; set; } @@ -66,7 +61,6 @@ public sealed class List /// Gets or sets a list of names of the payments. /// /// A list of names of the payments. - [JsonProperty("paymentNames")] public string PaymentNames { get; set; } @@ -74,7 +68,6 @@ public sealed class List /// Gets or sets the status. /// /// The status. - [JsonProperty("status")] public string Status { get; set; } @@ -82,7 +75,6 @@ public sealed class List /// Gets or sets information describing the status. /// /// Information describing the status. - [JsonProperty("statusDescription")] public string StatusDescription { get; set; } @@ -90,7 +82,6 @@ public sealed class List /// Gets or sets the identifier of the market place order. /// /// The identifier of the market place order. - [JsonProperty("marketPlaceOrderId")] public string MarketPlaceOrderId { get; set; } @@ -98,7 +89,6 @@ public sealed class List /// Gets or sets the sequence. /// /// The sequence. - [JsonProperty("sequence")] public int Sequence { get; set; } @@ -106,7 +96,6 @@ public sealed class List /// Gets or sets the sales channel. /// /// The sales channel. - [JsonProperty("salesChannel")] public int SalesChannel { get; set; } @@ -114,7 +103,6 @@ public sealed class List /// Gets or sets the identifier of the affiliate. /// /// The identifier of the affiliate. - [JsonProperty("affiliateId")] public string AffiliateId { get; set; } @@ -122,7 +110,6 @@ public sealed class List /// Gets or sets the origin. /// /// The origin. - [JsonProperty("origin")] public string Origin { get; set; } @@ -130,7 +117,6 @@ public sealed class List /// Gets or sets a value indicating whether the workflow in error state. /// /// true if workflow in error state, false if not. - [JsonProperty("workflowInErrorState")] public bool WorkflowInErrorState { get; set; } @@ -138,7 +124,6 @@ public sealed class List /// Gets or sets a value indicating whether the workflow in retry. /// /// true if workflow in retry, false if not. - [JsonProperty("workflowInRetry")] public bool WorkflowInRetry { get; set; } @@ -146,7 +131,6 @@ public sealed class List /// Gets or sets the last message unread. /// /// The last message unread. - [JsonProperty("lastMessageUnread")] public string LastMessageUnread { get; set; } @@ -154,7 +138,6 @@ public sealed class List /// Gets or sets the shipping estimated date. /// /// The shipping estimated date. - [JsonProperty("ShippingEstimatedDate")] public DateTime? ShippingEstimatedDate { get; set; } @@ -162,7 +145,6 @@ public sealed class List /// Gets or sets a value indicating whether the order is complete. /// /// true if order is complete, false if not. - [JsonProperty("orderIsComplete")] public bool OrderIsComplete { get; set; } diff --git a/Src/VTEX/Transport/Order.cs b/Src/VTEX/Transport/Order.cs index 081d07a95..182f7dc74 100644 --- a/Src/VTEX/Transport/Order.cs +++ b/Src/VTEX/Transport/Order.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -51,7 +51,6 @@ public sealed class Order /// Gets or sets the identifier of the order. /// /// The identifier of the order. - [JsonProperty("orderId")] public string OrderId { get; set; } @@ -59,7 +58,6 @@ public sealed class Order /// Gets or sets the sequence. /// /// The sequence. - [JsonProperty("sequence")] public int Sequence { get; set; } @@ -67,7 +65,6 @@ public sealed class Order /// Gets or sets the identifier of the marketplace order. /// /// The identifier of the marketplace order. - [JsonProperty("marketplaceOrderId")] public string MarketplaceOrderId { get; set; } @@ -82,7 +79,6 @@ public sealed class Order /// Gets or sets the identifier of the seller order. /// /// The identifier of the seller order. - [JsonProperty("sellerOrderId")] public string SellerOrderId { get; set; } @@ -97,7 +93,6 @@ public sealed class Order /// Gets or sets the identifier of the affiliate. /// /// The identifier of the affiliate. - [JsonProperty("affiliateId")] public string AffiliateId { get; set; } @@ -105,7 +100,6 @@ public sealed class Order /// Gets or sets the sales channel. /// /// The sales channel. - [JsonProperty("salesChannel")] public int SalesChannel { get; set; } @@ -120,7 +114,6 @@ public sealed class Order /// Gets or sets the status. /// /// The status. - [JsonProperty("status")] public string StatusInternal { get; set; } @@ -128,7 +121,6 @@ public sealed class Order /// Gets the status pedido. /// /// The status pedido. - [JsonIgnore] public OrderStatus Status => EnumExtensions.GetEnumByInternalValueAttribute(StatusInternal); @@ -137,7 +129,6 @@ public sealed class Order /// Gets or sets information describing the status. /// /// Information describing the status. - [JsonProperty("statusDescription")] public string StatusDescription { get; set; } @@ -145,7 +136,6 @@ public sealed class Order /// Gets or sets the value. /// /// The value. - [JsonProperty("value")] public int Value { get; set; } @@ -158,7 +148,6 @@ public sealed class Order /// Gets or sets the creation date. /// /// The creation date. - [JsonProperty("creationDate")] public DateTime CreationDate { @@ -175,7 +164,6 @@ public DateTime CreationDate /// Gets or sets the Date/Time of the last change. /// /// The last change. - [JsonProperty("lastChange")] public DateTime LastChange { @@ -194,7 +182,6 @@ public DateTime LastChange /// Gets or sets the totals. /// /// The total number of s. - [JsonProperty("totals")] public Total[] Totals { get; set; } @@ -202,7 +189,6 @@ public DateTime LastChange /// Gets or sets the items. /// /// The items. - [JsonProperty("items")] public Item[] Items { get; set; } @@ -217,7 +203,6 @@ public DateTime LastChange /// Gets or sets information describing the client profile. /// /// Information describing the client profile. - [JsonProperty("clientProfileData")] public ClientProfileData ClientProfileData { get; set; } @@ -232,7 +217,6 @@ public DateTime LastChange /// Gets or sets information describing the marketing. /// /// Information describing the marketing. - [JsonProperty("marketingData")] public MarketingData MarketingData { get; set; } @@ -240,7 +224,6 @@ public DateTime LastChange /// Gets or sets information describing the rates and benefits. /// /// Information describing the rates and benefits. - [JsonProperty("ratesAndBenefitsData")] public RatesAndBenefitsData RatesAndBenefitsData { get; set; } @@ -248,7 +231,6 @@ public DateTime LastChange /// Gets or sets information describing the shipping. /// /// Information describing the shipping. - [JsonProperty("shippingData")] public ShippingData ShippingData { get; set; } @@ -256,7 +238,6 @@ public DateTime LastChange /// Gets or sets information describing the payment. /// /// Information describing the payment. - [JsonProperty("paymentData")] public PaymentData PaymentData { get; set; } @@ -264,7 +245,6 @@ public DateTime LastChange /// Gets or sets the package attachment. /// /// The package attachment. - [JsonProperty("packageAttachment")] public PackageAttachment PackageAttachment { get; set; } @@ -272,7 +252,6 @@ public DateTime LastChange /// Gets or sets the sellers. /// /// The sellers. - [JsonProperty("sellers")] public Seller[] Sellers { get; set; } @@ -280,7 +259,6 @@ public DateTime LastChange /// Gets or sets information describing the call center operator. /// /// Information describing the call center operator. - [JsonProperty("callCenterOperatorData")] public CallCenterOperatorData CallCenterOperatorData { get; set; } diff --git a/Src/VTEX/Transport/OrderCancellation.cs b/Src/VTEX/Transport/OrderCancellation.cs index d87e68539..4c6320622 100644 --- a/Src/VTEX/Transport/OrderCancellation.cs +++ b/Src/VTEX/Transport/OrderCancellation.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -26,21 +26,18 @@ public sealed class OrderCancellation /// Gets or sets the identifier of the order. /// /// The identifier of the order. - public string OrderId { get; set; } /// /// Gets or sets the receipt. /// /// The receipt. - public string Receipt { get; set; } /// /// Gets or sets the Date/Time of the date. /// /// The date. - public DateTime Date { get; set; } } } diff --git a/Src/VTEX/Transport/Package.cs b/Src/VTEX/Transport/Package.cs index 4dc6a58cf..b0eb69547 100644 --- a/Src/VTEX/Transport/Package.cs +++ b/Src/VTEX/Transport/Package.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -32,7 +32,6 @@ public sealed class Package /// Gets or sets the invoice number. /// /// The invoice number. - [JsonProperty("invoiceNumber")] public string InvoiceNumber { get; set; } @@ -40,7 +39,6 @@ public sealed class Package /// Gets or sets the invoice value. /// /// The invoice value. - [JsonProperty("invoiceValue")] public int InvoiceValue { get; set; } @@ -48,7 +46,6 @@ public sealed class Package /// Gets or sets the Key of the invoice. /// /// The invoice key. - [JsonProperty("invoiceKey")] public string InvoiceKey { get; set; } @@ -56,7 +53,6 @@ public sealed class Package /// Gets or sets URL of the invoice. /// /// The invoice URL. - [JsonProperty("invoiceUrl")] public string InvoiceUrl { get; set; } @@ -64,7 +60,6 @@ public sealed class Package /// Gets or sets the courier. /// /// The courier. - [JsonProperty("courier")] public string Courier { get; set; } @@ -72,7 +67,6 @@ public sealed class Package /// Gets or sets the tracking number. /// /// The tracking number. - [JsonProperty("trackingNumber")] public string TrackingNumber { get; set; } @@ -80,7 +74,6 @@ public sealed class Package /// Gets or sets the tracking url. /// /// The tracking url. - [JsonProperty("trackingUrl")] public string TrackingUrl { get; set; } @@ -88,7 +81,6 @@ public sealed class Package /// Gets or sets the issuance date. /// /// The issuance date. - [JsonProperty("issuanceDate")] public string IssuanceDate { get; set; } diff --git a/Src/VTEX/Transport/PackageAttachment.cs b/Src/VTEX/Transport/PackageAttachment.cs index 1fa3759c5..6c9aec1f5 100644 --- a/Src/VTEX/Transport/PackageAttachment.cs +++ b/Src/VTEX/Transport/PackageAttachment.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class PackageAttachment /// Gets or sets the packages. /// /// The packages. - [JsonProperty("packages")] public Package[] Packages { get; set; } } diff --git a/Src/VTEX/Transport/Paging.cs b/Src/VTEX/Transport/Paging.cs index b654a62ee..f6cae8634 100644 --- a/Src/VTEX/Transport/Paging.cs +++ b/Src/VTEX/Transport/Paging.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -31,7 +31,6 @@ public sealed class Paging /// Gets or sets the number of. /// /// The total. - [JsonProperty("total")] public int Total { get; set; } @@ -39,7 +38,6 @@ public sealed class Paging /// Gets or sets the pages. /// /// The pages. - [JsonProperty("pages")] public int Pages { get; set; } @@ -47,7 +45,6 @@ public sealed class Paging /// Gets or sets the current page. /// /// The current page. - [JsonProperty("currentPage")] public int CurrentPage { get; set; } @@ -55,7 +52,6 @@ public sealed class Paging /// Gets or sets the per page. /// /// The per page. - [JsonProperty("perPage")] public int PerPage { get; set; } } diff --git a/Src/VTEX/Transport/Payment.cs b/Src/VTEX/Transport/Payment.cs index 62d87b160..0e49de777 100644 --- a/Src/VTEX/Transport/Payment.cs +++ b/Src/VTEX/Transport/Payment.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -28,7 +28,6 @@ public sealed class Payment /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -36,7 +35,6 @@ public sealed class Payment /// Gets or sets the payment system. /// /// The payment system. - [JsonProperty("paymentSystem")] public int PaymentSystem { get; set; } @@ -44,7 +42,6 @@ public sealed class Payment /// Gets or sets the name of the payment system. /// /// The name of the payment system. - [JsonProperty("paymentSystemName")] public string PaymentSystemName { get; set; } @@ -52,7 +49,6 @@ public sealed class Payment /// Gets or sets the value. /// /// The value. - [JsonProperty("value")] public int Value { get; set; } @@ -60,7 +56,6 @@ public sealed class Payment /// Gets or sets the installments. /// /// The installments. - [JsonProperty("installments")] public int Installments { get; set; } @@ -68,7 +63,6 @@ public sealed class Payment /// Gets or sets the reference value. /// /// The reference value. - [JsonProperty("referenceValue")] public int ReferenceValue { get; set; } @@ -76,7 +70,6 @@ public sealed class Payment /// Gets or sets the card holder. /// /// The card holder. - [JsonProperty("cardHolder")] public string CardHolder { get; set; } @@ -84,7 +77,6 @@ public sealed class Payment /// Gets or sets the card number. /// /// The card number. - [JsonProperty("cardNumber")] public string CardNumber { get; set; } @@ -92,7 +84,6 @@ public sealed class Payment /// Gets or sets the first digits. /// /// The first digits. - [JsonProperty("firstDigits")] public string FirstDigits { get; set; } @@ -100,7 +91,6 @@ public sealed class Payment /// Gets or sets the last digits. /// /// The last digits. - [JsonProperty("lastDigits")] public string LastDigits { get; set; } @@ -108,7 +98,6 @@ public sealed class Payment /// Gets or sets the cvv 2. /// /// The cvv 2. - [JsonProperty("cvv2")] public string Cvv2 { get; set; } @@ -116,7 +105,6 @@ public sealed class Payment /// Gets or sets the expire month. /// /// The expire month. - [JsonProperty("expireMonth")] public string ExpireMonth { get; set; } @@ -124,7 +112,6 @@ public sealed class Payment /// Gets or sets the expire year. /// /// The expire year. - [JsonProperty("expireYear")] public string ExpireYear { get; set; } @@ -132,7 +119,6 @@ public sealed class Payment /// Gets or sets URL of the document. /// /// The URL. - [JsonProperty("url")] public string Url { get; set; } @@ -161,7 +147,6 @@ public sealed class Payment /// Gets or sets the redemption code. /// /// The redemption code. - [JsonProperty("redemptionCode")] public NotNullObserver RedemptionCode { get; set; } @@ -169,7 +154,6 @@ public sealed class Payment /// Gets or sets the group. /// /// The group. - [JsonProperty("group")] [Localizable(false)] public string Group { get; set; } @@ -178,7 +162,6 @@ public sealed class Payment /// Gets or sets the tid. /// /// The tid. - [JsonProperty("tid")] public string Tid { get; set; } @@ -193,7 +176,6 @@ public sealed class Payment /// Gets or sets the connector responses. /// /// The connector responses. - [JsonProperty("connectorResponses")] public ConnectorResponses ConnectorResponses { get; set; } diff --git a/Src/VTEX/Transport/PaymentAggregate/ConnectorResponse.cs b/Src/VTEX/Transport/PaymentAggregate/ConnectorResponse.cs index f77fa371b..335b12033 100644 --- a/Src/VTEX/Transport/PaymentAggregate/ConnectorResponse.cs +++ b/Src/VTEX/Transport/PaymentAggregate/ConnectorResponse.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-16-2023 @@ -16,7 +16,6 @@ namespace VTEX.Transport.PaymentAggregate /// /// Class ConnectorResponse. This class cannot be inherited. /// - public sealed class ConnectorResponse { /// diff --git a/Src/VTEX/Transport/PaymentData.cs b/Src/VTEX/Transport/PaymentData.cs index b7af09700..c9252900d 100644 --- a/Src/VTEX/Transport/PaymentData.cs +++ b/Src/VTEX/Transport/PaymentData.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -19,14 +19,12 @@ namespace VTEX.Transport /// /// A payment data. /// - public sealed class PaymentData { /// /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -34,7 +32,6 @@ public sealed class PaymentData /// Gets or sets the gift cards. /// /// The gift cards. - [JsonProperty("giftCards")] public NotNullObserver[] GiftCards { get; set; } @@ -42,7 +39,6 @@ public sealed class PaymentData /// Gets or sets the transactions. /// /// The transactions. - [JsonProperty("transactions")] public Transaction[] Transactions { get; set; } } diff --git a/Src/VTEX/Transport/Price.cs b/Src/VTEX/Transport/Price.cs index f7789e014..5bacd5335 100644 --- a/Src/VTEX/Transport/Price.cs +++ b/Src/VTEX/Transport/Price.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -190,8 +190,7 @@ public int ItemId #endregion #region Serialization helpers - - + /// /// The should serialize list price serialization helper method /// diff --git a/Src/VTEX/Transport/RatesAndBenefitsData.cs b/Src/VTEX/Transport/RatesAndBenefitsData.cs index 185abc315..dad8f95d0 100644 --- a/Src/VTEX/Transport/RatesAndBenefitsData.cs +++ b/Src/VTEX/Transport/RatesAndBenefitsData.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class RatesAndBenefitsData /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -32,7 +31,6 @@ public sealed class RatesAndBenefitsData /// Gets or sets a list of identifiers of the rate and benefits. /// /// A list of identifiers of the rate and benefits. - [JsonProperty("rateAndBenefitsIdentifiers")] public RateAndBenefitsIdentifiers[] RateAndBenefitsIdentifiers { get; set; } } diff --git a/Src/VTEX/Transport/Seller.cs b/Src/VTEX/Transport/Seller.cs index b25166d2e..38e93084b 100644 --- a/Src/VTEX/Transport/Seller.cs +++ b/Src/VTEX/Transport/Seller.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class Seller /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public int Id { get; set; } @@ -32,7 +31,6 @@ public sealed class Seller /// Gets or sets the name. /// /// The name. - [JsonProperty("name")] public string Name { get; set; } @@ -40,7 +38,6 @@ public sealed class Seller /// Gets or sets the logo. /// /// The logo. - [JsonProperty("logo")] public string Logo { get; set; } diff --git a/Src/VTEX/Transport/ShippingData.cs b/Src/VTEX/Transport/ShippingData.cs index 5adfb9504..20d5d0118 100644 --- a/Src/VTEX/Transport/ShippingData.cs +++ b/Src/VTEX/Transport/ShippingData.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class ShippingData /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -32,7 +31,6 @@ public sealed class ShippingData /// Gets or sets the address. /// /// The address. - [JsonProperty("address")] public Address Address { get; set; } @@ -40,7 +38,6 @@ public sealed class ShippingData /// Gets or sets information describing the logistics. /// /// Information describing the logistics. - [JsonProperty("logisticsInfo")] public LogisticsInfo[] LogisticsInfo { get; set; } diff --git a/Src/VTEX/Transport/ShippingNotification.cs b/Src/VTEX/Transport/ShippingNotification.cs index bfde8234d..252bd4242 100644 --- a/Src/VTEX/Transport/ShippingNotification.cs +++ b/Src/VTEX/Transport/ShippingNotification.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -49,7 +49,6 @@ public string TypeInternal /// Gets or sets the invoice number. /// /// The invoice number. - [JsonProperty("invoiceNumber")] public string InvoiceNumber { get; set; } @@ -57,7 +56,6 @@ public string TypeInternal /// Gets or sets the invoice value. /// /// The invoice value. - [JsonProperty("invoiceValue")] public int InvoiceValue { get; set; } @@ -65,7 +63,6 @@ public string TypeInternal /// Gets or sets the Key of the invoice. /// /// The invoice key. - [JsonProperty("invoiceKey")] public string InvoiceKey { get; set; } @@ -73,7 +70,6 @@ public string TypeInternal /// Gets or sets URL of the invoice. /// /// The invoice URL. - [JsonProperty("invoiceUrl")] [Localizable(false)] public string InvoiceUrl { get; set; } @@ -82,7 +78,6 @@ public string TypeInternal /// Gets or sets the courier. /// /// The courier. - [JsonProperty("courier")] public string Courier { get; set; } @@ -90,7 +85,6 @@ public string TypeInternal /// Gets or sets the tracking number. /// /// The tracking number. - [JsonProperty("trackingNumber")] public string TrackingNumber { get; set; } @@ -98,7 +92,6 @@ public string TypeInternal /// Gets or sets the tracking url. /// /// The tracking url. - [JsonProperty("trackingUrl")] [Localizable(false)] public string TrackingUrl { get; set; } @@ -107,7 +100,6 @@ public string TypeInternal /// Gets or sets the issuance date. /// /// The issuance date. - [JsonProperty("issuanceDate")] public string IssuanceDate { get; set; } diff --git a/Src/VTEX/Transport/ShippingNotificationPatch.cs b/Src/VTEX/Transport/ShippingNotificationPatch.cs index d8d2d277c..96f733667 100644 --- a/Src/VTEX/Transport/ShippingNotificationPatch.cs +++ b/Src/VTEX/Transport/ShippingNotificationPatch.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -27,7 +27,6 @@ public sealed class ShippingNotificationPatch /// Gets or sets the tracking number. /// /// The tracking number. - [JsonProperty("trackingNumber")] public string TrackingNumber { get; set; } @@ -35,7 +34,6 @@ public sealed class ShippingNotificationPatch /// Gets or sets the tracking url. /// /// The tracking url. - [JsonProperty("trackingUrl")] public string TrackingUrl { get; set; } @@ -43,7 +41,6 @@ public sealed class ShippingNotificationPatch /// Gets or sets the courier. /// /// The courier. - [JsonProperty("courier")] public string Courier { get; set; } diff --git a/Src/VTEX/Transport/Sla.cs b/Src/VTEX/Transport/Sla.cs index 88c56414e..a910da62b 100644 --- a/Src/VTEX/Transport/Sla.cs +++ b/Src/VTEX/Transport/Sla.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -19,14 +19,12 @@ namespace VTEX.Transport /// /// Service Level Agreement. /// - public sealed class Sla { /// /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -34,7 +32,6 @@ public sealed class Sla /// Gets or sets the name. /// /// The name. - [JsonProperty("name")] public string Name { get; set; } @@ -42,7 +39,6 @@ public sealed class Sla /// Gets or sets the shipping estimate. /// /// The shipping estimate. - [JsonProperty("shippingEstimate")] public string ShippingEstimate { get; set; } @@ -50,7 +46,6 @@ public sealed class Sla /// Gets or sets the delivery window. /// /// The delivery window. - [JsonProperty("deliveryWindow")] public NotNullObserver DeliveryWindow { get; set; } @@ -58,7 +53,6 @@ public sealed class Sla /// Gets or sets the price. /// /// The price. - [JsonProperty("price")] public int Price { get; set; } diff --git a/Src/VTEX/Transport/StatsItem.cs b/Src/VTEX/Transport/StatsItem.cs index 73c77122f..b97faa72c 100644 --- a/Src/VTEX/Transport/StatsItem.cs +++ b/Src/VTEX/Transport/StatsItem.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class StatsItem /// Gets or sets the total number of items. /// /// The total number of items. - [JsonProperty("totalItems")] public StatsItemTotal TotalItems { get; set; } @@ -32,7 +31,6 @@ public sealed class StatsItem /// Gets or sets the total number of value. /// /// The total number of value. - [JsonProperty("totalValue")] public StatsItemTotal TotalValue { get; set; } } diff --git a/Src/VTEX/Transport/StatsItemTotal.cs b/Src/VTEX/Transport/StatsItemTotal.cs index eaafc3528..f3860c867 100644 --- a/Src/VTEX/Transport/StatsItemTotal.cs +++ b/Src/VTEX/Transport/StatsItemTotal.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -25,7 +25,6 @@ public sealed class StatsItemTotal /// Gets or sets the number of. /// /// The count. - [JsonProperty("Count")] public int Count { get; set; } @@ -33,7 +32,6 @@ public sealed class StatsItemTotal /// Gets or sets the maximum. /// /// The maximum value. - [JsonProperty("Max")] public decimal? Max { get; set; } @@ -41,7 +39,6 @@ public sealed class StatsItemTotal /// Gets or sets the mean. /// /// The mean value. - [JsonProperty("Mean")] public decimal? Mean { get; set; } @@ -49,7 +46,6 @@ public sealed class StatsItemTotal /// Gets or sets the minimum. /// /// The minimum value. - [JsonProperty("Min")] public decimal? Min { get; set; } @@ -57,7 +53,6 @@ public sealed class StatsItemTotal /// Gets or sets the missing. /// /// The missing. - [JsonProperty("Missing")] public decimal? Missing { get; set; } @@ -65,7 +60,6 @@ public sealed class StatsItemTotal /// Gets or sets the standard development. /// /// The standard development. - [JsonProperty("StdDev")] public decimal? StdDev { get; set; } @@ -73,7 +67,6 @@ public sealed class StatsItemTotal /// Gets or sets the number of. /// /// The sum. - [JsonProperty("Sum")] public decimal? Sum { get; set; } @@ -81,7 +74,6 @@ public sealed class StatsItemTotal /// Gets or sets the sum of squares. /// /// The total number of of squares. - [JsonProperty("SumOfSquares")] public long? SumOfSquares { get; set; } diff --git a/Src/VTEX/Transport/StatsList.cs b/Src/VTEX/Transport/StatsList.cs index 0871fc933..f5f7b152e 100644 --- a/Src/VTEX/Transport/StatsList.cs +++ b/Src/VTEX/Transport/StatsList.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class StatsList /// Gets or sets the stats. /// /// The stats. - [JsonProperty("stats")] public StatsItem Stats { get; set; } } diff --git a/Src/VTEX/Transport/StockInfo.cs b/Src/VTEX/Transport/StockInfo.cs index 186a4cb74..0347ca2b8 100644 --- a/Src/VTEX/Transport/StockInfo.cs +++ b/Src/VTEX/Transport/StockInfo.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -27,7 +27,6 @@ public sealed class StockInfo /// Gets or sets the identifier of the ware house. /// /// The identifier of the ware house. - [JsonProperty("wareHouseId")] public string WareHouseId { get; set; } @@ -35,7 +34,6 @@ public sealed class StockInfo /// Gets or sets a value indicating whether the unlimited quantity. /// /// true if unlimited quantity, false if not. - [JsonProperty("unlimitedQuantity")] public bool UnlimitedQuantity { get; set; } @@ -43,7 +41,6 @@ public sealed class StockInfo /// Gets or sets the identifier of the item. /// /// The identifier of the item. - [JsonProperty("itemId")] public int ItemId { get; set; } @@ -51,7 +48,6 @@ public sealed class StockInfo /// Gets or sets the quantity. /// /// The quantity. - [JsonProperty("quantity")] public int Quantity { get; set; } @@ -59,7 +55,6 @@ public sealed class StockInfo /// Gets or sets the Date/Time of the date UTC on balance system. /// /// The date UTC on balance system. - [JsonProperty("dateUtcOnBalanceSystem")] public DateTime? DateUtcOnBalanceSystem { get; set; } } diff --git a/Src/VTEX/Transport/Total.cs b/Src/VTEX/Transport/Total.cs index 0fe851559..01e252137 100644 --- a/Src/VTEX/Transport/Total.cs +++ b/Src/VTEX/Transport/Total.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -25,7 +25,6 @@ public sealed class Total /// Gets or sets the identifier. /// /// The identifier. - [JsonProperty("id")] public string Id { get; set; } @@ -33,7 +32,6 @@ public sealed class Total /// Gets or sets the name. /// /// The name. - [JsonProperty("name")] public string Name { get; set; } @@ -41,7 +39,6 @@ public sealed class Total /// Gets or sets the value. /// /// The value. - [JsonProperty("value")] public int Value { get; set; } diff --git a/Src/VTEX/Transport/TrackingHints.cs b/Src/VTEX/Transport/TrackingHints.cs index 3bbb49835..e85bf6b59 100644 --- a/Src/VTEX/Transport/TrackingHints.cs +++ b/Src/VTEX/Transport/TrackingHints.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -19,14 +19,12 @@ namespace VTEX.Transport /// The tracking hints data (used by the Mercado Livre / ME2 (Mercado Envios 2) integration /// The tracking url redirects to the PDF tag for printing /// - public sealed class TrackingHints { /// /// The courier name /// /// The name of the courier. - [JsonProperty("courierName")] public string CourierName { get; set; } @@ -34,7 +32,6 @@ public sealed class TrackingHints /// The tracking id /// /// The tracking identifier. - [JsonProperty("trackingId")] public long TrackingId { get; set; } @@ -42,7 +39,6 @@ public sealed class TrackingHints /// The tracking label /// /// The tracking label. - [JsonProperty("trackingLabel")] public string TrackingLabel { get; set; } @@ -50,7 +46,6 @@ public sealed class TrackingHints /// The tracking url /// /// The tracking URL. - [JsonProperty("trackingUrl")] public string TrackingUrl { get; set; } } diff --git a/Src/VTEX/Transport/Transaction.cs b/Src/VTEX/Transport/Transaction.cs index 23eac7c57..918c9e4be 100644 --- a/Src/VTEX/Transport/Transaction.cs +++ b/Src/VTEX/Transport/Transaction.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -24,7 +24,6 @@ public sealed class Transaction /// Gets or sets a value indicating whether this object is active. /// /// true if this object is active, false if not. - [JsonProperty("isActive")] public bool IsActive { get; set; } @@ -32,7 +31,6 @@ public sealed class Transaction /// Gets or sets the identifier of the transaction. /// /// The identifier of the transaction. - [JsonProperty("transactionId")] public string TransactionId { get; set; } @@ -47,7 +45,6 @@ public sealed class Transaction /// Gets or sets the payments. /// /// The payments. - [JsonProperty("payments")] public Payment[] Payments { get; set; } } diff --git a/Src/VTEX/VTEXContext.cs b/Src/VTEX/VTEXContext.cs index 1b63e07f3..80f51715c 100644 --- a/Src/VTEX/VTEXContext.cs +++ b/Src/VTEX/VTEXContext.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : VTEX // Author : Guilherme Branco Stracini // Created : 01-15-2023 @@ -992,7 +992,6 @@ public async Task GetSkuInventoryAsync(int skuId) /// The stock information. /// A Task representing the asynchronous operation. /// - public async Task UpdateSkuStockAsync(StockInfo stockInfo) { try @@ -1283,7 +1282,7 @@ public IEnumerable GetAllBridgeItems( var total = facets.Single(f => f.Field.Equals(facetName)).Facets[facetValue].ToInt32(); var result = new List(total); - var pages = total / perPage + 1; + var pages = (total / perPage) + 1; for (var x = 0; x < pages; x++) { result.AddRange(GetBridgeItems(query, sort, keywords, x * perPage, perPage)); From 9fc17ec014e4657de6a5efc9c3f4f0daefca13d0 Mon Sep 17 00:00:00 2001 From: "gstraccini[bot]" <44061807+gstraccini[bot]@users.noreply.github.com> Date: Sun, 19 May 2024 02:14:24 +0000 Subject: [PATCH 2/2] CSharpier format --- Src/VTEX/Transport/Price.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/VTEX/Transport/Price.cs b/Src/VTEX/Transport/Price.cs index 5bacd5335..f9570ec8b 100644 --- a/Src/VTEX/Transport/Price.cs +++ b/Src/VTEX/Transport/Price.cs @@ -190,7 +190,7 @@ public int ItemId #endregion #region Serialization helpers - + /// /// The should serialize list price serialization helper method ///