Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta authored Jun 12, 2024
2 parents ca5acd3 + da45ee9 commit 6088ca3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "4.0.0"),
],
targets: [
.target(name: "StripeKit", dependencies: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ public struct ChargePaymentMethodDetailsBoleto: Codable {
public struct ChargePaymentMethodDetailsCard: Codable {
/// Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
public var brand: PaymentMethodDetailsCardBrand?
/// When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
public var captureBefore: Date?
/// Check results by Card networks on Card address and CVC at time of payment.
public var checks: PaymentMethodDetailsCardChecks?
/// Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you’ve collected.
Expand All @@ -259,6 +261,7 @@ public struct ChargePaymentMethodDetailsCard: Codable {
public var wallet: ChargePaymentMethodDetailsCardWallet?

public init(brand: PaymentMethodDetailsCardBrand? = nil,
captureBefore: Date? = nil,
checks: PaymentMethodDetailsCardChecks? = nil,
country: String? = nil,
expMonth: Int? = nil,
Expand All @@ -271,6 +274,7 @@ public struct ChargePaymentMethodDetailsCard: Codable {
threeDSecure: ChargePaymentMethodDetailsCardThreeDSecure? = nil,
wallet: ChargePaymentMethodDetailsCardWallet? = nil) {
self.brand = brand
self.captureBefore = captureBefore
self.checks = checks
self.country = country
self.expMonth = expMonth
Expand Down

0 comments on commit 6088ca3

Please sign in to comment.