Documentation
¶
Overview ¶
Package paycode implements "sepay paycode" (get, set).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Paycode ¶
type Paycode struct {
PayCode string `json:"PayCode" yaml:"PayCode"`
Structures []Structure `json:"PayCodeStructures" yaml:"PayCodeStructures"`
// Optimistic-lock token; set sends it back so a stale write gets 409.
Version string `json:"version,omitempty" yaml:"version,omitempty"`
}
Paycode is the config shape shared by GET and POST /v2/company/paycode.
type Structure ¶
type Structure struct {
IsActive string `json:"is_active" yaml:"is_active"`
Prefix string `json:"prefix" yaml:"prefix"`
SuffixFrom int `json:"suffix_from" yaml:"suffix_from"`
SuffixTo int `json:"suffix_to" yaml:"suffix_to"`
CharacterType string `json:"character_type" yaml:"character_type"`
}
Structure is one pay-code prefix rule.
Click to show internal directories.
Click to hide internal directories.