Skip to content

Commit

Permalink
Revert "Add public constructors for ShippingLabel and StripeAddress"
Browse files Browse the repository at this point in the history
This reverts commit 60acfa7.
  • Loading branch information
anthonycastelli committed Oct 2, 2018
1 parent a219667 commit 20c35da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
12 changes: 0 additions & 12 deletions Sources/Stripe/Models/Shipping/ShippingLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 0 additions & 14 deletions Sources/Stripe/Models/Shipping/StripeAddress.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20c35da

Please sign in to comment.