From 20c35dabd901c02bc7ad5fffd47f7a8e34595cbc Mon Sep 17 00:00:00 2001 From: Anthony Castelli Date: Tue, 2 Oct 2018 10:03:36 -0700 Subject: [PATCH] Revert "Add public constructors for ShippingLabel and StripeAddress" This reverts commit 60acfa73f747224622473a630a9bf48102f1dc72. --- Sources/Stripe/Models/Shipping/ShippingLabel.swift | 12 ------------ Sources/Stripe/Models/Shipping/StripeAddress.swift | 14 -------------- 2 files changed, 26 deletions(-) diff --git a/Sources/Stripe/Models/Shipping/ShippingLabel.swift b/Sources/Stripe/Models/Shipping/ShippingLabel.swift index 19883f9..7c8c0e6 100644 --- a/Sources/Stripe/Models/Shipping/ShippingLabel.swift +++ b/Sources/Stripe/Models/Shipping/ShippingLabel.swift @@ -18,18 +18,6 @@ public struct ShippingLabel: StripeModel { public var phone: String? public var trackingNumber: String? - public init(address: StripeAddress? = nil, - carrier: String? = nil, - name: String? = nil, - phone: String? = nil, - trackingNumber: String? = nil) { - self.address = address - self.carrier = carrier - self.name = name - self.phone = phone - self.trackingNumber = trackingNumber - } - public enum CodingKeys: String, CodingKey { case address case carrier diff --git a/Sources/Stripe/Models/Shipping/StripeAddress.swift b/Sources/Stripe/Models/Shipping/StripeAddress.swift index 0ec51d1..cfd006a 100644 --- a/Sources/Stripe/Models/Shipping/StripeAddress.swift +++ b/Sources/Stripe/Models/Shipping/StripeAddress.swift @@ -19,20 +19,6 @@ public struct StripeAddress: StripeModel { public var postalCode: String? public var state: String? - public init(city: String? = nil, - country: String? = nil, - line1: String? = nil, - line2: String? = nil, - postalCode: String? = nil, - state: String? = nil) { - self.city = city - self.country = country - self.line1 = line1 - self.line2 = line2 - self.postalCode = postalCode - self.state = state - } - public enum CodingKeys: String, CodingKey { case city case country