Closed GoogleCodeExporter closed 9 years ago
How about this, return a wrapper class that contains the string, and an enum
type,
to tell the user what "Type" of shipping was selected.
GCheckoutShipping ship = Util.GetShippingMethod(N1);
if (ship.ShippingType = ShippingType.FlatRateShippingAdjustment)
//do something crazy here :)
else if (ship.ShippingType = ShippingType.MerchantCalculated)
This way, we really can also return a pointer to the object if needed, or allow
the
class to be extended.
Original comment by joseph.f...@gmail.com
on 3 Apr 2007 at 9:34
I like the idea of extending the NewOrderNotification class. That might work
well
across all types of notifications, as we will no doubt run into similar issues
in the
future.
Original comment by martin.o...@gmail.com
on 3 Apr 2007 at 9:43
Martin
Should we try to get this into the v1.2 release?
Original comment by joseph.f...@gmail.com
on 7 Apr 2007 at 3:46
Let's do this for version 1.3.
Original comment by martin.o...@gmail.com
on 15 Apr 2007 at 12:54
Will do.
Original comment by joseph.f...@gmail.com
on 15 Apr 2007 at 1:06
The first pass has been checked in
It allows for messages to be inherited and then you can add methods and
properties
to that new object.
Original comment by joseph.f...@gmail.com
on 2 Aug 2007 at 6:05
This has been added to the project.
Samples will be build to provide an example.
Original comment by joseph.f...@gmail.com
on 4 Oct 2007 at 12:38
Original issue reported on code.google.com by
martin.o...@gmail.com
on 3 Apr 2007 at 9:23