Git Product home page Git Product logo

mws's People

Contributors

bfacri avatar florianleitmannbrickfox avatar nikolashermann avatar nux avatar rkrx avatar tlronline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mws's Issues

Problem with MarketplaceWebService

Hi there,

first of all thanks for this library.

I run into a problem when listing order items (ListOrderItems).

My problem only affects one special order with Gift Message Text (<GiftMessageText /> tag on XML).
I believe the text inside this tag contains a \r\n\r\n which in this case breaks the logic.

Check line 531 on the Client.php:
https://github.com/brickfox/mws/blob/master/src/MarketplaceWebServiceOrders/Client.php#L531

XML (redacted):

<?xml version="1.0"?>
<ListOrderItemsResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
  <ListOrderItemsResult>
    <OrderItems>
      <OrderItem>
        <QuantityOrdered>1</QuantityOrdered>
        <Title>XXXX</Title>
        <ShippingTax>
          <CurrencyCode>EUR</CurrencyCode>
          <Amount>0.00</Amount>
        </ShippingTax>
        <PromotionDiscount>
          <CurrencyCode>EUR</CurrencyCode>
          <Amount>0.00</Amount>
        </PromotionDiscount>
        <GiftMessageText>First line --> \r\n\r\n <-- Second line</GiftMessageText>
        <ASIN>xxxx</ASIN>
        <SellerSKU>xxxx</SellerSKU>
        <OrderItemId>xxx</OrderItemId>
        <QuantityShipped>1</QuantityShipped>
        <ShippingPrice>
          <CurrencyCode>EUR</CurrencyCode>
          <Amount>2.99</Amount>
        </ShippingPrice>
        <ItemPrice>
          <CurrencyCode>EUR</CurrencyCode>
          <Amount>44.90</Amount>
        </ItemPrice>
        <ItemTax>
          <CurrencyCode>EUR</CurrencyCode>
          <Amount>0.00</Amount>
        </ItemTax>
        <ShippingDiscount>
          <CurrencyCode>EUR</CurrencyCode>
          <Amount>0.00</Amount>
        </ShippingDiscount>
      </OrderItem>
    </OrderItems>
    <AmazonOrderId>xxxx</AmazonOrderId>
  </ListOrderItemsResult>
  <ResponseMetadata>
    <RequestId>xxxx</RequestId>
  </ResponseMetadata>
</ListOrderItemsResponse>

Any plans for PSR4 autoloading?

It would be really nice if this had PSR-4 autoloading. Does anyone know if there has been a fork that converted to PSR-4? I've been working on it, and it could take many hours, so thought I'd ask.

Edit: I realize there is a generator for this code, and perhaps having access to the generator would allow me and others to make changes like going with PSR4 namespaces/autoloading.

MarketplaceWebServiceOrders pagination example?

Hey,

has someone a working example for paginating the MarketplaceWebServiceOrders listOrders or listOrderItems request? The sample is just copy pasted from the normal request sample and won't work (it's not even logical).

It's also hard to just create a while loop because someone at Amazon decided to create different named classes and function names for the paginated request and response (WTF).

I am curious how other people implemented the pagination functionality.

Seriously, who at Amazon thought this is a good SDK design?

GetMyFeesEstimate

This library help me to develop the project fast and easy.
Is there no Model to calculate the estimated fee?

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.