Class: Airbnb::Service::Hongbao::Api::HongbaoRegistry

Inherits:
Object
  • Object
show all
Includes:
ServiceFramework::ServiceRegistry
Defined in:
lib/airbnb/service/hongbao/api/hongbao_registry.rb

Constant Summary collapse

RESOURCE_ANNOTATIONS =
{
  "client_connect_timeout_sec" => "10",
  "client_retries" => "1",
  "client_timeout_sec" => "10",
  "synapse_port" => "6756",
  "synapse_service" => "hongbao.synapse",
  "use_mtls" => "true",
  "use_thrift_payload" => "true",
}
ENDPOINTS =
{
  hello: {
    return_type: :HelloResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HelloRequest,
      },
    ],
    exceptions: [
      :HelloException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  get_user: {
    return_type: :UserResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :UserRequest,
      },
    ],
    exceptions: [
      :UserException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  has_china_coupon: {
    return_type: :HasChinaCouponResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HasChinaCouponRequest,
      },
    ],
    exceptions: [
      :HasChinaCouponException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  fetch_coupon_state: {
    return_type: :HongbaoCouponStateResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoCouponStateRequest,
      },
    ],
    exceptions: [
      :HongbaoCouponStateException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  fetch_coupon_data: {
    return_type: :HongbaoCouponDataResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoCouponDataRequest,
      },
    ],
    exceptions: [
      :HongbaoCouponDataException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  fetch_active_campaign: {
    return_type: :HongbaoActiveCampaignResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoActiveCampaignRequest,
      },
    ],
    exceptions: [
      :HongbaoActiveCampaignException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  fetch_campaign_data: {
    return_type: :HongbaoCampaignDataResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoCampaignDataRequest,
      },
    ],
    exceptions: [
      :HongbaoCampaignDataException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  get_user_china_coupons: {
    return_type: :HongbaoGetUserChinaCouponsResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoGetUserChinaCouponsRequest,
      },
    ],
    exceptions: [
      :HongbaoGetUserChinaCouponsException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  get_cta_link: {
    return_type: :HongbaoGetCtaLinkResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoGetCtaLinkRequest,
      },
    ],
    exceptions: [
      :HongbaoGetCtaLinkException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  get_coupon_messages: {
    return_type: :HongbaoGetCouponMessagesResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoGetCouponMessagesRequest,
      },
    ],
    exceptions: [
      :HongbaoGetCouponMessagesException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  can_claim_in_app: {
    return_type: :HongbaoCanClaimInAppResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoCanClaimInAppRequest,
      },
    ],
    exceptions: [
      :HongbaoCanClaimInAppException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  fetch_referral_status: {
    return_type: :HongbaoReferralStatusResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoReferralStatusRequest,
      },
    ],
    exceptions: [
      :HongbaoReferralStatusException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
  get_campaign_text_data: {
    return_type: :HongbaoCampaignTextDataResponse,
    arguments: [
      {
        key: 1,
        name: "request",
        type: :HongbaoCampaignTextDataRequest,
      },
    ],
    exceptions: [
      :HongbaoCampaignTextDataException,
    ],
    resource_annotations: {
    },
    airbnb_rest_annotations: {
    },
  },
}