@@ -263,7 +263,7 @@ mod tests {
263263 SweepingFrequency , TransactionPayinStatus , TransactionPayoutContextCode ,
264264 TransactionPayoutStatus , TransactionType ,
265265 } ,
266- payments:: { AccountIdentifier , Currency , Remitter } ,
266+ payments:: { AccountIdentifier , Currency , ExternalPaymentRemitter } ,
267267 payouts:: PayoutBeneficiary ,
268268 } ,
269269 authenticator:: Authenticator ,
@@ -745,7 +745,8 @@ mod tests {
745745 "sort_code" : "sort-code" ,
746746 "account_number" : "account-number"
747747 } ,
748- "account_holder_name" : "Mr. Holder"
748+ "account_holder_name" : "Mr. Holder" ,
749+ "reference" : "ext-payment-ref"
749750 }
750751 } ,
751752 {
@@ -832,12 +833,13 @@ mod tests {
832833 r#type: TransactionType :: ExternalPayment {
833834 status: TransactionPayinStatus :: Settled ,
834835 settled_at: now,
835- remitter: Remitter {
836+ remitter: ExternalPaymentRemitter {
836837 account_holder_name: Some ( "Mr. Holder" . into( ) ) ,
837838 account_identifier: Some ( AccountIdentifier :: SortCodeAccountNumber {
838839 sort_code: "sort-code" . to_string( ) ,
839840 account_number: "account-number" . to_string( )
840- } )
841+ } ) ,
842+ reference: Some ( "ext-payment-ref" . to_string( ) )
841843 }
842844 }
843845 } ,
0 commit comments