Skip to content

Commit

Permalink
Add Optional merchantAccountID to PayPalVaultEditRequest (#1383)
Browse files Browse the repository at this point in the history
* add optional merchantAccountID to PayPalVaultEditRequest

* jax PR feedback

* PR feedback: change request to struct, docString typo
  • Loading branch information
KunJeongPark authored Aug 7, 2024
1 parent 41088d9 commit be06e4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/BraintreePayPal/BTPayPalVaultEditRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ import Foundation

/// Options for the PayPal edit funding instrument flow
/// - Warning: This feature is currently in beta and may change or be removed in future releases.
public class BTPayPalVaultEditRequest {
public struct BTPayPalVaultEditRequest {

private let editPayPalVaultID: String
private let merchantAccountID: String?

// TODO: specify endpoint for merchant to retrieve the token
/// Initializes a PayPal Edit Request for the edit funding instrument flow
/// - Parameters:
/// - editPayPalVaultID: Required: The `edit_paypal_vault_id` returned from the server side request
/// merchantAccountID: optional ID of the merchant account; if one is not provided the default will be used
/// - Warning: This feature is currently in beta and may change or be removed in future releases.
public init(editPayPalVaultID: String) {
public init(editPayPalVaultID: String, merchantAccountID: String? = nil) {
self.editPayPalVaultID = editPayPalVaultID
self.merchantAccountID = merchantAccountID
}
}

0 comments on commit be06e4a

Please sign in to comment.