Skip to content

Commit

Permalink
add doc strings for Vault class
Browse files Browse the repository at this point in the history
  • Loading branch information
KunJeongPark committed Jul 20, 2023
1 parent e085045 commit 02c2117
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/CardPayments/Models/Vault.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import Foundation

/// This class is used to configure a CardRequest for vaulting
/// CustomerID is optional. When set, this property will be used to associate a payment method with vault of customer with this ID
/// If customerID is not specified, one will be generated by the PayPal API
public struct Vault {

/// Property used to associate a payment method with vault of customer with this ID
public let customerID: String?

/// Creates an instance of a vault object
/// - Parameters:
/// - customerID: The identifier for customer. If not specified, PayPal will create one
public init(customerID: String? = nil) {
self.customerID = customerID
}
Expand Down

0 comments on commit 02c2117

Please sign in to comment.