-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Descriptor and Shops fields for Init request, allow nil DATA field
Thanks to https://github.com/bamp94/tinkoff maintainer for Shop struct!
- Loading branch information
1 parent
15e1372
commit dbae444
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package tinkoff | ||
|
||
type Shop struct { | ||
ShopCode string `json:"ShopCode,omitempty"` // Код магазина. Для параметра ShopСode необходимо использовать значение параметра Submerchant_ID, полученного при регистрации через xml. | ||
Amount uint64 `json:"Amount,omitempty"` // Сумма перечисления в копейках по реквизитам ShopCode за вычетом Fee | ||
Name string `json:"Name,omitempty"` // Наименование позиции | ||
Fee string `json:"Fee,omitempty"` // Часть суммы Операции оплаты или % от суммы Операции оплаты. Fee удерживается из возмещения третьего лица (ShopCode) в пользу Предприятия по операциям оплаты. | ||
} |