-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from tada-team/billing
Billing
- Loading branch information
Showing
4 changed files
with
136 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package tdproto | ||
|
||
import "time" | ||
|
||
// ChangeTariffBilling struct of changes tariffs by personal account | ||
type ChangeTariffBilling struct { | ||
PersonalAccountId int64 `json:"personal_account_id"` | ||
TariffId int64 `json:"tariff_id,omitempty"` | ||
OpenDate time.Time `json:"open_date,omitempty"` | ||
CloseDate time.Time `json:"close_date,omitempty"` | ||
CreateDate time.Time `json:"create_date,omitempty"` | ||
} | ||
|
||
// GetChangesTariffsByPersonalAccountRequest request on get changes tariffs by personal account | ||
type GetChangesTariffsByPersonalAccountRequest struct { | ||
PersonalAccountId int64 `json:"personal_account_id"` | ||
} | ||
|
||
// GetChangesTariffsByPersonalAccountResponse response on get changes tariffs by personal account | ||
type GetChangesTariffsByPersonalAccountResponse struct { | ||
TariffsChanges []ChangeTariffBilling `json:"tariffs_changes,omitempty"` | ||
} | ||
|
||
// CreateChangeTariffOnPersonalAccountRequest request on create change tariff on personal account | ||
type CreateChangeTariffOnPersonalAccountRequest struct { | ||
PersonalAccountId int64 `json:"personal_account_id"` | ||
TariffId int64 `json:"tariff_id"` | ||
OpenDate time.Time `json:"open_date,omitempty"` | ||
} | ||
|
||
// CreateChangeTariffOnPersonalAccountResponse response on create change tariff on personal account | ||
type CreateChangeTariffOnPersonalAccountResponse struct { | ||
Success bool `json:"success,omitempty"` | ||
} | ||
|
||
// DeleteChangeTariffOnPersonalAccountRequest request on delete change tariff on personal account | ||
type DeleteChangeTariffOnPersonalAccountRequest struct { | ||
PersonalAccountId int64 `json:"personal_account_id"` | ||
TariffId int64 `json:"tariff_id"` | ||
} | ||
|
||
// DeleteChangeTariffOnPersonalAccountResponse response on delete change tariff om personal account | ||
type DeleteChangeTariffOnPersonalAccountResponse struct { | ||
Success bool `json:"success,omitempty"` | ||
} |
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
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