Skip to content

Commit

Permalink
Merge pull request #11 from vapor-cloud/unify
Browse files Browse the repository at this point in the history
Unify modules
  • Loading branch information
anthonycastelli authored Aug 29, 2017
2 parents 4303a74 + 0c26b4d commit cd56cfb
Show file tree
Hide file tree
Showing 115 changed files with 131 additions and 158 deletions.
6 changes: 1 addition & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import PackageDescription
let package = Package(
name: "Stripe",
targets: [
Target(name: "Errors"),
Target(name: "Helpers", dependencies: ["Errors"]),
Target(name: "Models", dependencies: ["Helpers"]),
Target(name: "API", dependencies: ["Models", "Errors", "Helpers"]),
Target(name: "Stripe", dependencies: ["API", "Models", "Errors", "Helpers"]),
Target(name: "Stripe"),
],
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 2),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import Foundation
import Vapor
import Helpers
import Node
import HTTP

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@

import Foundation
import Node
import Models
import Helpers
import HTTP
import Errors

public final class AccountRoutes {
let client: StripeClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import Foundation
import Node
import Models

public final class BalanceRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import Foundation
import Node
import HTTP
import Models
import Helpers

public enum ChargeType {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import Foundation
import Node
import HTTP
import Models
import Helpers
import Errors

public final class CouponRoutes {
let client: StripeClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import Foundation
import Node
import HTTP
import Models
import Helpers
import Errors

public final class CustomerRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@

import Foundation
import Node
import Models
import Helpers
import HTTP
import Errors

public final class DisputeRoutes {
let client: StripeClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import Node
import Models
import Helpers


import HTTP

public final class OrderReturnRoutes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import Node
import Models
import Helpers


import HTTP

public final class OrderRoutes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import Foundation
import Node
import HTTP
import Models
import Helpers
import Errors




public final class PlanRoutes {
let client: StripeClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import Node
import Models
import Helpers


import HTTP

public final class ProductRoutes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import Foundation
import Node
import HTTP
import Models
import Helpers
import Errors




public final class RefundRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import Node
import Models
import Helpers


import HTTP

public final class SKURoutes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import Foundation
import Node
import HTTP
import Models
import Helpers
import Errors




public final class SourceRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

import Foundation
import Node
import Models

import HTTP
import Helpers
import Errors



public final class SubscriptionItemRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

import Foundation
import Models

import HTTP
import Helpers

import Node
import Errors


public final class SubscriptionRoutes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import Foundation
import Node
import HTTP
import Models
import Helpers
import Errors




public final class TokenRoutes {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import Foundation
import Vapor
import HTTP
import Models
import Errors

internal enum HTTPMethod {
case get
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class BalanceTransactionItem: StripeModelProtocol {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import Node
import Helpers



/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Charge Model
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Fraud Details
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Outcome
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Refunds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class RefundItem: StripeModelProtocol {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Account Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class AccountList: StripeModelProtocol {
public private(set) var object: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class AdditionalOwner: StripeModelProtocol {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class ExternalAccounts: StripeModelProtocol {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Legal Entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class PayoutSchedule: StripeModelProtocol {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class Verification: StripeModelProtocol {
public private(set) var details: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Coupon Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class CouponList: StripeModelProtocol {
public private(set) var object: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


/**
Customer Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class CustomerList: StripeModelProtocol {
public private(set) var object: String?
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Vapor
import Helpers


public final class Dispute: StripeModelProtocol {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import Foundation
import Vapor
import Helpers

public final class Fee: StripeModelProtocol {

Expand Down
Loading

0 comments on commit cd56cfb

Please sign in to comment.