# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: twirp/twitch.fulton.twitchzuko/service.proto

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("twirp/twitch.fulton.twitchzuko/service.proto", :syntax => :proto3) do
    add_message "twitch.fulton.twitchzuko.GetPinStatusRequest" do
      optional :pin, :string, 1
      optional :user_id, :string, 2
    end
    add_message "twitch.fulton.twitchzuko.GetPinStatusResponse" do
      optional :currency, :string, 1
      optional :amount_in_cents, :int64, 2
      optional :status, :enum, 3, "twitch.fulton.twitchzuko.PinStatus"
    end
    add_message "twitch.fulton.twitchzuko.RedeemPinRequest" do
      optional :pin, :string, 1
      optional :user_id, :string, 2
      optional :country_of_residence, :string, 3
      optional :tracking_session_id, :string, 4
    end
    add_message "twitch.fulton.twitchzuko.RedeemPinResponse" do
      optional :currency, :string, 1
      optional :amount_in_cents, :int64, 2
      optional :status, :enum, 3, "twitch.fulton.twitchzuko.UserRedeemStatus"
      optional :provider_transaction_id, :string, 4
    end
    add_message "twitch.fulton.twitchzuko.UnredeemPinRequest" do
      optional :pin, :string, 1
      optional :provider_transaction_id, :string, 2
      optional :user_id, :string, 3
    end
    add_message "twitch.fulton.twitchzuko.UnredeemPinResponse" do
      optional :currency, :string, 1
      optional :amount_in_cents, :int64, 2
      optional :status, :enum, 3, "twitch.fulton.twitchzuko.UserReverseStatus"
    end
    add_message "twitch.fulton.twitchzuko.GetRedemptionHistoryRequest" do
      optional :user_id, :string, 1
      optional :serial_number, :string, 2
      optional :created_on_end, :message, 3, "google.protobuf.Timestamp"
      optional :created_on_start, :message, 4, "google.protobuf.Timestamp"
    end
    add_message "twitch.fulton.twitchzuko.RedemptionRecord" do
      optional :id, :string, 1
      optional :user_id, :string, 2
      optional :redeem_amount, :int64, 3
      optional :currency, :string, 4
      optional :serial_number, :string, 5
      optional :redemption_status, :string, 6
      optional :vendor, :string, 7
      optional :redemption_time, :message, 8, "google.protobuf.Timestamp"
    end
    add_message "twitch.fulton.twitchzuko.GetRedemptionHistoryResponse" do
      repeated :redemption_history, :message, 1, "twitch.fulton.twitchzuko.RedemptionRecord"
    end
    add_enum "twitch.fulton.twitchzuko.PinStatus" do
      value :ACTIVE, 0
      value :INVALID_PIN, 1
      value :ALREADY_REDEEMED, 2
    end
    add_enum "twitch.fulton.twitchzuko.UserRedeemStatus" do
      value :REDEMPTION_SUCCESS, 0
      value :REDEMPTION_INVALID_PIN, 1
      value :REDEMPTION_ALREADY_REDEEMED, 2
      value :EXCEEDED_WALLET_BALANCE, 3
      value :TWO_FACTOR_REQUIRED, 4
      value :INVALID_COUNTRY_OF_RESIDENCE, 5
      value :EXCEEDED_VELOCITY_LIMIT, 6
    end
    add_enum "twitch.fulton.twitchzuko.UserReverseStatus" do
      value :REVERSAL_SUCCESS, 0
      value :REVERSAL_INVALID_PIN, 1
      value :REVERSAL_INVALID_TRANSACTION, 2
    end
  end
end

module Twitch
  module Fulton
    module Twitchzuko
      GetPinStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.GetPinStatusRequest").msgclass
      GetPinStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.GetPinStatusResponse").msgclass
      RedeemPinRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.RedeemPinRequest").msgclass
      RedeemPinResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.RedeemPinResponse").msgclass
      UnredeemPinRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.UnredeemPinRequest").msgclass
      UnredeemPinResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.UnredeemPinResponse").msgclass
      GetRedemptionHistoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.GetRedemptionHistoryRequest").msgclass
      RedemptionRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.RedemptionRecord").msgclass
      GetRedemptionHistoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.GetRedemptionHistoryResponse").msgclass
      PinStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.PinStatus").enummodule
      UserRedeemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.UserRedeemStatus").enummodule
      UserReverseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twitch.fulton.twitchzuko.UserReverseStatus").enummodule
    end
  end
end
