Skip to content

Commit

Permalink
Улучшения относительно нового поля в объекте Receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-vanyasin committed Oct 22, 2021
1 parent be11c6d commit 77806fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ req := &tinkoff.InitRequest{
},
},
Taxation: tinkoff.TaxationUSNIncome,
Payments: &tinkoff.ReceiptPayments{
Electronic: 60000,
},
},
Data: map[string]string{
"custom data field 1": "aasd6da78dasd9",
Expand Down
10 changes: 5 additions & 5 deletions receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ type ReceiptItem struct {
}

type ReceiptPayments struct {
Cash uint64 `json:"Cash"`
Electronic uint64 `json:"Electronic"`
AdvancePayment uint64 `json:"AdvancePayment"`
Credit uint64 `json:"Credit"`
Provision uint64 `json:"Provision"`
Cash uint64 `json:"Cash,omitempty"` // Вид оплаты "Наличные". Сумма к оплате в копейках не более 14 знаков
Electronic uint64 `json:"Electronic"` // Вид оплаты "Безналичный".
AdvancePayment uint64 `json:"AdvancePayment,omitempty"` // Вид оплаты "Предварительная оплата (Аванс)".
Credit uint64 `json:"Credit,omitempty"` // Вид оплаты "Постоплата (Кредит)"
Provision uint64 `json:"Provision,omitempty"` // Вид оплаты "Иная форма оплаты".
}

0 comments on commit 77806fa

Please sign in to comment.