fee treatment added
This commit is contained in:
@@ -8,11 +8,10 @@ import (
|
||||
"github.com/tech/sendico/payments/storage/model"
|
||||
"github.com/tech/sendico/pkg/db/storable"
|
||||
pm "github.com/tech/sendico/pkg/model"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
const paymentsV2Collection = "payments_v2"
|
||||
|
||||
type paymentDocument struct {
|
||||
storable.Base `bson:",inline"`
|
||||
pm.OrganizationBoundBase `bson:",inline"`
|
||||
@@ -28,7 +27,7 @@ type paymentDocument struct {
|
||||
}
|
||||
|
||||
func (*paymentDocument) Collection() string {
|
||||
return paymentsV2Collection
|
||||
return mservice.Payments
|
||||
}
|
||||
|
||||
func toDocument(payment *agg.Payment) (*paymentDocument, error) {
|
||||
|
||||
Reference in New Issue
Block a user