Commit 1608ac2f by Rune Madsen

Adding note to BUYCheckout

parent d33f318e
...@@ -239,6 +239,11 @@ ...@@ -239,6 +239,11 @@
@property (nonatomic, copy, readonly) NSString *customerId; @property (nonatomic, copy, readonly) NSString *customerId;
/** /**
* An optional note attached to the order
*/
@property (nonatomic, strong) NSString *note;
/**
* The BUYOrder for a completed checkout * The BUYOrder for a completed checkout
*/ */
@property (nonatomic, strong, readonly) BUYOrder *order; @property (nonatomic, strong, readonly) BUYOrder *order;
......
...@@ -160,6 +160,7 @@ ...@@ -160,6 +160,7 @@
self.updatedAtDate = [dateFormatter dateFromString:dictionary[@"updated_at"]]; self.updatedAtDate = [dateFormatter dateFromString:dictionary[@"updated_at"]];
self.creditCard = [BUYMaskedCreditCard convertObject:dictionary[@"credit_card"]]; self.creditCard = [BUYMaskedCreditCard convertObject:dictionary[@"credit_card"]];
self.customerId = [dictionary[@"customer_id"] copy]; self.customerId = [dictionary[@"customer_id"] copy];
self.note = dictionary[@"note"];
self.privacyPolicyURL = [NSURL buy_urlWithString:dictionary[@"privacy_policy_url"]]; self.privacyPolicyURL = [NSURL buy_urlWithString:dictionary[@"privacy_policy_url"]];
self.refundPolicyURL = [NSURL buy_urlWithString:dictionary[@"refund_policy_url"]]; self.refundPolicyURL = [NSURL buy_urlWithString:dictionary[@"refund_policy_url"]];
......
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