Comments (10)
Hi @danFbach. Thank you for your help. We also donβt know how this is possible, but this is not the first such object that can have a dual structure in the new API. Therefore, we were forced to make our implementation of some fields, such as RateResponse_RatedShipment.RatedPackage.
We will make the necessary changes soon
from nopcommerce.
Correction, the oldest occurrence i have of this error is 03/19/2024 10:28:34 PM CST
Also, just checked their API Updates and there is nothing past January...but they don't always post changes.
from nopcommerce.
I think this is also being brought up on the latest comment of #6712
from nopcommerce.
In reference to that comment, they suggest just removing the Alert
object from RateResponse_Response
.
Of course this will work, but is not an ideal solution.
Changing it from
public System.Collections.Generic.ICollection<Response_Alert> Alert { get; set; }
to
public Response_Alert Alert { get; set; }
Also allows it to work.
from nopcommerce.
https://developer.ups.com/api/reference?loc=en_US#operation/Rate
Official UPS documentation still defines Alert
as an array of objects - so the existing implementation should work, and my changes should not fix it.
I've got a ticket open with UPS to get some answers.
from nopcommerce.
It can be EITHER a single object OR an array. wtf. not sure how a deserializer can compensate for that
from nopcommerce.
In fact, multiple fields can be arrays or single objects - probably other fields that aren't listed here too.
If the response contains <= 1 result, it just returns the single object instead of an array with one object.
from nopcommerce.
Closed #7119
from nopcommerce.
This plugin still having issue.
I getting error while RatedShipment property get as object from UPS response.
{ "RateResponse": { "Response": { "ResponseStatus": { "Code": "1", "Description": "Success" }, "Alert": [ { "Code": "113060", "Description": "The weight exceeds the limit for the UPS Letter/Envelope rate and will be rated using the weight." }, { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" } ], "TransactionReference": { "CustomerContext": "testing", "TransactionIdentifier": "iewssoat24d2WM6mXBy9YL" } }, "RatedShipment": { "Service": { "Code": "65", "Description": "" }, "RatedShipmentAlert": [ { "Code": "113060", "Description": "The weight exceeds the limit for the UPS Letter/Envelope rate and will be rated using the weight." }, { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" } ], "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "1.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "126.36" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "126.36" }, "NegotiatedRateCharges": { "TotalCharge": { "CurrencyCode": "USD", "MonetaryValue": "125.10" } }, "RatedPackage": [ { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "Weight": "1.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "1.0" } } ] } } }
from nopcommerce.
Hi @sangeet-shah. This month, UPS updated both the API and documentation; according to the new specification, such problems should no longer exist. We have updated the code to use API version v2403.
Closed #7119
from nopcommerce.
Related Issues (20)
- OveriddenPrice handled as AdditionalCharge when DisplayFromPrices=true
- Upgrading issue. Refactor "Newsletter" migration to work with large number of records HOT 3
- Don't validate an existing shopping cart item attribute if it doesn't have selectable values HOT 1
- No need to implement ILocalizedEntity on the ProductAttributeValuePicture class HOT 1
- Extend Nopcommerce Admin Views Widgets HOT 4
- Refactor ConvertTo Method in GenericListTypeConverter HOT 1
- Upgrading issue. SettingMigration raises an exception when deleting the "pdfsettings.fontfilename" setting
- No files found matching exist in an asset /lib_npm/jquery/jquery.min.js HOT 2
- Copying a product with attribute combinations results in incorrect StockQuantityHistory entry HOT 1
- Error when entering billing address on the checkout page HOT 1
- Fix validation of pickup point lat/lon fields in the admin area HOT 1
- Bug with AutomaticallyAddRequiredProducts when RequireOtherProducts is disabled HOT 1
- Suggestions to improvise filters in the admin area HOT 3
- Allow to filter customers by "active" status
- Error when importing Customers
- Add Taiwan states
- Avalara tax plugin. Address validation updates State to incorrect region from other countries
- Import orders. Set the region depending on the country
- Brevo eCommerce support
- IIS Localhost Issue with css and javascript HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nopcommerce.