-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mocks for mandatory, beneficiary and originator
- Loading branch information
Showing
37 changed files
with
236 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package wire | ||
|
||
// mockAccountCreditedDrawdown creates a AccountCreditedDrawdown | ||
func mockAccountCreditedDrawdown() *AccountCreditedDrawdown { | ||
creditDD := NewAccountCreditedDrawdown() | ||
creditDD.DrawdownCreditAccountNumber = "123456789" | ||
return creditDD | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockAccountDebitedDrawdown creates a AccountDebitedDrawdown | ||
func mockAccountDebitedDrawdown() *AccountDebitedDrawdown { | ||
debitDD := NewAccountDebitedDrawdown() | ||
debitDD.IdentificationCode = "DemandDepositAccountNumber" | ||
debitDD.Identifier = "123456789" | ||
debitDD.Name = "debitDD Name" | ||
debitDD.Address.AddressLineOne = "Address One" | ||
debitDD.Address.AddressLineTwo = "Address Two" | ||
debitDD.Address.AddressLineThree = "Address Three" | ||
return debitDD | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package wire | ||
|
||
// mockAmount creates an a Amount | ||
func mockAmount() *Amount { | ||
a := NewAmount() | ||
a.Amount = "000001234567" | ||
return a | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package wire | ||
|
||
// mockBeneficiaryCustomer creates a BeneficiaryCustomer | ||
func mockBeneficiaryCustomer() *BeneficiaryCustomer { | ||
bc := NewBeneficiaryCustomer() | ||
bc.CoverPayment.SwiftFieldTag = "" | ||
bc.CoverPayment.SwiftLineOne = "" | ||
bc.CoverPayment.SwiftLineTwo = "" | ||
bc.CoverPayment.SwiftLineThree= "" | ||
bc.CoverPayment.SwiftLineFour = "" | ||
bc.CoverPayment.SwiftLineFive = "" | ||
bc.CoverPayment.SwiftLineSix = "" | ||
return bc | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockBeneficiaryFI creates a BeneficiaryFI | ||
func mockBeneficiaryFI() *BeneficiaryFI { | ||
bfi := NewBeneficiaryFI() | ||
bfi.FinancialInstitution.IdentificationCode = DemandDepositAccountNumber | ||
bfi.FinancialInstitution.Identifier = "123456789" | ||
bfi.FinancialInstitution.Name = "FI Name" | ||
bfi.FinancialInstitution.Address.AddressLineOne = "Address One" | ||
bfi.FinancialInstitution.Address.AddressLineTwo = "Address Two" | ||
bfi.FinancialInstitution.Address.AddressLineThree = "Address Three" | ||
return bfi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockBeneficiaryIntermediaryFI creates a BeneficiaryIntermediaryFI | ||
func mockBeneficiaryIntermediaryFI() *BeneficiaryIntermediaryFI { | ||
bifi := NewBeneficiaryIntermediaryFI() | ||
bifi.FinancialInstitution.IdentificationCode = DemandDepositAccountNumber | ||
bifi.FinancialInstitution.Identifier = "123456789" | ||
bifi.FinancialInstitution.Name = "FI Name" | ||
bifi.FinancialInstitution.Address.AddressLineOne = "Address One" | ||
bifi.FinancialInstitution.Address.AddressLineTwo = "Address Two" | ||
bifi.FinancialInstitution.Address.AddressLineThree = "Address Three" | ||
return bifi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package wire | ||
|
||
// mockBeneficiaryReference creates a BeneficiaryReference | ||
func mockBeneficiaryReference() *BeneficiaryReference { | ||
br:= NewBeneficiaryReference() | ||
br.BeneficiaryReference = "Reference" | ||
return br | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockBeneficiary creates a Beneficiary | ||
func mockBeneficiary() *Beneficiary { | ||
b := NewBeneficiary() | ||
b.Personal.IdentificationCode = DriversLicenseNumber | ||
b.Personal.Identifier = "1234" | ||
b.Personal.Name = "Name" | ||
b.Personal.Address.AddressLineOne = "Address One" | ||
b.Personal.Address.AddressLineTwo = "Address Two" | ||
b.Personal.Address.AddressLineThree = "Address Three" | ||
return b | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package wire | ||
|
||
// mockBusinessFunctionCode creates a BusinessFunctionCode | ||
func mockBusinessFunctionCode() *BusinessFunctionCode { | ||
bfc := NewBusinessFunctionCode() | ||
bfc.BusinessFunctionCode = "BankTransfer" | ||
bfc.TransactionTypeCode = "" | ||
return bfc | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package wire | ||
|
||
// mockInputMessageAccountabilityData creates a mockInputMessageAccountabilityData | ||
func mockInputMessageAccountabilityData() *InputMessageAccountabilityData { | ||
imad := NewInputMessageAccountabilityData() | ||
imad.InputCycleDate = "20190410" | ||
imad.InputSource = "Source" | ||
imad.InputSequenceNumber = "000001" | ||
return imad | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockInstructingFI creates a InstructingFI | ||
func mockInstructingFI() *InstructingFI { | ||
ifi := NewInstructingFI() | ||
ifi.FinancialInstitution.IdentificationCode = DemandDepositAccountNumber | ||
ifi.FinancialInstitution.Identifier = "123456789" | ||
ifi.FinancialInstitution.Name = "FI Name" | ||
ifi.FinancialInstitution.Address.AddressLineOne = "Address One" | ||
ifi.FinancialInstitution.Address.AddressLineTwo = "Address Two" | ||
ifi.FinancialInstitution.Address.AddressLineThree = "Address Three" | ||
return ifi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockOriginatorFI creates a OriginatorFI | ||
func mockOriginatorFI() *OriginatorFI { | ||
ofi := NewOriginatorFI() | ||
ofi.FinancialInstitution.IdentificationCode = PassportNumber | ||
ofi.FinancialInstitution.Identifier = "123456789" | ||
ofi.FinancialInstitution.Name = "FI Name" | ||
ofi.FinancialInstitution.Address.AddressLineOne = "Address One" | ||
ofi.FinancialInstitution.Address.AddressLineTwo = "Address Two" | ||
ofi.FinancialInstitution.Address.AddressLineThree = "Address Three" | ||
return ofi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package wire | ||
|
||
// mockOriginatorOptionF creates a OriginatorOptionF | ||
func mockOriginatorOptionF() *OriginatorOptionF { | ||
oof := NewOriginatorOptionF() | ||
oof.PartyIdentifier = "TXID/123-45-6789" | ||
oof.Name = "Name" | ||
oof.LineOne = "LineOne" | ||
oof.LineTwo = "LineTwo" | ||
oof.LineThree = "LineThree" | ||
return oof | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package wire | ||
|
||
// mockOriginatorToBeneficiary creates a OriginatorToBeneficiary | ||
func mockOriginatorToBeneficiary() *OriginatorToBeneficiary { | ||
ob := NewOriginatorToBeneficiary() | ||
ob.LineOne = "LineOne" | ||
ob.LineTwo = "LineTwo" | ||
ob.LineThree = "LineThree" | ||
ob.LineFour = "LineFour" | ||
return ob | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package wire | ||
|
||
// mockOriginator creates a Originator | ||
func mockOriginator() *Originator { | ||
o := NewOriginator() | ||
o.Personal.IdentificationCode = PassportNumber | ||
o.Personal.Identifier = "1234" | ||
o.Personal.Name = "Name" | ||
o.Personal.Address.AddressLineOne = "Address One" | ||
o.Personal.Address.AddressLineTwo = "Address Two" | ||
o.Personal.Address.AddressLineThree = "Address Three" | ||
return o | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package wire | ||
|
||
// mockReceiverDepositoryInstitution creates a ReceiverDepositoryInstitution | ||
func mockReceiverDepositoryInstitution() *ReceiverDepositoryInstitution { | ||
rdi := NewReceiverDepositoryInstitution() | ||
rdi.ReceiverABANumber = "231380104" | ||
rdi.ReceiverShortName = "Citadel" | ||
return rdi | ||
} |
Oops, something went wrong.