Comments (5)
Thanks! I just confirmed that this works as I hoped for both the CarrierAccount and ScanForm situations.
from easypost-csharp.
Awesome, thanks! I actually just encountered another similar situation when passing a list of shipments to Client.ScanForm.Create
, so making the broad change to all API models should solve that for me as well. I'll check back after the next release.
from easypost-csharp.
Hello again! Thanks for letting us know; we'll have to discuss the best way to proceed. We made Id
internally-set only to avoid users accidentally modifying it, but it seems we've encountered an edge-case here. We'll let you know what we come up with!
from easypost-csharp.
Hey @johnnyh-tactics , wanted to keep you updated.
After discussing internally, we decided that our locking down of the Id
property was an over-reach, so we will be making the setter for the Id
of any API object public.
Once done, you'll be able to accomplish your API call with something along the lines of:
var order = await client.Order.Create(
new EasyPost.Parameters.Order.Create
{
CarrierAccounts = new List<CarrierAccount>
{
new CarrierAccount
{
Id = "ca_1",
},
new CarrierAccount
{
Id = "ca_2",
},
},
});
This will be available in the next release.
Thanks for bringing this to our attention!
from easypost-csharp.
Hey @johnnyh-tactics , sorry for the delay. This has been added and released in v5.4.0:
https://github.com/EasyPost/easypost-csharp/releases/tag/v5.4.0
https://www.nuget.org/packages/EasyPost-Official/5.4.0
Please let us know if anything else comes up!
from easypost-csharp.
Related Issues (20)
- Add duty_payment object HOT 4
- DeliveredDutyPaid vs Incoterm? HOT 1
- Add Ability to Register Carriers with Custom Flows HOT 7
- Add equality overload for comparison of EasyPostObject and dictionary HOT 1
- Add back ability to instantiate model classes HOT 5
- SSIS scrip task HOT 32
- [Bug]: EasyPost.Models.API.Rate does not include the "rate" field HOT 2
- Add bool verify and bool verify_strict properties to Address object HOT 7
- [Bug]: Shipment Buy for FedEx Intl returns invalid shipment object HOT 2
- [Issue]: API not responding on any call HOT 12
- [Feat]: Update to latest RestSharp 110 HOT 6
- [Bug]: Model constructors were all made internal HOT 5
- [Bug]: Cannot new Option in EasyPost.Parameters.Shipment.Create HOT 1
- [Bug]: Deadlock when blocking on async methods HOT 4
- [Bug]: shipments.all request hangs indefinitely HOT 7
- [Bug]: TimeInTransitDetails.EasyPostEstimatedDeliveryDate has incorrect JSON name mapping HOT 2
- [Bug]: Editing property values on parameters failing subsequent calls to paginated methods. HOT 5
- [Feat]: Change pickup_min_datetime and pickup_max_datetime Shipment Options types to string HOT 6
- [Bug]: RetrieveStatelessRates does not send CarrierAccounts correctly HOT 3
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 easypost-csharp.