refactor: Update payment type constants to use vchasno package directly

This commit is contained in:
2025-10-07 14:53:50 +03:00
parent 1081f2cca6
commit 43b1d40028
3 changed files with 30 additions and 19 deletions

View File

@@ -3,8 +3,6 @@ package vchasno
import (
"context"
"time"
"gitea.jeezft.xyz/jeezft/go-vchasno-kassa/api"
)
func ExampleBasicUsage() {
@@ -28,7 +26,7 @@ func ExampleWithDefaults() {
ProductName: "Парковка",
Comment: "Оплата парковки",
Taxgrp: "1",
PayType: api.PayTypeCash,
PayType: PayTypeCash,
DefaultTimeout: 30 * time.Second,
},
})
@@ -46,7 +44,7 @@ func ExampleBuilderPattern() {
Defaults: &DefaultParams{
ProductName: "Парковка",
Taxgrp: "1",
PayType: api.PayTypeCash,
PayType: PayTypeCash,
},
})
@@ -83,7 +81,7 @@ func ExampleChangingDefaults() {
ProductName: "VIP Парковка",
Comment: "VIP зона",
Taxgrp: "2",
PayType: api.PayTypeCard,
PayType: PayTypeCard,
DefaultTimeout: 60 * time.Second,
})