Commit 6e543a56890e4255b4011642ef9e1e70c9230cd9

Authored by Matti Virkkunen
1 parent 62b44c2c

Added missing types of line_main.thrift

Showing 1 changed file with 176 additions and 0 deletions
line_main.thrift
... ... @@ -327,6 +327,41 @@ enum OpType {
327 327 NOTIFIED_PUSH_NOTICENTER_ITEM = 59;
328 328 }
329 329  
  330 +enum PayloadType {
  331 + PAYLOAD_BUY = 101;
  332 + PAYLOAD_CS = 111;
  333 + PAYLOAD_BONUS = 121;
  334 + PAYLOAD_EVENT = 131;
  335 +}
  336 +
  337 +enum PaymentPgType {
  338 + PAYMENT_PG_NONE = 0;
  339 + PAYMENT_PG_AU = 1;
  340 + PAYMENT_PG_AL = 2;
  341 +}
  342 +
  343 +enum PaymentType {
  344 + PAYMENT_APPLE = 1;
  345 + PAYMENT_GOOGLE = 2;
  346 +}
  347 +
  348 +enum ProductBannerLinkType {
  349 + BANNER_LINK_NONE = 0;
  350 + BANNER_LINK_ITEM = 1;
  351 + BANNER_LINK_URL = 2;
  352 + BANNER_LINK_CATEGORY = 3;
  353 +}
  354 +
  355 +enum ProductEventType {
  356 + NO_EVENT = 0;
  357 + CARRIER_ANY = 65537;
  358 + BUDDY_ANY = 131073;
  359 + INSTALL_IOS = 196609;
  360 + INSTALL_ANDROID = 196610;
  361 + MISSION_ANY = 262145;
  362 + MUSTBUY_ANY = 327681;
  363 +}
  364 +
330 365 enum ProfileAttribute {
331 366 EMAIL = 1;
332 367 DISPLAY_NAME = 2;
... ... @@ -463,6 +498,71 @@ struct Location {
463 498 5: string phone;
464 499 }
465 500  
  501 +struct Coin {
  502 + 1: i32 freeCoinBalance;
  503 + 2: i32 payedCoinBalance;
  504 + 3: i32 totalCoinBalance;
  505 + 4: i32 rewardCoinBalance;
  506 +}
  507 +
  508 +struct CoinPayLoad {
  509 + 1: i32 payCoin;
  510 + 2: i32 freeCoin;
  511 + 3: PayloadType type;
  512 + 4: i32 rewardCoin;
  513 +}
  514 +
  515 +struct CoinHistory {
  516 + 1: i64 payDate;
  517 + 2: i32 coinBalance;
  518 + 3: i32 coin;
  519 + 4: string price;
  520 + 5: string title;
  521 + 6: bool refund;
  522 + 7: string paySeq;
  523 + 8: string currency;
  524 + 9: string currencySign;
  525 + 10: string displayPrice;
  526 + 11: CoinPayLoad payload;
  527 + 12: string channelId;
  528 +}
  529 +
  530 +struct CoinHistoryCondition {
  531 + 1: i64 start;
  532 + 2: i32 size;
  533 + 3: string language;
  534 + 4: string eddt;
  535 + 5: PaymentType appStoreCode;
  536 +}
  537 +
  538 +struct CoinHistoryResult {
  539 + 1: list<CoinHistory> historys;
  540 + 2: Coin balance;
  541 + 3: bool hasNext;
  542 +}
  543 +
  544 +struct CoinProductItem {
  545 + 1: string itemId;
  546 + 2: i32 coin;
  547 + 3: i32 freeCoin;
  548 + 5: string currency;
  549 + 6: string price;
  550 + 7: string displayPrice;
  551 + 8: string name;
  552 + 9: string desc;
  553 +}
  554 +
  555 +struct CoinPurchaseReservation {
  556 + 1: string productId;
  557 + 2: string country;
  558 + 3: string currency;
  559 + 4: string price;
  560 + 5: PaymentType appStoreCode;
  561 + 6: string language;
  562 + 7: PaymentPgType pgCode;
  563 + 8: string redirectUrl;
  564 +}
  565 +
466 566 struct CompactContact {
467 567 1: string mid;
468 568 2: i64 createdTime;
... ... @@ -587,6 +687,82 @@ struct Operation {
587 687 20: Message message;
588 688 }
589 689  
  690 +struct PaymentReservation {
  691 + 1: string receiverMid;
  692 + 2: string productId;
  693 + 3: string language;
  694 + 4: string location;
  695 + 5: string currency;
  696 + 6: string price;
  697 + 7: PaymentType appStoreCode;
  698 + 8: string messageText;
  699 + 9: i32 messageTemplate;
  700 + 10: i64 packageId;
  701 +}
  702 +
  703 +struct PaymentReservationResult {
  704 + 1: string orderId;
  705 + 2: string confirmUrl;
  706 + 3: map<string, string> extras;
  707 +}
  708 +
  709 +struct Product {
  710 + 1: string productId;
  711 + 2: i64 packageId;
  712 + 3: i32 version;
  713 + 4: string authorName;
  714 + 5: bool onSale;
  715 + 6: i32 validDays;
  716 + 7: i32 saleType;
  717 + 8: string copyright;
  718 + 9: string title;
  719 + 10: string descriptionText;
  720 + 11: i64 shopOrderId;
  721 + 12: string fromMid;
  722 + 13: string toMid;
  723 + 14: i64 validUntil;
  724 + 15: i32 priceTier;
  725 + 16: string price;
  726 + 17: string currency;
  727 + 18: string currencySymbol;
  728 + 19: PaymentType paymentType;
  729 + 20: i64 createDate;
  730 + 21: bool ownFlag;
  731 + 22: ProductEventType eventType;
  732 + 23: string urlSchema;
  733 + 24: string downloadUrl;
  734 + 25: string buddyMid;
  735 + 26: i64 publishSince;
  736 + 27: bool newFlag;
  737 + 28: bool missionFlag;
  738 +}
  739 +
  740 +struct ProductList {
  741 + 1: bool hasNext;
  742 + 4: i64 bannerSequence;
  743 + 5: ProductBannerLinkType bannerTargetType;
  744 + 6: string bannerTargetPath;
  745 + 7: list<Product> productList_;
  746 + 8: string bannerLang;
  747 +}
  748 +
  749 +struct ProductSimple {
  750 + 1: string productId;
  751 + 2: i64 packageId;
  752 + 3: i32 version;
  753 + 4: bool onSale;
  754 + 5: i64 validUntil;
  755 +}
  756 +
  757 +struct ProductSimpleList {
  758 + 1: bool hasNext;
  759 + 2: i32 reinvokeHour;
  760 + 3: i64 lastVersionSeq;
  761 + 4: list<ProductSimple> productList;
  762 + 5: i64 recentNewReleaseDate;
  763 + 6: i64 recentEventReleaseDate;
  764 +}
  765 +
590 766 struct Profile {
591 767 1: string mid;
592 768 3: string userid;
... ...