refactor: Update payment type constants to use vchasno package directly
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user