Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitAuto: [FEATURE] Implement SKU Service Value API #340

Closed
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Search Directory
run: |
echo "Searched directory 'Src' and found: $(ls Src)"
env:
TARGET_DIR: Src
- uses: actions/checkout@v2
16 changes: 16 additions & 0 deletions Src/VTEX/PlatformConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@
// Created : 01-15-2023
//
// Last Modified By : Guilherme Branco Stracini

public static class PlatformConstants

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

{ expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

} expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

{ expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

} expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

{ expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

} expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

{ expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

} expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

{ expected

Check failure on line 8 in Src/VTEX/PlatformConstants.cs

View workflow job for this annotation

GitHub Actions / Deep Source Coverage report

} expected
// New endpoints for SKU Service Value API
/// <summary>
/// The SKU Service Value creation endpoint.
/// </summary>
public const string SkuServiceValueCreate = "/api/sku-service-value/create";

/// <summary>
/// The SKU Service Value update endpoint.
/// </summary>
// Last Modified On : 01-16-2023
public const string SkuServiceValueUpdate = "/api/sku-service-value/update";

/// <summary>
/// The SKU Service Value deletion endpoint.
/// </summary>
// ***********************************************************************
// <copyright file="PlatformConstants.cs" company="Guilherme Branco Stracini">
// © 2020 Guilherme Branco Stracini. All rights reserved.
Expand All @@ -18,7 +34,7 @@
/// </summary>
//TODO replace public to internal after remove the old code from Integração Service.
public static class PlatformConstants
{

Check notice on line 37 in Src/VTEX/PlatformConstants.cs

View check run for this annotation

codefactor.io / CodeFactor

Src/VTEX/PlatformConstants.cs#L37

File may only contain a single type. (SA1402)
/// <summary>
/// The order hook
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions Src/VTEX/Transport/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@
// Created : 01-15-2023
//
// Last Modified By : Guilherme Branco Stracini

// New property for SKU Service Value
using Newtonsoft.Json;
/// <summary>
/// Gets or sets the service value for the sku.
/// </summary>
// Last Modified On : 01-16-2023
[JsonProperty("serviceValue")]
// ***********************************************************************
public decimal ServiceValue { get; set; }
// <copyright file="Inventory.cs" company="Guilherme Branco Stracini">
// © 2020 Guilherme Branco Stracini. All rights reserved.
// </copyright>
Expand Down
Loading