Skip to content

Commit

Permalink
Merge pull request #13 from Buratti/master
Browse files Browse the repository at this point in the history
Fixed issues in the Subscriptions API
  • Loading branch information
Andrewangeta authored Dec 9, 2019
2 parents 62174cd + 18a194c commit 3f5dec6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/StripeKit/Billing/Subscriptions/Subscription.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct StripeSubscription: StripeModel {
/// Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
public var pendingInvoiceItemInterval: StripeSubscriptionPendingInvoiceInterval?
/// You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription’s payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide.
public var pendingSetupIntent: String
public var pendingSetupIntent: String?
/// Hash describing the plan the customer is subscribed to. Only set if the subscription contains a single plan.
public var plan: StripePlan?
/// The quantity of the plan to which the customer is subscribed. For example, if your plan is $10/user/month, and your customer has 5 users, you could pass 5 as the quantity to have the customer charged $50 (5 x $10) monthly. Only set if the subscription contains a single plan.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ public struct StripeSubscriptionRoutes: SubscriptionRoutes {

public func create(customer: String,
applicationFeePercent: Decimal?,
billing: StripeInvoiceCollectionMethod?,
billingCycleAnchor: Date?,
billingThresholds: [String: Any]?,
cancelAtPeriodEnd: Bool?,
Expand Down

0 comments on commit 3f5dec6

Please sign in to comment.