Fully separated payment quotation and orchestration flows
This commit is contained in:
11
api/payments/quotation/internal/service/shared/account.go
Normal file
11
api/payments/quotation/internal/service/shared/account.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package shared
|
||||
|
||||
import "github.com/tech/sendico/pkg/model/account_role"
|
||||
|
||||
func CloneAccountRole(role *account_role.AccountRole) *account_role.AccountRole {
|
||||
if role == nil {
|
||||
return nil
|
||||
}
|
||||
cloned := *role
|
||||
return &cloned
|
||||
}
|
||||
Reference in New Issue
Block a user