Skip to content

Commit

Permalink
Revert various changes made by SwiftFormat that go against the projec…
Browse files Browse the repository at this point in the history
…t structure
  • Loading branch information
winsmith committed Jan 17, 2025
1 parent 8274976 commit 770576a
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions Sources/StripeKit/Products/Prices/Price.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public struct Price: Codable {
tiers: [PriceTier]? = nil,
tiersMode: PriceTierMode? = nil,
transformQuantity: PriceTransformQuantity? = nil,
unitAmountDecimal: String? = nil)
{
unitAmountDecimal: String? = nil) {
self.id = id
self.active = active
self.currency = currency
Expand Down Expand Up @@ -114,8 +113,7 @@ public struct PriceRecurring: Codable {
interval: PlanInterval? = nil,
intervalCount: Int? = nil,
usageType: PlanUsageType? = nil,
meter: String? = nil)
{
meter: String? = nil) {
self.aggregateUsage = aggregateUsage
self.interval = interval
self.intervalCount = intervalCount
Expand Down Expand Up @@ -157,8 +155,7 @@ public struct PriceCurrencyOption: Codable {
taxBehavior: PriceTaxBehavior? = nil,
tiers: [PriceTier]? = nil,
unitAmount: Int? = nil,
unitAmountDecimal: String? = nil)
{
unitAmountDecimal: String? = nil) {
self.customUnitAmount = customUnitAmount
self.taxBehavior = taxBehavior
self.tiers = tiers
Expand All @@ -177,8 +174,7 @@ public struct PriceCurrencyOptionCustomUnitAmount: Codable {

public init(maximum: Int? = nil,
minimum: Int? = nil,
preset: Int? = nil)
{
preset: Int? = nil) {
self.maximum = maximum
self.minimum = minimum
self.preset = preset
Expand Down Expand Up @@ -207,8 +203,7 @@ public struct PriceTier: Codable {
flatAmountDecimal: String? = nil,
unitAmount: Int? = nil,
unitAmountDecimal: String? = nil,
upTo: Int? = nil)
{
upTo: Int? = nil) {
self.flatAmount = flatAmount
self.flatAmountDecimal = flatAmountDecimal
self.unitAmount = unitAmount
Expand All @@ -227,8 +222,7 @@ public struct PriceCustomUnitAmount: Codable {

public init(maximum: Int? = nil,
minimum: Int? = nil,
preset: Int? = nil)
{
preset: Int? = nil) {
self.maximum = maximum
self.minimum = minimum
self.preset = preset
Expand All @@ -247,8 +241,7 @@ public struct PriceTransformQuantity: Codable {
public var round: PriceTransformQuantityRound?

public init(divideBy: Int? = nil,
round: PriceTransformQuantityRound? = nil)
{
round: PriceTransformQuantityRound? = nil) {
self.divideBy = divideBy
self.round = round
}
Expand Down Expand Up @@ -278,8 +271,7 @@ public struct PriceSearchResult: Codable {
hasMore: Bool? = nil,
url: String? = nil,
nextPage: String? = nil,
totalCount: Int? = nil)
{
totalCount: Int? = nil) {
self.object = object
self.data = data
self.hasMore = hasMore
Expand All @@ -298,8 +290,7 @@ public struct PriceList: Codable {
public init(object: String,
hasMore: Bool? = nil,
url: String? = nil,
data: [Price]? = nil)
{
data: [Price]? = nil) {
self.object = object
self.hasMore = hasMore
self.url = url
Expand Down

0 comments on commit 770576a

Please sign in to comment.