Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v25) Move PaymentElement types #4645

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

davidme-stripe
Copy link
Contributor

Summary

Motivation

Testing

Changelog

Copy link

github-actions bot commented Mar 10, 2025

🚨 New dead code detected in this PR:

PaymentSheetConfiguration.swift:12 warning: Imported module 'StripeUICore' is unused
PaymentElementIntentConfiguration.swift:142 warning: Typealias 'AsyncConfirmHandler' is unused
PaymentElementIntentConfiguration.swift:148 warning: Initializer 'init(mode:paymentMethodTypes:onBehalfOf:confirmHandler2:)' is unused

Please remove the dead code before merging.

If this is intentional, you can bypass this check by adding the label skip dead code check to this PR.

ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with master.

Copy link

github-actions bot commented Mar 10, 2025

⚠️ Public API changes detected:

StripePaymentSheet

- public var appearance: StripePaymentSheet.PaymentSheet.Appearance
- public var appearance: StripePaymentSheet.Appearance
- public var appearance: StripePaymentSheet.PaymentSheet.Appearance
- public var appearance: StripePaymentSheet.Appearance
- public var address: StripePaymentSheet.Address
- public var email: Swift.String?
- public var name: Swift.String?
- public var phone: Swift.String?
- public var phoneNumberForDisplay: Swift.String? {
+ get
+ }
- public init(address: StripePaymentSheet.PaymentSheet.Address = Address(), email: Swift.String? = nil, name: Swift.String? = nil, phone: Swift.String? = nil)
- public static func == (a: StripePaymentSheet.BillingDetails, b: StripePaymentSheet.BillingDetails) -> Swift.Bool
- public var city: Swift.String?
- public var country: Swift.String?
- public var line1: Swift.String?
- public var line2: Swift.String?
- public var postalCode: Swift.String?
- public var state: Swift.String?
- public init(city: Swift.String? = nil, country: Swift.String? = nil, line1: Swift.String? = nil, line2: Swift.String? = nil, postalCode: Swift.String? = nil, state: Swift.String? = nil)
- public static func == (a: StripePaymentSheet.Address, b: StripePaymentSheet.Address) -> Swift.Bool
- case completed
- case canceled
- case failed(error: any Swift.Error)
- public enum ConfirmationResult {
+ case completed
+ case canceled
+ case failed(error: any Swift.Error)
+ }
- public struct Appearance : Swift.Equatable {
- public static let `default`: StripePaymentSheet.PaymentSheet.Appearance
- public init()
- public var font: StripePaymentSheet.PaymentSheet.Appearance.Font
- public var colors: StripePaymentSheet.PaymentSheet.Appearance.Colors
- public var primaryButton: StripePaymentSheet.PaymentSheet.Appearance.PrimaryButton
- public var cornerRadius: CoreFoundation.CGFloat
- public var borderWidth: CoreFoundation.CGFloat
- public var shadow: StripePaymentSheet.PaymentSheet.Appearance.Shadow
- public struct Font : Swift.Equatable {
- public init()
- public var sizeScaleFactor: CoreFoundation.CGFloat {
- get
- set
- }
- public var base: UIKit.UIFont
- public static func == (a: StripePaymentSheet.PaymentSheet.Appearance.Font, b: StripePaymentSheet.PaymentSheet.Appearance.Font) -> Swift.Bool
- }
- public struct Colors : Swift.Equatable {
- public init()
- public var primary: UIKit.UIColor
- public var background: UIKit.UIColor
- public var componentBackground: UIKit.UIColor
- public var componentBorder: UIKit.UIColor
- public var componentDivider: UIKit.UIColor
- public var text: UIKit.UIColor
- public var textSecondary: UIKit.UIColor
- public var componentText: UIKit.UIColor
- public var componentPlaceholderText: UIKit.UIColor
- public var icon: UIKit.UIColor
- public var danger: UIKit.UIColor
- public static func == (a: StripePaymentSheet.PaymentSheet.Appearance.Colors, b: StripePaymentSheet.PaymentSheet.Appearance.Colors) -> Swift.Bool
- }
- public struct Shadow : Swift.Equatable {
- public static var disabled: StripePaymentSheet.PaymentSheet.Appearance.Shadow {
- get
- }
- public var color: UIKit.UIColor
- public var opacity: CoreFoundation.CGFloat
- public var offset: CoreFoundation.CGSize
- public var radius: CoreFoundation.CGFloat
- public init()
- public init(color: UIKit.UIColor, opacity: CoreFoundation.CGFloat, offset: CoreFoundation.CGSize, radius: CoreFoundation.CGFloat)
- public static func == (a: StripePaymentSheet.PaymentSheet.Appearance.Shadow, b: StripePaymentSheet.PaymentSheet.Appearance.Shadow) -> Swift.Bool
- }
- public struct PrimaryButton : Swift.Equatable {
- public init()
- public var backgroundColor: UIKit.UIColor?
- public var textColor: UIKit.UIColor?
- public var disabledBackgroundColor: UIKit.UIColor?
- public var disabledTextColor: UIKit.UIColor?
- public var successBackgroundColor: UIKit.UIColor
- public var successTextColor: UIKit.UIColor?
- public var cornerRadius: CoreFoundation.CGFloat?
- public var borderColor: UIKit.UIColor
- public var borderWidth: CoreFoundation.CGFloat
- public var font: UIKit.UIFont?
- public var shadow: StripePaymentSheet.PaymentSheet.Appearance.Shadow?
- public static func == (a: StripePaymentSheet.PaymentSheet.Appearance.PrimaryButton, b: StripePaymentSheet.PaymentSheet.Appearance.PrimaryButton) -> Swift.Bool
- }
- public static func == (a: StripePaymentSheet.PaymentSheet.Appearance, b: StripePaymentSheet.PaymentSheet.Appearance) -> Swift.Bool
- }
- public enum UserInterfaceStyle : Swift.Int {
- case automatic
- case alwaysLight
- case alwaysDark
- public init?(rawValue: Swift.Int)
- public typealias RawValue = Swift.Int
- public var rawValue: Swift.Int {
- public static let `default`: StripePaymentSheet.Appearance
- public init()
- public var font: StripePaymentSheet.Appearance.Font
- public var colors: StripePaymentSheet.Appearance.Colors
- public var primaryButton: StripePaymentSheet.Appearance.PrimaryButton
- public var cornerRadius: CoreFoundation.CGFloat
- public var borderWidth: CoreFoundation.CGFloat
- public var shadow: StripePaymentSheet.Appearance.Shadow
- public struct Font : Swift.Equatable {
- public init()
- public var sizeScaleFactor: CoreFoundation.CGFloat {
+ set
- public var base: UIKit.UIFont
- public static func == (a: StripePaymentSheet.Appearance.Font, b: StripePaymentSheet.Appearance.Font) -> Swift.Bool
- public enum SavePaymentMethodOptInBehavior {
- case automatic
- case requiresOptIn
- case requiresOptOut
- public static func == (a: StripePaymentSheet.PaymentSheet.SavePaymentMethodOptInBehavior, b: StripePaymentSheet.PaymentSheet.SavePaymentMethodOptInBehavior) -> Swift.Bool
- public func hash(into hasher: inout Swift.Hasher)
- public var hashValue: Swift.Int {
- public struct Colors : Swift.Equatable {
- public init()
- public var primary: UIKit.UIColor
- public var background: UIKit.UIColor
- public var componentBackground: UIKit.UIColor
- public var componentBorder: UIKit.UIColor
- public var componentDivider: UIKit.UIColor
- public var text: UIKit.UIColor
- public var textSecondary: UIKit.UIColor
- public var componentText: UIKit.UIColor
- public var componentPlaceholderText: UIKit.UIColor
- public var icon: UIKit.UIColor
- public var danger: UIKit.UIColor
- public static func == (a: StripePaymentSheet.Appearance.Colors, b: StripePaymentSheet.Appearance.Colors) -> Swift.Bool
+ }
- public struct Shadow : Swift.Equatable {
- public static var disabled: StripePaymentSheet.Appearance.Shadow {
- public var color: UIKit.UIColor
- public var opacity: CoreFoundation.CGFloat
- public var offset: CoreFoundation.CGSize
- public var radius: CoreFoundation.CGFloat
- public init()
- public init(color: UIKit.UIColor, opacity: CoreFoundation.CGFloat, offset: CoreFoundation.CGSize, radius: CoreFoundation.CGFloat)
- public static func == (a: StripePaymentSheet.Appearance.Shadow, b: StripePaymentSheet.Appearance.Shadow) -> Swift.Bool
- public struct PrimaryButton : Swift.Equatable {
- public init()
- public var backgroundColor: UIKit.UIColor?
- public var textColor: UIKit.UIColor?
- public var disabledBackgroundColor: UIKit.UIColor?
- public var disabledTextColor: UIKit.UIColor?
- public var successBackgroundColor: UIKit.UIColor
- public var successTextColor: UIKit.UIColor?
- public var cornerRadius: CoreFoundation.CGFloat?
- public var borderColor: UIKit.UIColor
- public var borderWidth: CoreFoundation.CGFloat
- public var font: UIKit.UIFont?
- public var shadow: StripePaymentSheet.Appearance.Shadow?
- public static func == (a: StripePaymentSheet.Appearance.PrimaryButton, b: StripePaymentSheet.Appearance.PrimaryButton) -> Swift.Bool
+ }
- public static func == (a: StripePaymentSheet.Appearance, b: StripePaymentSheet.Appearance) -> Swift.Bool
- public typealias Appearance = StripePaymentSheet.Appearance
- public typealias UserInterfaceStyle = StripePaymentSheet.UserInterfaceStyle
- public typealias SavePaymentMethodOptInBehavior = StripePaymentSheet.PaymentElement.SavePaymentMethodOptInBehavior
- public var appearance: StripePaymentSheet.PaymentSheet.Appearance
- public var appearance: StripePaymentSheet.Appearance
- public var externalPaymentMethodConfiguration: StripePaymentSheet.PaymentSheet.ExternalPaymentMethodConfiguration?
- public var externalPaymentMethodConfiguration: StripePaymentSheet.PaymentElement.ExternalPaymentMethodConfiguration?
- public struct CustomerConfiguration {
- public let id: Swift.String
- public let ephemeralKeySecret: Swift.String
- public init(id: Swift.String, ephemeralKeySecret: Swift.String)
- }
- public struct ApplePayConfiguration {
- public let merchantId: Swift.String
- public let merchantCountryCode: Swift.String
- public let buttonType: PassKit.PKPaymentButtonType
- public let paymentSummaryItems: [PassKit.PKPaymentSummaryItem]?
- public let customHandlers: StripePaymentSheet.PaymentSheet.ApplePayConfiguration.Handlers?
- public struct Handlers {
- public let paymentRequestHandler: ((PassKit.PKPaymentRequest) -> PassKit.PKPaymentRequest)?
- public let authorizationResultHandler: ((PassKit.PKPaymentAuthorizationResult, @escaping ((PassKit.PKPaymentAuthorizationResult) -> Swift.Void)) -> Swift.Void)?
- public init(paymentRequestHandler: ((PassKit.PKPaymentRequest) -> PassKit.PKPaymentRequest)? = nil, authorizationResultHandler: ((PassKit.PKPaymentAuthorizationResult, @escaping ((PassKit.PKPaymentAuthorizationResult) -> Swift.Void)) -> Swift.Void)? = nil)
- }
- public init(merchantId: Swift.String, merchantCountryCode: Swift.String, buttonType: PassKit.PKPaymentButtonType = .plain, paymentSummaryItems: [PassKit.PKPaymentSummaryItem]? = nil, customHandlers: StripePaymentSheet.PaymentSheet.ApplePayConfiguration.Handlers? = nil)
- }
- public struct Address : Swift.Equatable {
- public var city: Swift.String?
- public var country: Swift.String?
- public var line1: Swift.String?
- public var line2: Swift.String?
- public var postalCode: Swift.String?
- public var state: Swift.String?
- public init(city: Swift.String? = nil, country: Swift.String? = nil, line1: Swift.String? = nil, line2: Swift.String? = nil, postalCode: Swift.String? = nil, state: Swift.String? = nil)
- public static func == (a: StripePaymentSheet.PaymentSheet.Address, b: StripePaymentSheet.PaymentSheet.Address) -> Swift.Bool
- }
- public struct BillingDetails : Swift.Equatable {
- public var address: StripePaymentSheet.PaymentSheet.Address
- public var email: Swift.String?
- public var name: Swift.String?
- public var phone: Swift.String?
- public var phoneNumberForDisplay: Swift.String? {
- get
- }
- public init(address: StripePaymentSheet.PaymentSheet.Address = Address(), email: Swift.String? = nil, name: Swift.String? = nil, phone: Swift.String? = nil)
- public static func == (a: StripePaymentSheet.PaymentSheet.BillingDetails, b: StripePaymentSheet.PaymentSheet.BillingDetails) -> Swift.Bool
- }
- public struct BillingDetailsCollectionConfiguration : Swift.Equatable {
- public enum CollectionMode : Swift.String, Swift.CaseIterable {
- case automatic
- case never
- case always
- public init?(rawValue: Swift.String)
- public typealias AllCases = [StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.CollectionMode]
- public typealias RawValue = Swift.String
- public static var allCases: [StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.CollectionMode] {
- get
- }
- public var rawValue: Swift.String {
- get
- }
- }
- public enum AddressCollectionMode : Swift.String, Swift.CaseIterable {
- case automatic
- case never
- case full
- public init?(rawValue: Swift.String)
- public typealias AllCases = [StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.AddressCollectionMode]
- public typealias RawValue = Swift.String
- public static var allCases: [StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.AddressCollectionMode] {
- get
- }
- public var rawValue: Swift.String {
- get
- }
- }
- public var name: StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.CollectionMode
- public var phone: StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.CollectionMode
- public var email: StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.CollectionMode
- public var address: StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration.AddressCollectionMode
- public var attachDefaultsToPaymentMethod: Swift.Bool
- public static func == (a: StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration, b: StripePaymentSheet.PaymentSheet.BillingDetailsCollectionConfiguration) -> Swift.Bool
- }
- public struct ExternalPaymentMethodConfiguration {
- public init(externalPaymentMethods: [Swift.String], externalPaymentMethodConfirmHandler: @escaping StripePaymentSheet.PaymentSheet.ExternalPaymentMethodConfiguration.ExternalPaymentMethodConfirmHandler)
- public var externalPaymentMethods: [Swift.String]
- public typealias ExternalPaymentMethodConfirmHandler = (_ externalPaymentMethodType: Swift.String, _ billingDetails: StripePayments.STPPaymentMethodBillingDetails, _ completion: @escaping ((StripePaymentSheet.PaymentSheetResult) -> Swift.Void)) -> Swift.Void
- public var externalPaymentMethodConfirmHandler: StripePaymentSheet.PaymentSheet.ExternalPaymentMethodConfiguration.ExternalPaymentMethodConfirmHandler
- }
- public typealias ApplePayConfiguration = StripePaymentSheet.PaymentElement.ApplePayConfiguration
- public typealias CustomerConfiguration = StripePaymentSheet.PaymentElement.CustomerConfiguration
- public typealias CardBrandAcceptance = StripePaymentSheet.PaymentElement.CardBrandAcceptance
- public typealias BillingDetailsCollectionConfiguration = StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration
- public typealias ExternalPaymentMethodConfiguration = StripePaymentSheet.PaymentElement.ExternalPaymentMethodConfiguration
- public typealias Address = StripePaymentSheet.Address
- public typealias BillingDetails = StripePaymentSheet.BillingDetails
- public enum CardBrandAcceptance : Swift.Equatable {
- public enum BrandCategory : Swift.Equatable {
- case visa
- case mastercard
- case amex
- case discover
- public func hash(into hasher: inout Swift.Hasher)
- public static func == (a: StripePaymentSheet.PaymentSheet.CardBrandAcceptance.BrandCategory, b: StripePaymentSheet.PaymentSheet.CardBrandAcceptance.BrandCategory) -> Swift.Bool
- public var hashValue: Swift.Int {
- get
- }
- }
- case all
- case allowed(brands: [StripePaymentSheet.PaymentSheet.CardBrandAcceptance.BrandCategory])
- case disallowed(brands: [StripePaymentSheet.PaymentSheet.CardBrandAcceptance.BrandCategory])
- public static func == (a: StripePaymentSheet.PaymentSheet.CardBrandAcceptance, b: StripePaymentSheet.PaymentSheet.CardBrandAcceptance) -> Swift.Bool
- }
- public init(mode: StripePaymentSheet.PaymentSheet.IntentConfiguration.Mode, paymentMethodTypes: [Swift.String]? = nil, onBehalfOf: Swift.String? = nil, paymentMethodConfigurationId: Swift.String? = nil, confirmHandler: @escaping StripePaymentSheet.PaymentSheet.IntentConfiguration.ConfirmHandler, requireCVCRecollection: Swift.Bool = false)
- public var mode: StripePaymentSheet.PaymentSheet.IntentConfiguration.Mode {
- public init(mode: StripePaymentSheet.PaymentElement.IntentConfiguration.Mode, paymentMethodTypes: [Swift.String]? = nil, onBehalfOf: Swift.String? = nil, paymentMethodConfigurationId: Swift.String? = nil, confirmHandler: @escaping StripePaymentSheet.PaymentElement.IntentConfiguration.ConfirmHandler, requireCVCRecollection: Swift.Bool = false)
- public var mode: StripePaymentSheet.PaymentElement.IntentConfiguration.Mode {
- public var confirmHandler: StripePaymentSheet.PaymentSheet.IntentConfiguration.ConfirmHandler
- public var confirmHandler: StripePaymentSheet.PaymentElement.IntentConfiguration.ConfirmHandler
- case payment(amount: Swift.Int, currency: Swift.String, setupFutureUsage: StripePaymentSheet.PaymentSheet.IntentConfiguration.SetupFutureUsage? = nil, captureMethod: StripePaymentSheet.PaymentSheet.IntentConfiguration.CaptureMethod = .automatic)
- case setup(currency: Swift.String? = nil, setupFutureUsage: StripePaymentSheet.PaymentSheet.IntentConfiguration.SetupFutureUsage = .offSession)
+ case payment(amount: Swift.Int, currency: Swift.String, setupFutureUsage: StripePaymentSheet.PaymentElement.IntentConfiguration.SetupFutureUsage? = nil, captureMethod: StripePaymentSheet.PaymentElement.IntentConfiguration.CaptureMethod = .automatic)
+ case setup(currency: Swift.String? = nil, setupFutureUsage: StripePaymentSheet.PaymentElement.IntentConfiguration.SetupFutureUsage = .offSession)
- public typealias IntentConfiguration = StripePaymentSheet.PaymentElement.IntentConfiguration
+ case automatic
+ case alwaysLight
+ case alwaysDark
- public init?(rawValue: Swift.Int)
- public typealias RawValue = Swift.Int
- public var rawValue: Swift.Int {
+ get
+ }
- public enum SavePaymentMethodOptInBehavior {
+ case automatic
+ case requiresOptIn
+ case requiresOptOut
- public static func == (a: StripePaymentSheet.PaymentElement.SavePaymentMethodOptInBehavior, b: StripePaymentSheet.PaymentElement.SavePaymentMethodOptInBehavior) -> Swift.Bool
- public func hash(into hasher: inout Swift.Hasher)
- public var hashValue: Swift.Int {
+ get
+ }
+ }
- public struct CustomerConfiguration {
- public let id: Swift.String
- public let ephemeralKeySecret: Swift.String
- public init(id: Swift.String, ephemeralKeySecret: Swift.String)
+ }
- public struct ApplePayConfiguration {
- public let merchantId: Swift.String
- public let merchantCountryCode: Swift.String
- public let buttonType: PassKit.PKPaymentButtonType
- public let paymentSummaryItems: [PassKit.PKPaymentSummaryItem]?
- public let customHandlers: StripePaymentSheet.PaymentElement.ApplePayConfiguration.Handlers?
- public struct Handlers {
- public let paymentRequestHandler: ((PassKit.PKPaymentRequest) -> PassKit.PKPaymentRequest)?
- public let authorizationResultHandler: ((PassKit.PKPaymentAuthorizationResult, @escaping ((PassKit.PKPaymentAuthorizationResult) -> Swift.Void)) -> Swift.Void)?
- public init(paymentRequestHandler: ((PassKit.PKPaymentRequest) -> PassKit.PKPaymentRequest)? = nil, authorizationResultHandler: ((PassKit.PKPaymentAuthorizationResult, @escaping ((PassKit.PKPaymentAuthorizationResult) -> Swift.Void)) -> Swift.Void)? = nil)
+ }
- public init(merchantId: Swift.String, merchantCountryCode: Swift.String, buttonType: PassKit.PKPaymentButtonType = .plain, paymentSummaryItems: [PassKit.PKPaymentSummaryItem]? = nil, customHandlers: StripePaymentSheet.PaymentElement.ApplePayConfiguration.Handlers? = nil)
+ }
- public struct BillingDetailsCollectionConfiguration : Swift.Equatable {
- public enum CollectionMode : Swift.String, Swift.CaseIterable {
+ case automatic
+ case never
+ case always
- public init?(rawValue: Swift.String)
- public typealias AllCases = [StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.CollectionMode]
- public typealias RawValue = Swift.String
- public static var allCases: [StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.CollectionMode] {
+ get
+ }
- public var rawValue: Swift.String {
+ get
+ }
+ }
- public enum AddressCollectionMode : Swift.String, Swift.CaseIterable {
+ case automatic
+ case never
+ case full
- public init?(rawValue: Swift.String)
- public typealias AllCases = [StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.AddressCollectionMode]
- public typealias RawValue = Swift.String
- public static var allCases: [StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.AddressCollectionMode] {
+ get
+ }
- public var rawValue: Swift.String {
+ get
+ }
+ }
- public var name: StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.CollectionMode
- public var phone: StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.CollectionMode
- public var email: StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.CollectionMode
- public var address: StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration.AddressCollectionMode
- public var attachDefaultsToPaymentMethod: Swift.Bool
- public static func == (a: StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration, b: StripePaymentSheet.PaymentElement.BillingDetailsCollectionConfiguration) -> Swift.Bool
+ }
- public struct ExternalPaymentMethodConfiguration {
- public init(externalPaymentMethods: [Swift.String], externalPaymentMethodConfirmHandler: @escaping StripePaymentSheet.PaymentElement.ExternalPaymentMethodConfiguration.ExternalPaymentMethodConfirmHandler)
- public var externalPaymentMethods: [Swift.String]
- public typealias ExternalPaymentMethodConfirmHandler = (_ externalPaymentMethodType: Swift.String, _ billingDetails: StripePayments.STPPaymentMethodBillingDetails, _ completion: @escaping ((StripePaymentSheet.PaymentSheetResult) -> Swift.Void)) -> Swift.Void
- public var externalPaymentMethodConfirmHandler: StripePaymentSheet.PaymentElement.ExternalPaymentMethodConfiguration.ExternalPaymentMethodConfirmHandler
+ }
- public enum CardBrandAcceptance : Swift.Equatable {
- public enum BrandCategory : Swift.Equatable {
+ case visa
+ case mastercard
+ case amex
+ case discover
- public func hash(into hasher: inout Swift.Hasher)
- public static func == (a: StripePaymentSheet.PaymentElement.CardBrandAcceptance.BrandCategory, b: StripePaymentSheet.PaymentElement.CardBrandAcceptance.BrandCategory) -> Swift.Bool
- public var hashValue: Swift.Int {
+ get
+ }
+ }
+ case all
+ case allowed(brands: [StripePaymentSheet.PaymentElement.CardBrandAcceptance.BrandCategory])
+ case disallowed(brands: [StripePaymentSheet.PaymentElement.CardBrandAcceptance.BrandCategory])
- public static func == (a: StripePaymentSheet.PaymentElement.CardBrandAcceptance, b: StripePaymentSheet.PaymentElement.CardBrandAcceptance) -> Swift.Bool
+ }

If you are adding a new public API consider the following:

  • Do these APIs need to be public or can they be protected with @_spi(STP)?
  • If these APIs need to be public, assess whether they require an API review.

If you are modifying or removing a public API:

  • Does this require a breaking version change?
  • Do these changes require API review?

If you confirm these APIs need to be added/updated and have undergone necessary review, add the label modifies public API to this PR to acknowledge and bypass this check.

ℹ️ If this comment appears to be left in error, make sure your branch is up-to-date with master.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant