Giter VIP home page Giter VIP logo

Comments (7)

LucGosso avatar LucGosso commented on June 20, 2024

New model Klarna.Rest.Core.Model.Checkout.Order is using CheckoutMerchantUrls which is Deprecated. But MerchantUrls is not used. Very confusing... Is there no conversion?

    [JsonProperty(PropertyName = "merchant_urls")]
    public CheckoutMerchantUrls MerchantUrls { get; set; }

from kco_rest_dotnet.

LucGosso avatar LucGosso commented on June 20, 2024

Trying to use the captureobject, why does Klarna.Rest.Core.Model.OrderManagement.Order OrderLines not using same orderline object as CaptureObject.OrderLines ? #confused

Does it exists any conversions?

    public async Task Capture(Klarna.Rest.Core.Model.OrderManagement.Order order)
    {
        await Klarna.OrderManagement.CreateCapture(order.OrderId, new CaptureObject()
        {
            CapturedAmount = order.OrderAmount,
            Description = "name of store",
            OrderLines = order.OrderLines
        });
    }

from kco_rest_dotnet.

freethan avatar freethan commented on June 20, 2024

Hi there @LucGosso and thank you for raising these issues. In our effort to maintain backwards compatibility with older models we've inadvertently caused some trouble.

There is an ongoing effort to fix this here #94.
We hope to get the examples updated in the same go. However due to limited availability, we cannot guarantee a delivery date.

A changelog relating to each release can be found here: https://github.com/klarna/kco_rest_dotnet/blob/v3.x/CHANGELOG.md

from kco_rest_dotnet.

LucGosso avatar LucGosso commented on June 20, 2024

thx, seems to me we should go to version 3.1.9 meanwhile. is that a good option @freethan ?

IMHO dont be afraid of bumping a version and introduce breaking changes. looks messy when new api extends old.

from kco_rest_dotnet.

freethan avatar freethan commented on June 20, 2024

Hi again @LucGosso . Yes indeed, I would propose to stay clear from 3.1.10 for now if this is causing troubles for you and wait for a bug fix release, or even better a breaking change version coming out later.

Thanks for the good feedback, we appreciate it 👍

from kco_rest_dotnet.

freethan avatar freethan commented on June 20, 2024

Closing this issue. The plan is to release a v3.1.12 as the final 3.x release without any attempts to maintain compatibility.

from kco_rest_dotnet.

LucGosso avatar LucGosso commented on June 20, 2024

Good decision, if it is breaking, it should be v4. https://semver.org/

from kco_rest_dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.