diff --git a/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingCycle.swift b/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingCycle.swift index 5012d7e6c..3284ca49c 100644 --- a/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingCycle.swift +++ b/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingCycle.swift @@ -61,35 +61,4 @@ public struct BTPayPalBillingCycle: Encodable { case startDate = "start_date" case pricing = "pricing_scheme" } - - // MARK: - Internal Methods - - func parameters() -> [String: Any] { - var parameters: [String: Any] = [ - "number_of_executions": numberOfExecutions, - "trial": isTrial - ] - - if let interval { - parameters["billing_frequency_unit"] = interval.rawValue - } - - if let intervalCount { - parameters["billing_frequency"] = intervalCount - } - - if let sequence { - parameters["sequence"] = sequence - } - - if let startDate { - parameters["start_date"] = startDate - } - - if let pricing { - parameters["pricing_scheme"] = pricing.parameters() - } - - return parameters - } } diff --git a/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingPricing.swift b/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingPricing.swift index 2d18f7b0e..1312d200a 100644 --- a/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingPricing.swift +++ b/Sources/BraintreePayPal/RecurringBillingMetadata/BTPayPalBillingPricing.swift @@ -36,22 +36,4 @@ public struct BTPayPalBillingPricing: Encodable { case pricingModel = "pricing_model" case reloadThresholdAmount = "reload_threshold_amount" } - - // MARK: - Internal Methods - - func parameters() -> [String: Any] { - var parameters: [String: Any] = [ - "pricing_model": pricingModel.rawValue - ] - - if let amount { - parameters["price"] = amount - } - - if let reloadThresholdAmount { - parameters["reload_threshold_amount"] = reloadThresholdAmount - } - - return parameters - } }