Commit 3211434a by Rune Madsen

Re-add property and mark as deprecated

parent 98dc449f
......@@ -149,6 +149,11 @@
@property (nonatomic, strong) BUYShippingRate *shippingRate;
/**
* Shipping rate identifier
*/
@property (nonatomic, readonly) NSString *shippingRateId DEPRECATED_MSG_ATTRIBUTE("Use shippingRate.shippingRateIdentifier");
/**
* A discount added to the checkout
* Only one discount can be added to a checkout. Call `updateCheckout:completion:`
* after adding a discount to apply the discount code to the checkout.
......
......@@ -155,6 +155,11 @@
self.sourceIdentifier = dictionary[@"source_identifier"];
}
- (NSString *)shippingRateId
{
return self.shippingRate.shippingRateIdentifier;
}
- (id)jsonValueForValue:(id)value
{
id newValue = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment