charity

package
v1.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharityAmount

type CharityAmount struct {
	Value         int    `json:"value"`
	DecimalPlaces int    `json:"decimal_places"`
	Currency      string `json:"currency"`
}

type CharityCampaign

type CharityCampaign struct{}

func (CharityCampaign) GetRequiredScopes

func (e CharityCampaign) GetRequiredScopes(method string) []string

func (CharityCampaign) Path

func (e CharityCampaign) Path() string

func (CharityCampaign) ServeHTTP

func (e CharityCampaign) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (CharityCampaign) ValidMethod

func (e CharityCampaign) ValidMethod(method string) bool

type CharityDonations

type CharityDonations struct{}

func (CharityDonations) GetRequiredScopes

func (e CharityDonations) GetRequiredScopes(method string) []string

func (CharityDonations) Path

func (e CharityDonations) Path() string

func (CharityDonations) ServeHTTP

func (e CharityDonations) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (CharityDonations) ValidMethod

func (e CharityDonations) ValidMethod(method string) bool

type GetCharityCampaignResponse

type GetCharityCampaignResponse struct {
	ID                 string        `json:"id"`
	BroadcasterID      string        `json:"broadcaster_id"`
	BroadcasterName    string        `json:"broadcaster_name"`
	BroadcasterLogin   string        `json:"broadcaster_login"`
	CharityName        string        `json:"charity_name"`
	CharityDescription string        `json:"charity_description"`
	CharityWebsite     string        `json:"charity_website"`
	CurrentAmount      CharityAmount `json:"current_ammount"`
	TargetAmount       CharityAmount `json:"target_amount"`
}

type GetCharityDonationsResponse

type GetCharityDonationsResponse struct {
	ID           string        `json:"campaign_id"`
	UserID       string        `json:"user_id"`
	UserLogin    string        `json:"user_login"`
	UserName     string        `json:"user_name"`
	TargetAmount CharityAmount `json:"target_amount"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL