openmeter / api /convert.gen.go
Leon4gr45's picture
Upload folder using huggingface_hub
048b1e8 verified
Raw
History Blame Contribute Delete
570 Bytes
// Code generated by github.com/jmattheis/goverter, DO NOT EDIT.
//go:build !goverter
package api
func init() {
FromBillingDiscountPercentageToDiscountPercentage = func(source BillingDiscountPercentage) DiscountPercentage {
var apiDiscountPercentage DiscountPercentage
apiDiscountPercentage.Percentage = source.Percentage
return apiDiscountPercentage
}
FromBillingDiscountUsageToDiscountUsage = func(source BillingDiscountUsage) DiscountUsage {
var apiDiscountUsage DiscountUsage
apiDiscountUsage.Quantity = source.Quantity
return apiDiscountUsage
}
}