func NewAllowedBusinessTransaction(businessTransaction domain.BusinessTransaction) *AllowedBusinessTransactionDataElement {
	a := &AllowedBusinessTransactionDataElement{
		BusinessTransactionID: NewAlphaNumeric(businessTransaction.ID, 6),
		NeededSignatures:      NewNumber(businessTransaction.NeededSignatures, 2),
	}
	if businessTransaction.Limit != nil {
		a.Kind = NewAlphaNumeric(businessTransaction.Limit.Kind, 1)
		a.Amount = NewAmount(businessTransaction.Limit.Amount.Amount, businessTransaction.Limit.Amount.Currency)
		a.Days = NewNumber(businessTransaction.Limit.Days, 3)
	}
	a.DataElement = NewDataElementGroup(allowedBusinessTransactionDEG, 5, a)
	return a
}
// NewAllowedBusinessTransaction creates a new allowed business transaction
NewAllowedBusinessTransaction creates a new allowed business transaction
// NewAllowedBusinessTransaction creates a new allowed business transaction
func NewAllowedBusinessTransaction(businessTransaction domain.BusinessTransaction) *AllowedBusinessTransactionDataElement {
	a := &AllowedBusinessTransactionDataElement{
		BusinessTransactionID: NewAlphaNumeric(businessTransaction.ID, 6),
		NeededSignatures:      NewNumber(businessTransaction.NeededSignatures, 2),
	}
	if businessTransaction.Limit != nil {
		a.Kind = NewAlphaNumeric(businessTransaction.Limit.Kind, 1)
		a.Amount = NewAmount(businessTransaction.Limit.Amount.Amount, businessTransaction.Limit.Amount.Currency)
		a.Days = NewNumber(businessTransaction.Limit.Days, 3)
	}
	a.DataElement = NewDataElementGroup(allowedBusinessTransactionDEG, 5, a)
	return a
}
func NewAllowedBusinessTransaction ( businessTransaction domain . BusinessTransaction ) * AllowedBusinessTransactionDataElement { a := & AllowedBusinessTransactionDataElement { BusinessTransactionID : NewAlphaNumeric ( businessTransaction . ID , 6 ) , NeededSignatures : NewNumber ( businessTransaction . NeededSignatures , 2 ) , } if businessTransaction . Limit != nil { a . Kind = NewAlphaNumeric ( businessTransaction . Limit . Kind , 1 ) a . Amount = NewAmount ( businessTransaction . Limit . Amount . Amount , businessTransaction . Limit . Amount . Currency ) a . Days = NewNumber ( businessTransaction . Limit . Days , 3 ) } a . DataElement = NewDataElementGroup ( allowedBusinessTransactionDEG , 5 , a ) return a }
NewAllowedBusinessTransaction creates a new allowed business transaction
NewAllowedBusinessTransaction creates a new allowed business transaction