Skip to content

Commit

Permalink
Update CustomerRoutes.swift (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta authored Jul 31, 2023
1 parent f3b6620 commit 54b6280
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public protocol CustomerRoutes: StripeAPIRoute {
/// This request accepts mostly the same arguments as the customer creation call.
///
/// - Parameters:
/// - customer: The id of the customer
/// - address: The customer’s address.
/// - description: An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
/// - email: Customer’s email address. It’s displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters.
Expand All @@ -92,7 +93,8 @@ public protocol CustomerRoutes: StripeAPIRoute {
/// - taxExempt: The customer’s tax exemption. One of none, exempt, or reverse.
/// - expand: An array of properties to expand.
/// - Returns: Returns the customer object if the update succeeded. Returns an error if create parameters are invalid (e.g. specifying an invalid coupon or an invalid source).
func update(address: [String: Any]?,
func update(customer: String,
address: [String: Any]?,
description: String?,
email: String?,
metadata: [String: String]?,
Expand Down Expand Up @@ -275,7 +277,8 @@ public struct StripeCustomerRoutes: CustomerRoutes {
return try await apiHandler.send(method: .GET, path: self.customer + customer, query: queryParams, headers: headers)
}

public func update(address: [String: Any]? = nil,
public func update(customer: String,
address: [String: Any]? = nil,
description: String? = nil,
email: String? = nil,
metadata: [String: String]? = nil,
Expand Down

0 comments on commit 54b6280

Please sign in to comment.