camper/pkg/database
jordi fita mas 990a614897 Change draft_payment return type to row of payment
This way i can use the function in the from clause of the query that
i already had to do to get the totals formatted with to_price.  In this
case, i believe it is better to leave out Go’s function because it would
force me to perform two queries.

Instead of binding a nullable string pointer with the payment’s slug,
i wanted to use pgtype’s zeronull.Text type, but it can not work in this
case because it encodes the value as a text, while the parameters is
uuid.  I can not use zero.UUID, because it is a [16]byte array, while i
have it in a string.

Thus, had to create my own ZeroNullUUID type that use a string as a base
but encodes it as a UUID.
2024-02-13 19:51:39 +01:00
..
OptionUnits.go Add payment relation and use it to compute the booking’s cart 2024-02-12 05:21:00 +01:00
RecordArray.go Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
db.go Refactor ISO date, and datestamp format in constant 2024-01-31 19:58:46 +01:00
funcs.go Change draft_payment return type to row of payment 2024-02-13 19:51:39 +01:00
tx.go Add the campsite type cost per season 2023-10-01 21:14:39 +02:00
types.go Handle payment notifications from Redsys 2024-02-13 02:38:38 +01:00
zeronull.go Change draft_payment return type to row of payment 2024-02-13 19:51:39 +01:00