Skip to content

Commit

Permalink
TransferData struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Anisimov committed Mar 21, 2020
1 parent 438d0f2 commit 90e25ae
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,16 @@ public struct StripePaymentIntent: StripeModel {
/// Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`.
public var status: StripePaymentIntentStatus?
/// The data with which to automatically create a Transfer when the payment is finalized. See the PaymentIntents Connect usage guide for details.
public var transferData: [String: String]?
public var transferData: TransferData?
/// A string that identifies the resulting payment as part of a group. See the PaymentIntents Connect usage guide for details.
public var transferGroup: String?
}

public struct TransferData: StripeModel {
var destination: String?
var amount: Int?
}

public enum StripePaymentIntentCancellationReason: String, StripeModel {
case duplicate
case fraudulent
Expand Down

0 comments on commit 90e25ae

Please sign in to comment.