# Code generated by protoc-gen-twirp_ruby 1.0.0, DO NOT EDIT.
require 'twirp'
require_relative 'service_pb.rb'

module Code
  module Justin
    module Tv
      module Revenue
        module Subscriptions
          class SubscriptionsService < Twirp::Service
            package 'code.justin.tv.revenue.subscriptions'
            service 'Subscriptions'
            rpc :FulfillSubscription, FulfillSubscriptionRequest, FulfillSubscriptionResponse, :ruby_method => :fulfill_subscription
            rpc :CreateSubscription, CreateSubscriptionRequest, CreateSubscriptionResponse, :ruby_method => :create_subscription
            rpc :CancelSubscription, CancelSubscriptionRequest, CancelSubscriptionResponse, :ruby_method => :cancel_subscription
            rpc :UpdateSubscription, UpdateSubscriptionRequest, UpdateSubscriptionResponse, :ruby_method => :update_subscription
            rpc :CanSubscribe, CanSubscribeRequest, CanSubscribeResponse, :ruby_method => :can_subscribe
            rpc :ListUserSubscriptions, ListUserSubscriptionsRequest, ListUserSubscriptionsResponse, :ruby_method => :list_user_subscriptions
            rpc :ListUserExpiredSubscriptions, ListUserExpiredSubscriptionsRequest, ListUserExpiredSubscriptionsResponse, :ruby_method => :list_user_expired_subscriptions
            rpc :GetUserChannelSubscriptionWithPaymentsData, GetUserChannelSubscriptionWithPaymentsDataRequest, GetUserChannelSubscriptionWithPaymentsDataResponse, :ruby_method => :get_user_channel_subscription_with_payments_data
            rpc :GetUserSubscriptions, GetUserSubscriptionsRequest, GetUserSubscriptionsResponse, :ruby_method => :get_user_subscriptions
            rpc :GetUserChannelSubscription, GetUserChannelSubscriptionRequest, GetUserChannelSubscriptionResponse, :ruby_method => :get_user_channel_subscription
            rpc :GetUserProductSubscriptions, GetUserProductSubscriptionsRequest, GetUserProductSubscriptionsResponse, :ruby_method => :get_user_product_subscriptions
            rpc :GetUserProductSubscriptionsWithPaymentsData, GetUserProductSubscriptionsWithPaymentsDataRequest, GetUserProductSubscriptionsWithPaymentsDataResponse, :ruby_method => :get_user_product_subscriptions_with_payments_data
            rpc :GetChannelSubscriptions, GetChannelSubscriptionsRequest, GetChannelSubscriptionsResponse, :ruby_method => :get_channel_subscriptions
            rpc :GetSubscriptionByID, GetSubscriptionByIDRequest, GetSubscriptionByIDResponse, :ruby_method => :get_subscription_by_i_d
            rpc :GetHistoricalUserTickets, GetHistoricalUserTicketsRequest, GetHistoricalUserTicketsResponse, :ruby_method => :get_historical_user_tickets
            rpc :GetChannelSubscriptionsAfterTime, GetChannelSubscriptionsAfterTimeRequest, GetChannelSubscriptionsAfterTimeResponse, :ruby_method => :get_channel_subscriptions_after_time
            rpc :TakedownBadges, TakedownBadgesRequest, TakedownBadgesResponse, :ruby_method => :takedown_badges
            rpc :TakedownAllBadges, TakedownAllBadgesRequest, TakedownAllBadgesResponse, :ruby_method => :takedown_all_badges
            rpc :GetSubscriberBadge, GetSubscriberBadgeRequest, GetSubscriberBadgeResponse, :ruby_method => :get_subscriber_badge
            rpc :InvalidateBadgeCache, InvalidateBadgeCacheRequest, InvalidateBadgeCacheResponse, :ruby_method => :invalidate_badge_cache
            rpc :GetChannelBadge, GetChannelBadgeRequest, GetChannelBadgeResponse, :ruby_method => :get_channel_badge
            rpc :DeleteChannelBadge, DeleteChannelBadgeRequest, DeleteChannelBadgeResponse, :ruby_method => :delete_channel_badge
            rpc :CreateChannelBadgeUploadConfig, CreateChannelBadgeUploadConfigRequest, CreateChannelBadgeUploadConfigResponse, :ruby_method => :create_channel_badge_upload_config
            rpc :CreateChannelBadge, CreateChannelBadgeRequest, CreateChannelBadgeResponse, :ruby_method => :create_channel_badge
            rpc :GetBadgeProgress, GetBadgeProgressRequest, GetBadgeProgressResponse, :ruby_method => :get_badge_progress
            rpc :CreateBadgeFlair, CreateBadgeFlairRequest, CreateBadgeFlairResponse, :ruby_method => :create_badge_flair
            rpc :GetBadgeFlair, GetBadgeFlairRequest, GetBadgeFlairResponse, :ruby_method => :get_badge_flair
            rpc :GetFounderBadgeAvailability, GetFounderBadgeAvailabilityRequest, GetFounderBadgeAvailabilityResponse, :ruby_method => :get_founder_badge_availability
            rpc :IsFounder, IsFounderRequest, IsFounderResponse, :ruby_method => :is_founder
            rpc :SetScore, SetScoreRequest, SetScoreResponse, :ruby_method => :set_score
            rpc :CalculateSubscriberCount, CalculateSubscriberCountRequest, CalculateSubscriberCountResponse, :ruby_method => :calculate_subscriber_count
            rpc :CreateChatNotificationToken, CreateChatNotificationTokenRequest, CreateChatNotificationTokenResponse, :ruby_method => :create_chat_notification_token
            rpc :UseChatNotificationToken, UseChatNotificationTokenRequest, UseChatNotificationTokenResponse, :ruby_method => :use_chat_notification_token
            rpc :GetUserChannelChatNotificationToken, GetUserChannelChatNotificationTokenRequest, GetUserChannelChatNotificationTokenResponse, :ruby_method => :get_user_channel_chat_notification_token
            rpc :GetAllUsedChatNotificationTokens, GetAllUsedChatNotificationTokensRequest, GetAllUsedChatNotificationTokensResponse, :ruby_method => :get_all_used_chat_notification_tokens
            rpc :AllowReplayForLastUsedChatNotificationToken, AllowReplayForLastUsedChatNotificationTokenRequest, AllowReplayForLastUsedChatNotificationTokenResponse, :ruby_method => :allow_replay_for_last_used_chat_notification_token
            rpc :GetUserSettings, GetUserSettingsRequest, GetUserSettingsResponse, :ruby_method => :get_user_settings
            rpc :SetUserSettings, SetUserSettingsRequest, SetUserSettingsResponse, :ruby_method => :set_user_settings
            rpc :GetCreatorBadgeFlairSetting, GetCreatorBadgeFlairSettingRequest, GetCreatorBadgeFlairSettingResponse, :ruby_method => :get_creator_badge_flair_setting
            rpc :SetCreatorBadgeFlairSetting, SetCreatorBadgeFlairSettingRequest, SetCreatorBadgeFlairSettingResponse, :ruby_method => :set_creator_badge_flair_setting
            rpc :GetExternalProductTemplateSKU, GetExternalProductTemplateSKURequest, GetExternalProductTemplateSKUResponse, :ruby_method => :get_external_product_template_s_k_u
            rpc :GetExternalProductPurchasableSKU, GetExternalProductPurchasableSKURequest, GetExternalProductPurchasableSKUResponse, :ruby_method => :get_external_product_purchasable_s_k_u
            rpc :GetPaidUpgrades, GetPaidUpgradesRequest, GetPaidUpgradesResponse, :ruby_method => :get_paid_upgrades
            rpc :FulfillPaidUpgrade, FulfillPaidUpgradeRequest, FulfillPaidUpgradeResponse, :ruby_method => :fulfill_paid_upgrade
            rpc :CreatePaidUpgrade, CreatePaidUpgradeRequest, CreatePaidUpgradeResponse, :ruby_method => :create_paid_upgrade
            rpc :CancelPaidUpgrade, CancelPaidUpgradeRequest, CancelPaidUpgradeResponse, :ruby_method => :cancel_paid_upgrade
            rpc :InsertGift, InsertGiftRequest, InsertGiftResponse, :ruby_method => :insert_gift
            rpc :CancelGift, CancelGiftRequest, CancelGiftResponse, :ruby_method => :cancel_gift
            rpc :GetGifts, GetGiftsRequest, GetGiftsResponse, :ruby_method => :get_gifts
            rpc :CanGift, CanGiftRequest, CanGiftResponse, :ruby_method => :can_gift
            rpc :GetGiftPromotion, GetGiftPromotionRequest, GetGiftPromotionResponse, :ruby_method => :get_gift_promotion
            rpc :GetPaidUpgradePromotion, GetPaidUpgradePromotionRequest, GetPaidUpgradePromotionResponse, :ruby_method => :get_paid_upgrade_promotion
            rpc :GetPromotions, GetPromotionsRequest, GetPromotionsResponse, :ruby_method => :get_promotions
            rpc :CanSenderGift, CanSenderGiftRequest, CanSenderGiftResponse, :ruby_method => :can_sender_gift
            rpc :CanGiftRecipient, CanGiftRecipientRequest, CanGiftRecipientResponse, :ruby_method => :can_gift_recipient
            rpc :FulfillGifts, FulfillGiftsRequest, FulfillGiftsResponse, :ruby_method => :fulfill_gifts
            rpc :SendGiftChatNotification, SendGiftChatNotificationRequest, SendGiftChatNotificationResponse, :ruby_method => :send_gift_chat_notification
            rpc :SendMMGChatNotification, SendMMGChatNotificationRequest, SendMMGChatNotificationResponse, :ruby_method => :send_m_m_g_chat_notification
            rpc :SendMMGStartChatNotification, SendMMGStartChatNotificationRequest, SendMMGStartChatNotificationResponse, :ruby_method => :send_m_m_g_start_chat_notification
            rpc :SendPayForwardChatNotification, SendPayForwardChatNotificationRequest, SendPayForwardChatNotificationResponse, :ruby_method => :send_pay_forward_chat_notification
            rpc :GetRelatedChannels, GetRelatedChannelsRequest, GetRelatedChannelsResponse, :ruby_method => :get_related_channels
            rpc :GetGiftOffers, GetGiftOffersRequest, GetGiftOffersResponse, :ruby_method => :get_gift_offers
            rpc :GetCommunityGiftBundles, GetCommunityGiftBundlesRequest, GetCommunityGiftBundlesResponse, :ruby_method => :get_community_gift_bundles
            rpc :GetGiftsSentCount, GetGiftsSentCountRequest, GetGiftsSentCountResponse, :ruby_method => :get_gifts_sent_count
            rpc :GrantGifterBadge, GrantGifterBadgeRequest, GrantGifterBadgeResponse, :ruby_method => :grant_gifter_badge
            rpc :GetLatestGiftEndPerChannel, GetLatestGiftEndPerChannelRequest, GetLatestGiftEndPerChannelResponse, :ruby_method => :get_latest_gift_end_per_channel
            rpc :ModerateUserFromGifterLeaderboard, ModerateUserFromGifterLeaderboardRequest, ModerateUserFromGifterLeaderboardResponse, :ruby_method => :moderate_user_from_gifter_leaderboard
            rpc :UpdateLeaderboardBadges, UpdateLeaderboardBadgesRequest, UpdateLeaderboardBadgesResponse, :ruby_method => :update_leaderboard_badges
            rpc :GetEmotePrefix, GetEmotePrefixRequest, GetEmotePrefixResponse, :ruby_method => :get_emote_prefix
            rpc :CreateEmoticon, CreateEmoticonRequest, CreateEmoticonReponse, :ruby_method => :create_emoticon
            rpc :DeleteEmoticon, DeleteEmoticonRequest, DeleteEmoticonResponse, :ruby_method => :delete_emoticon
            rpc :GetAllEmoticonsByProductIDs, GetAllEmoticonsByProductIDsRequest, GetAllEmoticonsByProductIDsResponse, :ruby_method => :get_all_emoticons_by_product_i_ds
            rpc :GetPartnerStanding, GetPartnerStandingRequest, GetPartnerStandingResponse, :ruby_method => :get_partner_standing
            rpc :GetChannelEmoteLimits, GetChannelEmoteLimitsRequest, GetChannelEmoteLimitsResponse, :ruby_method => :get_channel_emote_limits
            rpc :GetPendingEmoticonsByIDs, GetPendingEmoticonsByIDsRequest, GetPendingEmoticonsByIDsResponse, :ruby_method => :get_pending_emoticons_by_i_ds
            rpc :GetPendingEmoticons, GetPendingEmoticonsRequest, GetPendingEmoticonsResponse, :ruby_method => :get_pending_emoticons
            rpc :ReviewPendingEmoticons, ReviewPendingEmoticonsRequest, ReviewPendingEmoticonsResponse, :ruby_method => :review_pending_emoticons
            rpc :GetProductsByIDs, GetProductsByIDsRequest, GetProductsByIDsResponse, :ruby_method => :get_products_by_i_ds
            rpc :GetProductsByNames, GetProductsByNamesRequest, GetProductsByNamesResponse, :ruby_method => :get_products_by_names
            rpc :GetChannelProducts, GetChannelProductsRequest, GetChannelProductsResponse, :ruby_method => :get_channel_products
            rpc :UpdateProduct, UpdateProductRequest, UpdateProductResponse, :ruby_method => :update_product
            rpc :UpdateChannelProducts, UpdateChannelProductsRequest, UpdateChannelProductsResponse, :ruby_method => :update_channel_products
            rpc :EmailSubscribers, EmailSubscribersRequest, EmailSubscribersResponse, :ruby_method => :email_subscribers
            rpc :EmailGlobalEmote, EmailGlobalEmoteRequest, EmailGlobalEmoteResponse, :ruby_method => :email_global_emote
            rpc :EmailPendingPrefixApproval, EmailPendingPrefixApprovalRequest, EmailPendingPrefixApprovalResponse, :ruby_method => :email_pending_prefix_approval
            rpc :RedeemSubscription, RedeemSubscriptionRequest, RedeemSubscriptionResponse, :ruby_method => :redeem_subscription
            rpc :GetRedeemedSubscription, RedeemedSubscriptionRequest, RedeemedSubscriptionResponse, :ruby_method => :get_redeemed_subscription
            rpc :GetTicketsByOriginIDs, GetTicketsByOriginIDsRequest, GetTicketsByOriginIDsResponse, :ruby_method => :get_tickets_by_origin_i_ds
            rpc :GetTicketsByOwnerIDAndOriginID, GetTicketsByOwnerIDAndOriginIDRequest, GetTicketsByOwnerIDAndOriginIDResponse, :ruby_method => :get_tickets_by_owner_i_d_and_origin_i_d
            rpc :GetUnexpiredUserTicketsByProducts, GetUnexpiredUserTicketsByProductsRequest, GetUnexpiredUserTicketsByProductsResponse, :ruby_method => :get_unexpired_user_tickets_by_products
            rpc :GrantAdminSubscription, GrantAdminSubscriptionRequest, GrantAdminSubscriptionResponse, :ruby_method => :grant_admin_subscription
            rpc :GetRevenueConfig, GetRevenueConfigRequest, GetRevenueConfigResponse, :ruby_method => :get_revenue_config
            rpc :CreateRevenueConfig, CreateRevenueConfigRequest, CreateRevenueConfigResponse, :ruby_method => :create_revenue_config
            rpc :UpdateRevenueConfig, UpdateRevenueConfigRequest, UpdateRevenueConfigResponse, :ruby_method => :update_revenue_config
            rpc :DeleteRevenueConfig, DeleteRevenueConfigRequest, DeleteRevenueConfigResponse, :ruby_method => :delete_revenue_config
            rpc :GetRevenueConfigsByProductID, GetRevenueConfigsByProductIDRequest, GetRevenueConfigsByProductIDResponse, :ruby_method => :get_revenue_configs_by_product_i_d
            rpc :GetActiveRevenueConfigByProductID, GetActiveRevenueConfigByProductIDRequest, GetActiveRevenueConfigByProductIDResponse, :ruby_method => :get_active_revenue_config_by_product_i_d
            rpc :GetCreatorGiftsBalance, GetCreatorGiftsBalanceRequest, GetCreatorGiftsBalanceResponse, :ruby_method => :get_creator_gifts_balance
            rpc :FulfillCreatorGifts, FulfillCreatorGiftsRequest, FulfillCreatorGiftsResponse, :ruby_method => :fulfill_creator_gifts
            rpc :AddCreatorGiftsBalance, AddCreatorGiftsBalanceRequest, AddCreatorGiftsBalanceResponse, :ruby_method => :add_creator_gifts_balance
            rpc :DeductCreatorGiftsBalance, DeductCreatorGiftsBalanceRequest, DeductCreatorGiftsBalanceResponse, :ruby_method => :deduct_creator_gifts_balance
          end

          class SubscriptionsClient < Twirp::Client
            client_for SubscriptionsService
          end
        end
      end
    end
  end
end
