CustomerPaymentAgreementsApiRepository
public protocol CustomerPaymentAgreementsApiRepository
Undocumented
-
Retrieve a list of customer’s [PaymentAgreement]s
Declaration
Swift
func list(completion: @escaping ApiCompletion<PaymentAgreements>)
-
Retrieve a [PaymentAgreement] by its associated payment token
Declaration
Swift
func getById(paymentToken: String, completion: @escaping ApiCompletion<PaymentAgreement>)
Parameters
paymentToken
The ID.
-
Create a [PaymentAgreement]
Declaration
Swift
func create( paymentAgreement: CreatePaymentAgreementRequest, completion: @escaping ApiCompletion<PaymentAgreement> )
Parameters
paymentAgreement
The details for the new payment agreement
-
Update a [PaymentAgreement]
Declaration
Swift
func update( paymentToken: String, paymentAgreement: UpdatePaymentAgreementRequest, completion: @escaping ApiCompletion<PaymentAgreement> )
Parameters
paymentToken
The payment token to update
paymentAgreement
The updates to apply to the payment agreement