GFS Data example for Ireland

  • 58 Views
  • Last Post 24 July 2018
Iaroslav posted this 20 July 2018

Dear GFS developers, 

We have a problem when it comes to configure the widget for Ireland. For some unknown reasons, it does not accept "IE" as a contry code and "EUR" as a currency code. If you try to set the following json object as a gfs-data attribute, the "No services configured" error will appear. However, if you change "IE" to "GB" and "EUR" to "GBP", the widget will be initialized correctly.

{
  "Request" : {
    "RequestedDeliveryTypes" : [ "dmDropPoint", "dmStandard" ],
    "DateRange" : {
      "DateTo" : "2018-08-02",
      "DateFrom" : "2018-07-19"
    },
    "Session" : {
      "SessionID" : null,
      "ApikeyID" : null
    },
    "Order" : {
      "Contents" : [ {
        "Quantity" : 1,
        "ProductCode" : "1114701",
        "ItemValue" : {
          "CurrencyCode" : "EUR",
          "Value" : 75.5
        },
        "Description" : "Eau de Toilette for her"
      } ],
      "Transit" : {
        "Recipient" : {
          "Person" : {
            "FirstName" : "John",
            "LastName" : "Addams",
            "Title" : "Mr"
          },
          "Location" : {
            "Town" : "Dublin",
            "CountryCode" : {
              "Code" : "IE",
              "Encoding" : "ccISO_3166_1_Alpha2"
            },
            "Postcode" : "D03 P6K7",
            "AddressLineCollection" : [ "1, Coronation Road, Dublin, D03 P6K7" ]
          },
          "ContactDetails" : {
            "Email" : "testemail@the-perfume-shop.com"
          }
        }
      },
      "Value" : {
        "CurrencyCode" : "EUR",
        "Value" : 75.5
      }
    }
  }
}

Please, provide us with an example of correct configuration for IE.

Best regards,

IAROSLAV BARANOV 

Software Engineer (EPAM System)

Order By: Standard | Newest | Votes
Simon.Wilson posted this 20 July 2018

Hi Iaroslav,

 

Can you retry this,i have made a change in the config for you.

This is controlled within the Configuration tool, and you must set EUR as a currency otherwise it will only return GBP.

 

I have done this for you on Next Day Delivery (only) i will send Phil an email with a video of how to make changes on the rest of it if this works for you.

 

Kind regards

Simon

Iaroslav posted this 20 July 2018

Hi Simon,

 

It sounds great, thank you for your assistance. However, I still can't check it because I do not know how to set the "Next Day Delivery" mode in GFS Data. Is it a delivery subtype?  It looks like we can't specify it on our side, only delivery types. 

"RequestedDeliveryTypes" : [ "dmDropPoint", "dmStandard", "dmStandardStore "]

 

Best regards,

IAROSLAV BARANOV 

Software Engineer (EPAM System)

Simon.Wilson posted this 20 July 2018

Hi Iaroslav,

 

The standard delivery and daydefinite delivery are within the dmStandard delivery.

kind regards

Simon

Iaroslav posted this 20 July 2018

Hi Simon,

 

Thank you for the information. However, I still have a few questions. First of all, where the  "Next Day Delivery" mode is? Is is a part of "dmStandard" like "The standard delivery" and "daydefinite delivery"? As far as I can understand now, we have three types within "dmStandard":

  • The standard delivery
  • Daydefinite delivery
  • Next Day Delivery

Am I right?

 

The problem is that you asked me that 

Can you retry this,i have made a change in the config for you.

However, I can't try it now because the other types within "dmStandard" are not configured. The problem still here. 

 

Best regards,

IAROSLAV BARANOV 

Software Engineer (EPAM Systems)

Simon.Wilson posted this 24 July 2018

Hi Simon,

 

Thank you for the information. However, I still have a few questions. First of all, where the  "Next Day Delivery" mode is? Is is a part of "dmStandard" like "The standard delivery" and "daydefinite delivery"? As far as I can understand now, we have three types within "dmStandard":

  • The standard delivery
  • Daydefinite delivery
  • Next Day Delivery

Am I right?

 

The problem is that you asked me that 

Can you retry this,i have made a change in the config for you.

However, I can't try it now because the other types within "dmStandard" are not configured. The problem still here. 

 

Best regards,

IAROSLAV BARANOV 

Software Engineer (EPAM Systems)

 

Hi Iaroslav,

 

The dmStandard type contains all delivery services returned such as a "standard" delivery, "daydefinite" delivery there are only 2 different types returned within the API which the widget manages. the boolean is

<c:IsDayDefinite>False</c:IsDayDefinite> 

If the service returns as "True" then it shows in a calendar if it is "False" then it returns as a standard delivery. the way to check this is if the minDD and maxDD are different the IsDayDefinite will be false however if the minDD and maxDD are the same i.e. 1 and 1 then IsDayDefinite will be returned as true.

Again this is managed by the Widget and it is not something that you need to develop yourself as the functionality is already there.

 

Kind regards

Simon

 

Close