Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mludowise-stripe committed Sep 23, 2024
1 parent 289c7a6 commit 1802618
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@ public class PaymentDetailsViewController: UIViewController {
}
}

/// Delegate of an `PayoutsViewController`
/// Delegate of an `PaymentDetailsViewController`
@available(iOS 15, *)
@_spi(DashboardOnly)
public protocol PaymentDetailsViewControllerDelegate: AnyObject {

/**
Triggered when an error occurs loading the payment details component
- Parameters:
- payouts: The payment details component that errored when loading
- paymentDetails: The payment details component that errored when loading
- error: The error that occurred when loading the component
*/
func paymentDetailsLoadDidFail(_ payouts: PaymentDetailsViewController,
func paymentDetailsLoadDidFail(_ paymentDetails: PaymentDetailsViewController,
withError error: Error)

}

@available(iOS 15, *)
public extension PaymentDetailsViewControllerDelegate {
// Default implementation to make optional
func paymentDetailsLoadDidFail(_ payouts: PaymentDetailsViewController,
func paymentDetailsLoadDidFail(_ paymentDetails: PaymentDetailsViewController,
withError error: Error) { }
}

0 comments on commit 1802618

Please sign in to comment.