Skip to content

Commit

Permalink
Use correct type fort price unit count decimal. (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta authored May 23, 2023
1 parent 85c3d68 commit dd874cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/StripeKit/Products/Prices/Price.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public struct Price: Codable {
/// Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`.
public var transformQuantity: PriceTransformQuantity?
/// The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
public var unitAmountDecimal: PriceTaxBehavior?
public var unitAmountDecimal: String?

public init(id: String,
active: Bool? = nil,
Expand All @@ -72,7 +72,7 @@ public struct Price: Codable {
tiers: [PriceTier]? = nil,
tiersMode: PriceTierMode? = nil,
transformQuantity: PriceTransformQuantity? = nil,
unitAmountDecimal: PriceTaxBehavior? = nil) {
unitAmountDecimal: String? = nil) {
self.id = id
self.active = active
self.currency = currency
Expand Down

0 comments on commit dd874cf

Please sign in to comment.