Skip to content

v0.0.11

jpay-direct-proto

transaction/transaction.proto

CheckFreeDiamondReq

FieldTypeLabelDescription
access_tokenstring
get_it_right_nowboolfalse -> 單純查, true -> 我要領

CheckFreeDiamondRes

FieldTypeLabelDescription
diamond_amountint64餘額
cooldown_secondsint64-1 為不用倒數
free_diamond_amountint64此次領取到的數量

CompleteTransactionReq

FieldTypeLabelDescription
transaction_tokenstring
diamond_paramPaymentParamsOfDiamond
creditcard_paramPaymentParamsOfCreditCard
ecpay_inpay_paramPaymentParamsOfEcpayInpay站內付
happy_pay_paramPaymentParamsOfHappypayHappypay oversea
tap_pay_paramPaymentParamsOfTapPay
jpoint_pay_paramgoogle.protobuf.Empty
cash_paramgoogle.protobuf.Empty

CompleteTransactionRes

FieldTypeLabelDescription
three_d_urlstringoptional

CreateTransactionTokenReq

FieldTypeLabelDescription
app_idstring
order_idstring
product_namestring
moneyMoney
check_codestring
callback_urlstring
redirect_urlstring
access_tokenstring
jpoint_discountint64
payment_channelsPaymentChannelrepeatedoptional 指定訂單付款方式
require_apea_twidbool

CreateTransactionTokenRes

FieldTypeLabelDescription
transaction_tokenstring
transc_idstring

CreditCard

FieldTypeLabelDescription
card_idstring
last_four_numstring
issuing_networkstring發卡機構
last_usedbool

CreditCard.Status

DiamondPackage

FieldTypeLabelDescription
idint64
namestring
usddouble
twdint64
diamond_amountint64
imgstring
descriptionstring
can_buybool
typeDiamondPackageType
ribbon_urlstring
bonus_amountint64bonus期間才會有數值 (bonus_start_at, bonus_end_at)

DiamondRecord

FieldTypeLabelDescription
trade_idstring
product_namestring
amount_beforeint64
amount_afterint64
created_atgoogle.protobuf.Timestamp
memostring

DiscountTransactionReq

FieldTypeLabelDescription
transaction_tokenstring
jpoint_discountint64

DiscountTransactionRes

FormData

FieldTypeLabelDescription
keystring
valuestring
optionsFormDataOptionsrepeated

FormDataOptions

FieldTypeLabelDescription
valuestring
textstring

GetBonusAmountReq

FieldTypeLabelDescription
access_tokenstring

GetBonusAmountRes

FieldTypeLabelDescription
amountint64可用數量

GetDiamondAmountReq

FieldTypeLabelDescription
access_tokenstring

GetDiamondAmountRes

FieldTypeLabelDescription
diamond_amountint64

GetDiamondPackagesReq

FieldTypeLabelDescription
filter_typeDiamondPackageType
access_tokenstring

GetDiamondPackagesRes

FieldTypeLabelDescription
packagesDiamondPackagerepeated

GetDiamondRecordReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
typeDiamondRecordType

GetDiamondRecordRes

FieldTypeLabelDescription
recordsDiamondRecordrepeated
totalint64

GetExchangeRateReq

GetExchangeRateRes

FieldTypeLabelDescription
usd_to_twdint64

GetFreeDiamondAmountReq

FieldTypeLabelDescription
access_tokenstring

GetFreeDiamondAmountRes

FieldTypeLabelDescription
amountint64可用數量

GetFreeDiamondEarnTimesReq

FieldTypeLabelDescription
access_tokenstring

GetFreeDiamondEarnTimesRes

FieldTypeLabelDescription
earn_timesint64獲得次數

GetPaymentInfoReq

FieldTypeLabelDescription
transaction_tokenstringtranasaction token
jpoint_discountint64optional

GetPaymentInfoRes

FieldTypeLabelDescription
payment_methodsPaymentMethodrepeated
invoice_settingInvoiceSetting

GetPurchaseRecordReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64
start_completed_atgoogle.protobuf.Timestamp
end_completed_atgoogle.protobuf.Timestamp
currencyCurrency
app_idstringoptional

GetPurchaseRecordRes

FieldTypeLabelDescription
recordsPurchaseRecordrepeated
totalint64

GetTransactionTokenReq

FieldTypeLabelDescription
app_idstring
transc_idstring
check_codestring

GetTransactionTokenRes

FieldTypeLabelDescription
transaction_tokenstring

InvoiceSetting

FieldTypeLabelDescription
emailstring
phone_carrierstring
id_carrierstring
donate_codestring
last_usedInvoiceType

Money

FieldTypeLabelDescription
currencyCurrency
priceint64
display_currencyCurrency
display_priceint64

PaymentMethod

FieldTypeLabelDescription
payment_method_idstring
typePaymentTypemethod creditcard, diamond
payment_channelPaymentChannel
bound_credit_cardCreditCardrepeatedonly response data on channel = creditcard
is_allow_new_credit_cardbool
is_form_postbool是否為 form post
form_post_urlstring
form_post_dataFormDatarepeated
ecpay_inpay_tokenstring
last_usedbool
invoice_statusInvoiceStatus
upstream_app_idstring
upstream_app_keystring

PaymentParamsOfCreditCard

FieldTypeLabelDescription
creditcard_idstring

PaymentParamsOfDiamond

PaymentParamsOfEcpayInpay

FieldTypeLabelDescription
pay_tokenstring

PaymentParamsOfHappypay

FieldTypeLabelDescription
creditcard_idstring

PaymentParamsOfTapPay

FieldTypeLabelDescription
creditcard_idstring
prime_tokenstring
remember_cardbool

PurchaseDiamondReq

FieldTypeLabelDescription
access_tokenstring
diamond_package_idint64
redirect_urlstring
ga4_client_idstringfor ga4
ga4_page_titlestring
ga4_page_pathstring
ga4_session_idstring

PurchaseRecord

FieldTypeLabelDescription
trade_idstring
product_namestring
received_amountint64
currencyCurrency
completed_atgoogle.protobuf.Timestamp
received_jpointint64
application_namestring

QueryTransactionReq

FieldTypeLabelDescription
app_idstring
transc_idstringtrade_id
check_codestring

QueryTransactionRes

FieldTypeLabelDescription
transc_idstring
order_idstring
product_namestring
currencyCurrency
priceint64總價
received_amountint64實收金額
received_jpointint64實收 JPoints
created_atgoogle.protobuf.Timestamp
completed_atgoogle.protobuf.Timestamp
statusTransactionStatus
pay_atgoogle.protobuf.Timestamp

RefundTransactionReq

FieldTypeLabelDescription
app_idstring
transc_idstringtrade_id
check_codestring
refund_feedouble退款金額
refund_reasonstring退款原因

RefundTransactionRes

FieldTypeLabelDescription
statusRefundTransactionStatus

SetPaymentMethodReq

FieldTypeLabelDescription
payment_method_idstring
transaction_tokenstring

SetPaymentMethodRes

SetTransactionInvoiceReq

FieldTypeLabelDescription
transaction_tokenstring
invoice_typeInvoiceType
invoice_datastring
reference_trade_idstringoptional, 可以將此筆訂設定為某筆訂單的開發票方式

SetTransactionInvoiceRes

TotalDepositAmountsReq

FieldTypeLabelDescription
access_tokenstring

TotalDepositAmountsRes

FieldTypeLabelDescription
twdint64
diamond_amountint64

TransactionTokenInfoReq

FieldTypeLabelDescription
transaction_tokenstring

TransactionTokenInfoRes

FieldTypeLabelDescription
product_namestring
moneyMoney
jpoint_discountint64
jpoint_descriptionstring
platformstring
required_apea_twidbool

UseBonusDiamondReq

FieldTypeLabelDescription
access_tokenstring

UseBonusDiamondRes

FieldTypeLabelDescription
diamond_amountint64餘額
available_amountint64可用數量
free_diamond_amountint64此次領取到的數量

WSMessage

FieldTypeLabelDescription
typeWSMessageType
messagestring
to_object_idstring

CreditCard.Status.Value

NameNumberDescription
None0
Temporary1

Currency

NameNumberDescription
None0
TWD1
USD2
DIAMOND3
USDCENTS4

DiamondPackageType

NameNumberDescription
DPT_ONCE0
DPT_DAILY1
DPT_MONTHLY2
DPT_LIFETIME3
DPT_ALL999

DiamondRecordType

NameNumberDescription
DRT_ALL0
DRT_CREATE1
DRT_PAYMENT2

ErrCTCode

NameNumberDescription
ErrCTCNotSet0
ErrCTCCardExpired11001the creditcard is expired
ErrCTCPaymentFailed11002failed to pay via the gateway
ErrCTCCardInfoIncorrect11003the creditcard number does not exist
ErrCTCCardInsufficientBalance11004the balance of the creditcard is insufficient
ErrCTCCardBankDeclined11005the creditcard was declined by the bank, please contact the bank
ErrCTCRetryLater11006please retry the payment later
ErrCTCCardExistsWithToken11007the creditcard has been bound with the user with the card token
ErrCTCCard3DFailed11008the creditcard did not pass 3D verification
ErrCTCContactTicketCenter11009please contact our customer service or submit a ticket

InvoiceStatus

NameNumberDescription
Invoice0
Receipt1
ReceiptPdf2

InvoiceType

NameNumberDescription
NotSet0
Email1
Phone2
ID3
Donate4
Pdf5

PaymentChannel

NameNumberDescription
Creditcard0通用-信用卡-串接模式
Diamond3鑽石購買
ECPAY_INPAY4綠界-INPAY
ATM5ATM
CVS6便利商店
HAPPYPAY_OVERSEAS7HappyPay-信用卡-串接模式
CreditcardTapPay8TapPay-信用卡-串接模式
NOT_SET9
Jpoint10JPoints 全額折抵
Cash11現金

PaymentType

NameNumberDescription
Domestic_Type0
Foreign_Type1
Diamond_Type2
ATM_Type3
CSV_Type4
NOT_SET_Type5
Jpoint_Type6
Cash_Type7

RefundTransactionStatus

NameNumberDescription
RTS_FAILED0取消訂單失敗
RTS_REFUNDED_WITHOUT_WITHDRAWAL1取消訂單成功,金流未退款
RTS_REFUNDED2取消訂單成功,金流已退款

TransactionStatus

NameNumberDescription
TS_NOTSET0狀態異常
TS_REFUNDED1已退款
TS_FAILED2訂單失敗, 逾期未付
TS_CREATED3尚未付款
TS_SUCCEEDED4訂單成功
TS_REFUNDED_WITHOUT_WITHDRAWAL5訂單已取消,金流未退款

WSMessageType

NameNumberDescription
WST_DIAMONDCHANGE0
WST_ANNOUNCEMENT1

TransactionService

Method NameRequest TypeResponse TypeDescription
CreateTransactionTokenCreateTransactionTokenReqCreateTransactionTokenRes後端呼叫 生成一個可以付款的 transaction token
GetTransactionTokenGetTransactionTokenReqGetTransactionTokenRes使用trade_id 產生 transaction token
QueryTransactionQueryTransactionReqQueryTransactionRes查詢訂單狀態
RefundTransactionRefundTransactionReqRefundTransactionRes訂單退款
TransactionTokenInfoTransactionTokenInfoReqTransactionTokenInfoRes取得交易資訊
DiscountTransactionDiscountTransactionReqDiscountTransactionRes用戶使用jpoint 折抵
GetPaymentInfoGetPaymentInfoReqGetPaymentInfoRes取得 transaction token 的付款資訊
SetPaymentMethodSetPaymentMethodReqSetPaymentMethodRes設定訂單付費方式,前端於付費FORM POST前呼叫,記錄訂單付費方式,若在金流端發生異常沒有返回,要查單時才知去哪家金流查
CompleteTransactionCompleteTransactionReqCompleteTransactionRes完成 transaction token 付款
SetTransactionInvoiceSetTransactionInvoiceReqSetTransactionInvoiceRes設定訂單的發票資訊
GetPurchaseRecordGetPurchaseRecordReqGetPurchaseRecordRes取得購買紀錄
GetExchangeRateGetExchangeRateReqGetExchangeRateResother
GetDiamondAmountGetDiamondAmountReqGetDiamondAmountResjkf red diamond 以下api移到donate/diamond.proto 取得鑽石數量
PurchaseDiamondPurchaseDiamondReqCreateTransactionTokenRes購買鑽石
GetDiamondPackagesGetDiamondPackagesReqGetDiamondPackagesRes取得可以購買的鑽石方案
GetFreeDiamondAmountGetFreeDiamondAmountReqGetFreeDiamondAmountRes取得超值方案總量
CheckFreeDiamondCheckFreeDiamondReqCheckFreeDiamondRes查詢/領取 免費鑽石
GetBonusAmountGetBonusAmountReqGetBonusAmountRes取得超值方案總量
UseBonusDiamondUseBonusDiamondReqUseBonusDiamondRes使用 超值方案
GetFreeDiamondEarnTimesGetFreeDiamondEarnTimesReqGetFreeDiamondEarnTimesRes取得免費鑽石獲得次數
GetDiamondRecordGetDiamondRecordReqGetDiamondRecordRes取得鑽石異動紀錄
TotalDepositAmountsTotalDepositAmountsReqTotalDepositAmountsRes取得儲值鑽石總額

****************************************** |

model/data_config.proto

model/model.proto

AdminAppPsg

group by app_id, type

FieldTypeLabelDescription
idint64
app_idstring
psg_idstring
psg_method_idstring
typetransaction.PaymentType
statusPsgMethodStatus
priorityint64

Ga4Parameter

Ga4Parameter : Ga4參數

FieldTypeLabelDescription
ga4_client_idstring
ga4_page_titlestring
ga4_page_pathstring
ga4_session_idstring
ga4_engagement_time_msecstring

Psg

FieldTypeLabelDescription
idstring
namestring
providerstring
merchant_idstring
data_configstring
statusint64
invoice_statusint64
create_atgoogle.protobuf.Timestamp

PsgMethod

FieldTypeLabelDescription
idstring
namestring
psgPsg
channeltransaction.PaymentChannel
typetransaction.PaymentTypeoneof data_config
statusPsgMethodStatus

PsgMethodStatus

NameNumberDescription
Close0
Open1

activity/activity.proto

AchievementItem

FieldTypeLabelDescription
item_idint64
namestring
item_typestring
img_urlstring
completedbool

Activity

ActivityData

FieldTypeLabelDescription
activity_idint64
namestring
icon_linkstring此欄位會先回傳空值
activity_link_urlstring
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp

ActivityIDRes

FieldTypeLabelDescription
activity_idint64

ActivityInfo

struct

FieldTypeLabelDescription
gift_namestring
gift_image_urlstring
amountint64
lady_rankstring
top_fan_namestring
top_fan_avatarstring
activity_link_urlstring
activity_typeint64
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp

ActivityInfoRes

FieldTypeLabelDescription
activity_idint64
namestring
free_itemItem
paid_itemItem
giftGiftItemrepeated
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
main_typeActivity.MainType
use_level_titlebool
use_level_colorbool
lady_level_typeActivity.LadyLevelType

ActivityPackage

FieldTypeLabelDescription
namestring
diamond_priceint64
img_urlstring
package_idint64
descriptionstring
can_buybool
cooldown_secondsint64-1 為不用倒數
typeActivityPackage.ActivityPackageType

ActivityTopLady

struct

FieldTypeLabelDescription
namestring
avatarstring
pointsint64
top_fan_namestring
uidint64

BackpackItem

FieldTypeLabelDescription
item_idint64
namestring
img_urlstring
target_modeint64
amountint64
jkfuidint64

BackpackTargetItem

FieldTypeLabelDescription
item_idint64
namestring
item_typestring
img_urlstring
amountint64
target_idint64
target_titlestring
jkfuidint64

BannerInfo

struct

FieldTypeLabelDescription
namestring
image_urlstring
link_urlstring

BuyPackageReq

FieldTypeLabelDescription
access_tokenstring
package_idint64
ga4_client_idstringDeprecated.
ga4_page_titlestringDeprecated.
ga4_page_pathstringDeprecated.
ga4_session_idstringDeprecated.
ga4_parametermodel.Ga4Parameter

EmptyReq

EmptyRes

EquipItemReq

FieldTypeLabelDescription
access_tokenstring
item_idint64

EquipItemV2Req

FieldTypeLabelDescription
access_tokenstring
item_idint64
target_idint64

Fan

FieldTypeLabelDescription
object_idstring
pointsint64

FanDetail

FieldTypeLabelDescription
namestring
pointsint64
avatarstring

GetActivityBannerListReq

FieldTypeLabelDescription
activity_idint64

GetActivityBannerListRes

FieldTypeLabelDescription
banner_infoBannerInforepeated

GetActivityItemAmountReq

FieldTypeLabelDescription
access_tokenstring女郎token
uuidint64女郎uuid
activity_idint64活動編號

GetActivityItemAmountRes

FieldTypeLabelDescription
activity_item_amountsLadyActivityItemAmountrepeated

GetActivityListByLadyReq

FieldTypeLabelDescription
object_idstring女郎 object_id(uuid)
uidint64女郎 uid

GetActivityListByLadyRes

FieldTypeLabelDescription
dataActivityDatarepeated

GetActivityListReq

FieldTypeLabelDescription
object_idstring女郎 object_id(uuid)
uidint64女郎 uid

GetActivityListRes

FieldTypeLabelDescription
infoActivityInforepeated

GetActivitySpecialTopFansReq

GetActivitySpecialTopFansRes

FieldTypeLabelDescription
fansFanDetailrepeated

GetActivityTopFansReq

FieldTypeLabelDescription
activity_idint64
item_idActivityItemIdoptional

GetActivityTopFansRes

FieldTypeLabelDescription
fansFanDetailrepeated

GetActivityTopLadyReq

FieldTypeLabelDescription
activity_idint64

GetActivityTopLadyRes

FieldTypeLabelDescription
ladiesActivityTopLadyrepeated

GetInfoByIDReq

FieldTypeLabelDescription
activity_idint64

GetItemInfoReq

FieldTypeLabelDescription
access_tokenstring
activity_idint64

GetLadyActivityBonusThresholdReq

FieldTypeLabelDescription
access_tokenstring女郎 token
activity_idint64活動編號

GetLadyActivityBonusThresholdRes

FieldTypeLabelDescription
Currentint64
Rewardint64
Nextint64

GetLadyActivityReq

FieldTypeLabelDescription
object_idstring女郎 UUID
activity_idint64活動編號

GetLadyActivityRes

FieldTypeLabelDescription
current_levelint64
current_pointint64
next_level_pointint64
max_levelint64
main_partLadyActivityPart
part1LadyActivityPart
part2LadyActivityPart
part3LadyActivityPart
part4LadyActivityPart
part5LadyActivityPart

GetLadyActivityV2Res

FieldTypeLabelDescription
ladyLevelInfo
targetsTargetLevelInforepeated
lady_rankRankInfo
max_levelint64
mainTargetActivityPartrepeatedrepeated TargetActivityPart sub = 12;

GetLadyTopFansReq

FieldTypeLabelDescription
object_idstring
activity_idint64

GetLadyTopFansRes

FieldTypeLabelDescription
fansFanrepeated

GetMainGiftReq

FieldTypeLabelDescription
activity_idint64

GetMainGiftRes

FieldTypeLabelDescription
gift_urlstring
gift_namestring

GetMemberRankReq

FieldTypeLabelDescription
access_tokenstring
activity_idint64

GetMemberRankRes

FieldTypeLabelDescription
user_rankint64
avatarstring

GetMyBackpackItemListReq

FieldTypeLabelDescription
access_tokenstring
activity_idint64

GetMyBackpackItemListRes

FieldTypeLabelDescription
my_itemsBackpackItemrepeated
equipable_itemsBackpackItemrepeated
achievement_itemsAchievementItemrepeated

GetMyBackpackItemListV2Res

FieldTypeLabelDescription
my_itemsBackpackItemrepeated
equipable_itemsBackpackTargetItemrepeated
achievement_itemsAchievementItemrepeated

GetNotificationReq

FieldTypeLabelDescription
access_tokenstring

GetNotificationRes

FieldTypeLabelDescription
messagestring
img_urlstring
notify_atgoogle.protobuf.Timestamp
titlestring
unread_countint64
amountint64

GetPackageInfoReq

FieldTypeLabelDescription
activity_idint64
accessTokenstring

GetPackageInfoRes

FieldTypeLabelDescription
packagesActivityPackagerepeated

GetProgressOfBonusSkinReq

FieldTypeLabelDescription
access_tokenstring
activity_idint64

GetProgressOfBonusSkinRes

FieldTypeLabelDescription
progressesProgressOfBonusSkinrepeated

GetSpecialMemberRankReq

FieldTypeLabelDescription
access_tokenstring

GetSpecialMemberRankRes

FieldTypeLabelDescription
user_rankint64
avatarstring

GiftInfo

FieldTypeLabelDescription
namestring
amountint64
image_urlstring

GiftItem

FieldTypeLabelDescription
item_idint64
gift_idint64
itemItem

Item

FieldTypeLabelDescription
namestring
img_urlstring
point_typeItem.PointType
target_modeItem.TargetMode

ItemActivityPart

FieldTypeLabelDescription
item_idint64
namestring
item_typestring
skin_namestring
amountint64

LadyActivityItemAmount

FieldTypeLabelDescription
activity_idint64
activity_namestring
activity_typeActivityType
giftGiftInforepeated禮物列表
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp

LadyActivityPart

FieldTypeLabelDescription
skin_namestring
amountint64

LadyReceivedRecord

FieldTypeLabelDescription
fan_object_idstring
item_typestring
item_namestring
amountint64
img_urlstring
received_atgoogle.protobuf.Timestamp

LadyReceivedRecordsReq

FieldTypeLabelDescription
activity_idint64
lady_object_idstring
received_beforegoogle.protobuf.Timestamp
limitint64

LadyReceivedRecordsRes

FieldTypeLabelDescription
recordsLadyReceivedRecordrepeated

LevelInfo

FieldTypeLabelDescription
current_levelint64
current_pointint64
next_level_pointint64
decorationsstringrepeatedonly equipped Place title skin_name or color code

MyFreeItemRes

FieldTypeLabelDescription
amountint64
next_cooldown_secondsint64下個獲得道具的時間, 如果已經滿的話則回傳 -1
receive_pointint64本次獲得的隨機點數

MyPaidItemRes

FieldTypeLabelDescription
amountint64

ProgressOfBonusSkin

FieldTypeLabelDescription
item_idint64
current_amountint64
threshold_amountint64if can't receive bonus return -1

RankInfo

FieldTypeLabelDescription
pointint64總積分
levelint64積分排行榜名次

RedeemCodeReq

FieldTypeLabelDescription
access_tokenstring
codestring

SendItemReq

FieldTypeLabelDescription
access_tokenstring
item_idint64
object_idstring
amountint64
ga4_client_idstring

SendItemRes

FieldTypeLabelDescription
amountint64
receive_pointint64本次獲得的隨機點數

SendItemV2Req

FieldTypeLabelDescription
access_tokenstring
item_idint64
object_idstring
amountint64
target_idint64

TargetActivityPart

Only equipped

FieldTypeLabelDescription
target_idint64
target_namestring
itemsItemActivityPartrepeated

TargetLevelInfo

FieldTypeLabelDescription
target_idint64
target_namestring
level_infoLevelInfo

TransactionRes

FieldTypeLabelDescription
transaction_tokenstring

UseItemReq

FieldTypeLabelDescription
access_tokenstring
activity_idint64
object_idstring
amountint64

UseItemV2Req

FieldTypeLabelDescription
access_tokenstring
activity_idint64
object_idstring
amountint64
target_idint64

UsePaidItemRes

FieldTypeLabelDescription
amountint64
receive_pointint64本次獲得的隨機點數

Activity.LadyLevelType

NameNumberDescription
ItemLog0
TargetsMin1

Activity.MainType

NameNumberDescription
DecorateLayout0
BetGame1
EducationDolls2

ActivityItemId

NameNumberDescription
AII_ALL0
AII_BET_AMOUNT21
AII_PAYOUT22

ActivityPackage.ActivityPackageType

NameNumberDescription
Normal0
Limited1

ActivityType

NameNumberDescription
DEFAULT0
FACE1
LIVE2

Item.PointType

NameNumberDescription
Static0
BetRecord1
Random2

Item.TargetMode

NameNumberDescription
NoOne0
SingleOne1
ShareByRate2

RedeemCodeReq.RedeemErr

NameNumberDescription
NotErr0
TryLater1001
Redeemed1002
NotExist1003

ActivityService

Method NameRequest TypeResponse TypeDescription
GetCurrentEmptyReqActivityIDRes活動 取得現在進行中的活動資訊 ( status = 1 )
GetFeedsCurrentEmptyReqActivityIDRes
GetInfoByIDGetInfoByIDReqActivityInfoRes取得活動資訊 ( status = 1 )
GetLadyActivityGetLadyActivityReqGetLadyActivityRes女郎活動裝飾列表: [OLD] decorate_layout ( main + part 1 ~ 4,範例:聖誕樹 ) [OLD] bet_game ( 範例:拉霸機 )
GetLadyActivityV2GetLadyActivityReqGetLadyActivityV2Resk = count( activity_target ) n = count( activity_item, item_type = skin, position = main ) m = count( activity_item, item_type = skin, position = part ) o = ( activity use_point_level ) && count( activity_item, item_type = title, position = title ) [NEW] education_dolls ( main[k][n] + part[k][m] + title[o],範例:美蛇雙姬 )
GetLadyReceivedRecordsLadyReceivedRecordsReqLadyReceivedRecordsRes取得某女郎的接受道具記錄
GetLadyTopFansGetLadyTopFansReqGetLadyTopFansRes取得某個女郎的前十大粉絲
GetMyFreeItemGetItemInfoReqMyFreeItemRes道具 取得免費活動道具資訊
UseFreeItemUseItemReqMyFreeItemRes使用免費活動道具
UseFreeItemV2UseItemV2ReqMyFreeItemRes
GetMyPaidItemGetItemInfoReqMyPaidItemRes取得付費活動道具資訊
UsePaidItemUseItemReqUsePaidItemRes使用付費活動道具
UsePaidItemV2UseItemV2ReqUsePaidItemRes
SendItemSendItemReqSendItemRes使用道具
SendItemV2SendItemV2ReqSendItemRes
EquipItemEquipItemReqEmptyRes女郎裝備道具
EquipItemV2EquipItemV2ReqEmptyRes
GetMyBackpackItemListGetMyBackpackItemListReqGetMyBackpackItemListRes我的背包 - 道具列表
GetMyBackpackItemListV2GetMyBackpackItemListReqGetMyBackpackItemListV2Res
RedeemCodeRedeemCodeReqEmptyRes兌換碼換造型
GetPackageInfoGetPackageInfoReqGetPackageInfoRes訂單 取得付費道具購買資訊
BuyPackageBuyPackageReqTransactionRes購買付費道具
GetNotificationGetNotificationReqGetNotificationRes獲得免費道具事件(like unread )
GetProgressOfBonusSkinGetProgressOfBonusSkinReqGetProgressOfBonusSkinRes差多少可以獲得的skin
GetActivityTopFansGetActivityTopFansReqGetActivityTopFansResLandingPage 找尋排名前10的粉絲
GetActivityTopLadyGetActivityTopLadyReqGetActivityTopLadyRes找尋排名前N的女郎
GetLadyActivityBonusThresholdGetLadyActivityBonusThresholdReqGetLadyActivityBonusThresholdRes取得女郎活動額外獎勵資訊
GetActivityListGetActivityListReqGetActivityListRes取得活動資訊清單
GetActivityBannerListGetActivityBannerListReqGetActivityBannerListRes取得活動banner清單
GetActivityItemAmountGetActivityItemAmountReqGetActivityItemAmountRes取得活動當中禮物收集數量
GetActivityListByLadyGetActivityListByLadyReqGetActivityListByLadyResGetActivityListByLady : 取得女郎參加的活動列表,由新到舊排序
GetMainGiftGetMainGiftReqGetMainGiftResGetMainGift 取得活動主要禮物
GetMemberRankGetMemberRankReqGetMemberRankResGetMemberRank 取得會員活動名次
GetActivitySpecialTopFansGetActivitySpecialTopFansReqGetActivitySpecialTopFansRes特規騎士榜 GetActivitySpecialTopFans 取得粉絲排名
GetSpecialMemberRankGetSpecialMemberRankReqGetSpecialMemberRankResGetMemberRank 取得會員活動名次

activity_game/activity_game.proto

GameRecord

FieldTypeLabelDescription
lady_uuidstring女郎 uuid string 36
user_idstringuuid account string
bet_idstring注單編號 string
bet_amountint64注單金額
payoutint64派彩金額
win_lossint64輸贏

GetGameRecordsReq

FieldTypeLabelDescription
game_idstring
min_idint64
limitint64

GetGameRecordsRes

FieldTypeLabelDescription
game_recordsGameRecordrepeated
max_idint64

ActivityGameService

Method NameRequest TypeResponse TypeDescription
GetGameRecordsGetGameRecordsReqGetGameRecordsRes取得押注記錄 ACTIVITY後端呼叫

ConsumeSourceType

ConsumeSourceType:商品分類

NameNumberDescription
CONSUME_SOURCE_TYPE_UNSPECIFIED0
CONSUME_SOURCE_TYPE_GIFT1donate 禮物
CONSUME_SOURCE_TYPE_DIAMOND_PACKAGE2donate 紅鑽禮包
CONSUME_SOURCE_TYPE_ACTIVITY_PACKAGE3donate 遊戲機禮包
CONSUME_SOURCE_TYPE_TICKET4board 預約門票
CONSUME_SOURCE_TYPE_CARD5board 紀念卡
CONSUME_SOURCE_TYPE_FREE_DIAMOND6donate 免費鑽石
CONSUME_SOURCE_TYPE_COIN_PACKAGE7donate Face券禮包
CONSUME_SOURCE_TYPE_COIN8donate Face券

CurrencyType

CurrencyType:幣別分類

NameNumberDescription
CURRENCY_TYPE_UNSPECIFIED0
CURRENCY_TYPE_TWD1
CURRENCY_TYPE_DIAMOND2
CURRENCY_TYPE_COIN3

OrderStatus

OrderStatus : 訂單狀態

NameNumberDescription
ORDER_STATUS_CREATED0
ORDER_STATUS_COMPLETED1
ORDER_STATUS_FAILED-1
ORDER_STATUS_REFUND-2

ProfitType

ProfitType : 分潤類別

NameNumberDescription
PROFIT_TYPE_UNSPECIFIED0
PROFIT_TYPE_SIX1
PROFIT_TYPE_SEVEN2

RechargePackageType

RechargePackageType:鑽石/Face券禮包分類

NameNumberDescription
RPT_DIAMOND_ONCE0
RPT_DIAMOND_DAILY1
RPT_DIAMOND_MONTHLY2
RPT_DIAMOND_LIFETIME3
RPT_COIN_ONCE4
RPT_COIN_LIFETIME5
RPT_ALL999

TradeStatus

TradeStatus:訂單狀態

NameNumberDescription
TRADE_STATUS_UNSPECIFIED0
TRADE_STATUS_REFUND-2已退單
TRADE_STATUS_FAILED-1交易失敗
TRADE_STATUS_CREATE_ORDER1創立訂單
TRADE_STATUS_ADD_AMOUNT_SUCCESS2儲值成功
TRADE_STATUS_SUB_AMOUNT_SUCCESS3交易完成

ConsumeDiamondReq

FieldTypeLabelDescription
tokenstring
member_object_idstring
transc_idstring
diamond_amountint64
product_namestring
sourcedonateenums.ConsumeSourceType
is_voucherbool
voucher_idint64
platformstring
amountint64
source_idint64

ConsumeDiamondRes

RefundDiamondReq

FieldTypeLabelDescription
tokenstring
transc_idstring
diamond_amountint64需要退款的總額 舉例: 商品100元 要抽10%手續費的話 要回傳90
sourcedonateenums.ConsumeSourceType
memostring

RefundDiamondRes

DiamondDirectService

Method NameRequest TypeResponse TypeDescription
ConsumeDiamondConsumeDiamondReqConsumeDiamondRes消費鑽石
RefundDiamondRefundDiamondReqRefundDiamondRes退鑽石

CoinPackage

FieldTypeLabelDescription
idint64
namestring
usddouble
twdint64
amountint64
can_buybool
typedonateenums.RechargePackageType
ribbon_urlstring
descriptionstring

GetCoinAmountReq

FieldTypeLabelDescription
access_tokenstring

GetCoinAmountRes

FieldTypeLabelDescription
amountint64

GetCoinPackagesReq

FieldTypeLabelDescription
access_tokenstring

GetCoinPackagesRes

FieldTypeLabelDescription
packagesCoinPackagerepeated

PurchaseCoinReq

FieldTypeLabelDescription
access_tokenstring
package_idint64
redirect_urlstring
ga4_client_idstring
ga4_page_titlestring
ga4_page_pathstring
ga4_session_idstring

PurchaseCoinRes

FieldTypeLabelDescription
transaction_tokenstring
transaction_idstring

CoinService

Method NameRequest TypeResponse TypeDescription
GetCoinAmountGetCoinAmountReqGetCoinAmountRes取得Face券數量
GetCoinPackagesGetCoinPackagesReqGetCoinPackagesRes取得可以購買的Face券方案 [已搬移到face]
PurchaseCoinPurchaseCoinReqPurchaseCoinRes購買Face券 [已搬移到face]

CheckFreeDiamondReq

FieldTypeLabelDescription
access_tokenstring
get_it_right_nowboolfalse -> 單純查, true -> 我要領

CheckFreeDiamondRes

FieldTypeLabelDescription
diamond_amountint64餘額
cooldown_secondsint64-1 為不用倒數
free_diamond_amountint64此次領取到的數量

DiamondPackage

FieldTypeLabelDescription
idint64
namestring
usddouble
twdint64
diamond_amountint64
imgstring
descriptionstring
can_buybool
typeDiamondPackageType棄用
ribbon_urlstring
bonus_amountint64bonus期間才會有數值 (bonus_start_at, bonus_end_at)
package_typedonateenums.RechargePackageType

DiamondRecord

FieldTypeLabelDescription
trade_idstring
product_namestring
amount_beforeint64
amount_afterint64
created_atgoogle.protobuf.Timestamp
memostring

GetBonusAmountReq

FieldTypeLabelDescription
access_tokenstring

GetBonusAmountRes

FieldTypeLabelDescription
amountint64可用數量

GetDiamondAmountReq

FieldTypeLabelDescription
access_tokenstring

GetDiamondAmountRes

FieldTypeLabelDescription
diamond_amountint64

GetDiamondPackagesReq

FieldTypeLabelDescription
filter_typeDiamondPackageType棄用
access_tokenstring
package_typedonateenums.RechargePackageType

GetDiamondPackagesRes

FieldTypeLabelDescription
packagesDiamondPackagerepeated

GetDiamondRecordReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
typeDiamondRecordType

GetDiamondRecordRes

FieldTypeLabelDescription
recordsDiamondRecordrepeated
totalint64

GetFreeDiamondAmountReq

FieldTypeLabelDescription
access_tokenstring

GetFreeDiamondAmountRes

FieldTypeLabelDescription
amountint64可用數量

GetFreeDiamondEarnTimesReq

FieldTypeLabelDescription
access_tokenstring

GetFreeDiamondEarnTimesRes

FieldTypeLabelDescription
earn_timesint64獲得次數

PurchaseDiamondReq

FieldTypeLabelDescription
access_tokenstring
diamond_package_idint64
redirect_urlstring
ga4_client_idstring
ga4_page_titlestring
ga4_page_pathstring
ga4_session_idstring

PurchaseDiamondRes

FieldTypeLabelDescription
transaction_tokenstring
transaction_idstring

UseBonusDiamondReq

FieldTypeLabelDescription
access_tokenstring

UseBonusDiamondRes

FieldTypeLabelDescription
diamond_amountint64餘額
available_amountint64可用數量
free_diamond_amountint64此次領取到的數量

DiamondPackageType

棄用

NameNumberDescription
DPT_ONCE0
DPT_DAILY1
DPT_MONTHLY2
DPT_LIFETIME3
DPT_ALL999

DiamondRecordType

NameNumberDescription
DRT_ALL0
DRT_CREATE1
DRT_PAYMENT2

DiamondService

Method NameRequest TypeResponse TypeDescription
GetDiamondAmountGetDiamondAmountReqGetDiamondAmountRes取得鑽石數量
PurchaseDiamondPurchaseDiamondReqPurchaseDiamondRes購買鑽石 [已搬移到face]
GetDiamondPackagesGetDiamondPackagesReqGetDiamondPackagesRes取得可以購買的鑽石方案 [已搬移到face]
CheckFreeDiamondCheckFreeDiamondReqCheckFreeDiamondRes查詢/領取 免費鑽石
GetBonusAmountGetBonusAmountReqGetBonusAmountRes取得超值方案總量
UseBonusDiamondUseBonusDiamondReqUseBonusDiamondRes使用 超值方案
GetFreeDiamondEarnTimesGetFreeDiamondEarnTimesReqGetFreeDiamondEarnTimesRes取得免費鑽石獲得次數
GetFreeDiamondAmountGetFreeDiamondAmountReqGetFreeDiamondAmountRes取得超值方案總量
GetDiamondRecordGetDiamondRecordReqGetDiamondRecordRes取得鑽石異動紀錄

BadgeInfos

FieldTypeLabelDescription
titlestring
iconstring
linkstring
orderint64
achieve_atgoogle.protobuf.Timestamp

BuyGiftReq

FieldTypeLabelDescription
access_tokenstring
gift_idint64
messagestring
to_object_idstring
amountint64
ga4_client_idstringDeprecated.
ga4_page_titlestringDeprecated.
ga4_page_pathstringDeprecated.
ga4_session_idstringDeprecated.
ga4_parametermodel.Ga4Parameter

BuyGiftRes

FieldTypeLabelDescription
transaction_tokenstring
order_idstring

DonateRecord

FieldTypeLabelDescription
order_nostring
product_namestring
product_amountint64
object_idstring
completed_atgoogle.protobuf.Timestamp

GetDonateRecordReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64
start_completed_atgoogle.protobuf.Timestamp
end_completed_atgoogle.protobuf.Timestamp
lady_object_idstring

GetDonateRecordRes

FieldTypeLabelDescription
recordsDonateRecordrepeated
totalint64

GetGiftHistoryReq

FieldTypeLabelDescription
access_tokenstringoptional
object_idstring取得誰的
yearint64
monthint64
pageint64
limitint64
time_zoneint64必填, -12 ~ 12, 錯誤格式回傳 +8 時區資料

GetGiftHistoryRes

FieldTypeLabelDescription
gift_historyGiftHistoryrepeated
totalint64

GetGiftPackagesReq

FieldTypeLabelDescription
star_object_idstring

GetGiftPackagesRes

FieldTypeLabelDescription
gift_packagesGiftPackagerepeated

GetMyUnreadGiftReq

FieldTypeLabelDescription
access_tokenstring

GetMyUnreadGiftRes

FieldTypeLabelDescription
gift_historyGiftHistory
countint64

GetRewardDetailInfo

FieldTypeLabelDescription
order_nostring訂單編號
gift_infoGetRewardDetailInfo.GiftInfo禮物資訊
amountint64送禮數量
completed_atgoogle.protobuf.Timestamp贊助完成時間
member_infoGetRewardDetailInfo.MemberInfo會員資訊
usddouble分潤金額

GetRewardDetailInfo.GiftInfo

FieldTypeLabelDescription
namestring禮物名稱

GetRewardDetailInfo.MemberInfo

FieldTypeLabelDescription
object_idstring會員 object_id

GetRewardDetailV2Req

FieldTypeLabelDescription
access_tokenstring[必填] token
yearint64[必填] 資料年份
monthint64[必填] 資料月份
pageint64[必填] 分頁頁數
limitint64[必填] 分頁筆數
donatorstringdonate 用戶姓名
time_zoneint64[必填], -12 ~ 12, 錯誤格式回傳 +8 時區資料

GetRewardDetailV2Res

FieldTypeLabelDescription
reward_detail_dataGetRewardDetailInforepeated
totalint64查詢時間段的總數量

GetRewardHistoryV2Req

FieldTypeLabelDescription
access_tokenstring

GetRewardHistoryV2Res

FieldTypeLabelDescription
current_period_amountdouble
previous_period_amountdouble
unpaid_amountdouble
total_amountdouble總收益
gift_scaleGetRewardHistoryV2Res.GiftScale禮物比例

GetRewardHistoryV2Res.GiftScale

FieldTypeLabelDescription
event_gift_percentint64應援比例
live_gift_percentint64直播比例

GetUserBadgesReq

FieldTypeLabelDescription
object_idstring取得誰的

GetUserBadgesRes

FieldTypeLabelDescription
badge_infosBadgeInfosrepeated

GetUserDetailReq

FieldTypeLabelDescription
access_tokenstring[必填] token

GetUserDetailRes

FieldTypeLabelDescription
diamond_amountint64
coin_amountint64
levelint64

GiftHistory

FieldTypeLabelDescription
object_idstring
gift_packageGiftPackage
messagestring
created_atgoogle.protobuf.Timestamp
amountint64

GiftPackage

FieldTypeLabelDescription
idint64
namestring
diamond_priceint64
imgstring
animationstring
gift_typestring

DonateService

Method NameRequest TypeResponse TypeDescription
GetGiftPackagesGetGiftPackagesReqGetGiftPackagesRes送禮方案項目
BuyGiftBuyGiftReqBuyGiftRes贈送禮物
GetGiftHistoryGetGiftHistoryReqGetGiftHistoryRes讀取女郎收到的禮物與留言x
GetMyUnreadGiftGetMyUnreadGiftReqGetMyUnreadGiftRes我未讀的禮物
GetUserBadgesGetUserBadgesReqGetUserBadgesRes讀取用戶的勳章
GetDonateRecordGetDonateRecordReqGetDonateRecordRes取得應援紀錄
GetRewardHistoryV2GetRewardHistoryV2ReqGetRewardHistoryV2Res女郎收益V2 (含總收益,禮物比例)
GetRewardDetailV2GetRewardDetailV2ReqGetRewardDetailV2Res女郎收益詳細記錄
GetUserDetailGetUserDetailReqGetUserDetailResGetUserDetail 紅鑽/Face券/等級

donateadmin/v2/admin.proto

CoinRecord

FieldTypeLabelDescription
idint64
order_nostring
user_object_idstring
user_namestring
scanner_object_idstring
scanner_namestring
amountint64
statusdonateenums.OrderStatus
update_atgoogle.protobuf.Timestamp

CoinRecordListReq

FieldTypeLabelDescription
access_tokenstring
user_object_idstringoptional
scanner_object_idstringoptional
start_atgoogle.protobuf.Timestampoptional
end_atgoogle.protobuf.Timestampoptional
pageint64
limitint64
trade_idstringoptional

CoinRecordListRes

FieldTypeLabelDescription
recordCoinRecordrepeated
totalint64

DiamondSubscribe

FieldTypeLabelDescription
idint64
object_idstring
phonestring
diamond_package_namestring
statusSubscribeStatus
invoice_typestring
invoice_datastring
created_atgoogle.protobuf.Timestamp

GetCoinRecordDetailReq

FieldTypeLabelDescription
access_tokenstring
idint64

GetCoinRecordDetailRes

FieldTypeLabelDescription
idint64
order_nostring
user_object_idstring
user_namestring
scanner_object_idstring
scanner_namestring
group_namestring
amountint64
profitdonateenums.ProfitType分潤類別
statusdonateenums.OrderStatus
created_atgoogle.protobuf.Timestamp
update_atgoogle.protobuf.Timestamp
receiver_object_idstring接收者 objectID
receiver_namestring接收者名稱

GetDiamondSubscribeListReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64
object_idstringoptional
statusSubscribeStatusoptional
phonestring

GetDiamondSubscribeListRes

FieldTypeLabelDescription
subscribesDiamondSubscriberepeated
totalint64

GetPersonalDiamondListReq

FieldTypeLabelDescription
access_tokenstring
member_object_idstring[必填]會員 objectID
sourcedonateenums.ConsumeSourceType商品分類
pageint64
limitint64

GetPersonalDiamondListRes

FieldTypeLabelDescription
infoPersonalDiamondInforepeated
member_namestring會員名稱
member_diamond_amountint64會員餘額
totalint64

GetRewardItemListReq

FieldTypeLabelDescription
secret_keystring
activity_idint64
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
statusint64

GetRewardItemListRes

FieldTypeLabelDescription
itemsRewardItemrepeated

GetSourceCoinDetailRes

FieldTypeLabelDescription
trade_idstring
sourcedonateenums.ConsumeSourceType商品分類
product_namestring商品名稱
amountint64數量
member_object_idstring會員 objectID
scanner_object_idstring掃描者 objectID
scanner_namestring掃描者名稱
group_namestring群組名稱
profitdonateenums.ProfitType分潤
receiver_object_idstring接收者 objectID
receiver_namestring接收者名稱
member_namestring會員名稱

GetSourceCoinPackageDetailRes

FieldTypeLabelDescription
trade_idstring
sourcedonateenums.ConsumeSourceType商品分類
product_namestring商品名稱
member_object_idstring會員 objectID
twd_amountint64台幣支付金額
pay_order_nostringpay 訂單號
member_namestring會員名稱

GetSourceDetailReq

FieldTypeLabelDescription
access_tokenstring
trade_idstring[必填]服務訂單號

GetSourceDiamondPackageDetailRes

FieldTypeLabelDescription
trade_idstring
sourcedonateenums.ConsumeSourceType商品分類
product_namestring商品名稱
member_object_idstring會員 objectID
twd_amountint64台幣支付金額
pay_order_nostringpay 訂單號
member_namestring會員名稱

GetSourceGiftDetailRes

FieldTypeLabelDescription
trade_idstring
sourcedonateenums.ConsumeSourceType商品分類
product_namestring商品名稱
member_object_idstring會員 objectID
lady_object_idstring女郎 objectID
lady_namestring女郎名稱
member_namestring會員名稱

GetTradeRecordListReq

FieldTypeLabelDescription
access_tokenstring
created_start_atgoogle.protobuf.Timestamp建立時間-開始
created_end_atgoogle.protobuf.Timestamp建立時間-結束
complete_start_atgoogle.protobuf.Timestamp完成時間-開始
complete_end_atgoogle.protobuf.Timestamp完成時間-結束
member_object_idstring會員 objectID
member_phonestring會員手機號碼
trade_idstring訂單號碼
statusdonateenums.TradeStatus訂單狀態
sourcedonateenums.ConsumeSourceType商品分類
pageint64
limitint64
currencydonateenums.CurrencyType幣別
pay_order_nostringpay的訂單號碼

GetTradeRecordListRes

FieldTypeLabelDescription
infoTradeRecordInforepeated
totalint64

Gift

FieldTypeLabelDescription
idint64
namestring
priceint64
imagestring
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
created_atgoogle.protobuf.Timestamp
updated_atgoogle.protobuf.Timestamp

GiftOrder

FieldTypeLabelDescription
idint64
transaction_idstring
order_nostring
total_priceint64
statusint64
created_atgoogle.protobuf.Timestamp
updated_atgoogle.protobuf.Timestamp

GiftRecord

FieldTypeLabelDescription
idint64
user_object_idstring
lady_object_idstring
giftGift
gift_amountint64
gift_orderGiftOrder
statusint640:未完成,1:完成,-1:退款
created_atgoogle.protobuf.Timestamp

GiftRecordListReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitList.Limit
user_object_idstringoptional
lady_object_idstringoptional
start_atgoogle.protobuf.Timestampoptional
end_atgoogle.protobuf.Timestampoptional

GiftRecordListRes

FieldTypeLabelDescription
recordsGiftRecordrepeated
totalint64

List

PersonalDiamondInfo

FieldTypeLabelDescription
idint64ID
trade_idstring服務訂單號
sourcedonateenums.ConsumeSourceType商品分類
before_diamondint64紅鑽異動前
after_diamondint64紅鑽異動後
diamond_amountint64紅鑽異動數
created_atgoogle.protobuf.Timestamp建立時間
memostring備註

RefundDiamondReq

FieldTypeLabelDescription
transc_idstring
order_nostring
signstring

RefundDiamondRes

RefundReq

FieldTypeLabelDescription
access_tokenstring
trade_idstring[必填]服務訂單號
sourcedonateenums.ConsumeSourceType商品分類
need_refund_feebool抽手續費

RefundRes

RewardItem

FieldTypeLabelDescription
idint64
namestring
priceint64
statusint64

TradeRecordInfo

FieldTypeLabelDescription
idint64ID
trade_idstring服務訂單號
sourcedonateenums.ConsumeSourceType商品分類
member_object_idstring會員 objectID
member_namestring會員名稱
product_namestring商品名稱
diamond_amountint64鑽石數量 // 棄用
statusdonateenums.TradeStatus訂單狀態
created_atgoogle.protobuf.Timestamp建立時間
complete_atgoogle.protobuf.Timestamp完成時間
currencydonateenums.CurrencyType幣別
amountint64數量
pay_order_nostringpay的訂單號碼

UnsubscribeDiamondReq

FieldTypeLabelDescription
access_tokenstring
object_idstring
subscribe_idint64

UnsubscribeDiamondRes

List.Limit

NameNumberDescription
Size_00
Size_1010
Size_2525
Size_5050
Size_100100

SubscribeStatus

NameNumberDescription
SB_Default0
SB_Unsubscribe1
SB_Subscribe2

AdminService

Method NameRequest TypeResponse TypeDescription
GiftRecordListGiftRecordListReqGiftRecordListRes送禮紀錄
GetDiamondSubscribeListGetDiamondSubscribeListReqGetDiamondSubscribeListRes月卡資訊
UnsubscribeDiamondUnsubscribeDiamondReqUnsubscribeDiamondRes月卡退訂
RefundDiamondRefundDiamondReqRefundDiamondResRefundDiamond 退鑽沖銷流程
GetRewardItemListGetRewardItemListReqGetRewardItemListResGetRewardItemList 取得禮物列表
GetTradeRecordListGetTradeRecordListReqGetTradeRecordListResGetTradeRecordList 取得訂單紀錄
GetPersonalDiamondListGetPersonalDiamondListReqGetPersonalDiamondListResGetPersonalDiamondList 取得紅鑽個人紀錄
GetSourceGiftDetailGetSourceDetailReqGetSourceGiftDetailResGetSourceGiftDetail 取得紅鑽禮物詳細資料
GetSourceDiamondPackageDetailGetSourceDetailReqGetSourceDiamondPackageDetailResGetSourceDiamondPackageDetail 取得紅鑽禮包詳細資料
GetSourceCoinPackageDetailGetSourceDetailReqGetSourceCoinPackageDetailResGetSourceCoinPackageDetail 取得Face券禮包詳細資料
GetSourceCoinDetailGetSourceDetailReqGetSourceCoinDetailResGetSourceCoinDetail 取得花費Face券詳細資料
RefundRefundReqRefundResRefund 退單
CoinRecordListCoinRecordListReqCoinRecordListResCoinRecordList Face轉移紀錄
GetCoinRecordDetailGetCoinRecordDetailReqGetCoinRecordDetailResGetCoinRecordDetail Face轉移紀錄詳細資料

jkfpay/transaction_api/transaction_api.proto

CreateTransactionTokenReq

FieldTypeLabelDescription
app_idstring
order_idstring
product_namestring
moneytransaction.Money
callback_urlstring
object_idstring
jpoint_discountint64
check_codestring
redirect_urlstring
require_apea_twidbool
invoice_remarkstringinvoice_remark: optional, 發票備註, 只能由產品端設定, 所以沒有在 SetTransactionInvoice 裡設定
payment_channelstransaction.PaymentChannelrepeatedpayment_channels: optional, 指定訂單付款方式

CreateTransactionTokenRes

FieldTypeLabelDescription
transaction_tokenstring
transc_idstring

TransactionApiService

Method NameRequest TypeResponse TypeDescription
CreateTransactionTokenCreateTransactionTokenReqCreateTransactionTokenRes生成 transaction token

jpay/direct/v1/base.proto

jpay/direct/v1/transaction.proto

MakeCashTransactionPayload

FieldTypeLabelDescription
jpay_app_tokenstring請使用 app_id, app_secret 產生 jpay_app_token
order_idstring產品端自訂義的訂單編號
product_namestring產品名稱
moneytransaction.Money交易金額
callback_urlstring產品端的交易結果回調網址,JPay 會在交易完成後呼叫此網址
member_uidint64用戶的 pan uid
jpoints_order_idstringoptionalJPoints platform order id
invoice_remarkstringinvoice_remark: optional, 發票備註, 只能由產品端設定, 所以沒有在 SetTransactionInvoice 裡設定

MakeCashTransactionResult

FieldTypeLabelDescription
transaction_idstringJPay 系統訂單編號

MakeCashTransactionResult.Error

MakeCashTransactionResult.Error.Code

NameNumberDescription
None0
InvalidJpayAppToken1001
InvalidOrderId1002
InvalidProductName1003
InvalidMoney1004
InvalidCallbackUrl1005
InvalidMemberUid1006
MemberPhoneNotFound1007用戶尚未綁定手機號碼,請在前端透過 cat 呼叫綁定手機號碼流程
OtherFailed9999

TransactionCommand

Method NameRequest TypeResponse TypeDescription
MakeCashTransactionMakeCashTransactionPayloadMakeCashTransactionResult產品端現金交易,現場人員收得符合數額之現金後可以執行此 API,執行成功後 JPay 會開立發票並回傳 transaction_id

payadmin/admin.proto

AppListReq

FieldTypeLabelDescription
admin_tokenstring

AppListRes

FieldTypeLabelDescription
applicationApplicationrepeated

Application

FieldTypeLabelDescription
app_idstring
app_namestring
statusint64
jpoint_app_namestring
jpoint_app_secret_keystring

CheckTransactionReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstring

CheckTransactionRes

FieldTypeLabelDescription
resultstring

CreateAppPaymentReq

FieldTypeLabelDescription
admin_tokenstring
app_psgCreateAppPaymentReq.CreateAppPsg

CreateAppPaymentReq.CreateAppPsg

FieldTypeLabelDescription
app_idstring
psg_idstring
psg_method_idstring

CreateAppPaymentRes

CreateAppReq

FieldTypeLabelDescription
admin_tokenstring
statusint64
app_namestring
jpoint_app_namestring
jpoint_app_secret_keystring

CreateAppRes

FieldTypeLabelDescription
app_idstring

CreatePaymentMethodReq

FieldTypeLabelDescription
admin_tokenstring
psg_methodmodel.PsgMethod

CreatePaymentMethodRes

FieldTypeLabelDescription
psg_method_idstring

CreatePaymentServiceGatewayReq

FieldTypeLabelDescription
admin_tokenstring
psgmodel.Psg

CreatePaymentServiceGatewayRes

CreditCard

FieldTypeLabelDescription
idstring
phone_idstring
l4string
created_atgoogle.protobuf.Timestamp
psgmodel.Psg

DiamondLog

FieldTypeLabelDescription
idint64
user_object_idstring
trade_idstring
amount_beforeint64
amount_afterint64
created_atgoogle.protobuf.Timestamp
memostring

DiamondOrder

FieldTypeLabelDescription
idint64

DiamondSubscribe

FieldTypeLabelDescription
idint64
object_idstring
phonestring
diamond_package_namestring
statusSubscribeStatus
invoice_typestring
invoice_datastring
created_atgoogle.protobuf.Timestamp

GetAppPaymentsReq

app psg

FieldTypeLabelDescription
admin_tokenstring
app_idstring

GetAppPaymentsRes

FieldTypeLabelDescription
app_psgmodel.AdminAppPsgrepeated

GetAppReq

FieldTypeLabelDescription
admin_tokenstring
app_idstring

GetAppRes

FieldTypeLabelDescription
applicationApplication

GetBindCreditcardListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
phone_idstringoptional

GetBindCreditcardListRes

FieldTypeLabelDescription
creditcardsCreditCardrepeated
totalint64

GetChannelsReq

channel

FieldTypeLabelDescription
admin_tokenstring
app_idstring

GetChannelsRes

FieldTypeLabelDescription
channelstransaction.PaymentChannelrepeated

GetDiamondSubscribeListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
object_idstringoptional
statusSubscribeStatusoptional
phonestring

GetDiamondSubscribeListRes

FieldTypeLabelDescription
subscribesDiamondSubscriberepeated
totalint64

GetMemberInfoReq

FieldTypeLabelDescription
phonestring
user_object_idstring
secrectstring

GetMemberInfoRes

FieldTypeLabelDescription
diamond_amountint64
jr_vip_expired_atgoogle.protobuf.Timestamp

GetPaymentMethodListReq

FieldTypeLabelDescription
admin_tokenstring

GetPaymentMethodListRes

FieldTypeLabelDescription
psg_methodsmodel.PsgMethodrepeated

GetPaymentMethodReq

FieldTypeLabelDescription
admin_tokenstring
psg_method_idstring

GetPaymentMethodRes

FieldTypeLabelDescription
psg_methodmodel.PsgMethod

GetPaymentServiceGatewayReq

FieldTypeLabelDescription
admin_tokenstring
psg_idstring

GetPaymentServiceGatewayRes

FieldTypeLabelDescription
psgmodel.Psg

GetPaymentServiceGatewaysReq

psg

FieldTypeLabelDescription
admin_tokenstring
app_idstringoptional
channelstransaction.PaymentChanneloptional

GetPaymentServiceGatewaysRes

FieldTypeLabelDescription
psgsmodel.Psgrepeated

GetTranscRecordListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
statusint32optional
user_object_idstringoptional
trade_idstringoptional
upstream_trade_idstringoptional
downstream_trade_idstringoptional
start_atgoogle.protobuf.Timestampoptional
end_atgoogle.protobuf.Timestampoptional
start_completed_atgoogle.protobuf.Timestampoptional
end_completed_atgoogle.protobuf.Timestampoptional
phone_numberstringoptional
currencyCurrencyoptional
app_idstringoptional

GetTranscRecordListRes

FieldTypeLabelDescription
recordsTranscRecordrepeated
totalint64
totalAmountint64

GetUserDiamondLogReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
user_object_idstring

GetUserDiamondLogRes

FieldTypeLabelDescription
diamond_logsDiamondLogrepeated
totalint64
user_balanceint64

RevokeDiamondReq

FieldTypeLabelDescription
admin_tokenstring
order_idint64

RevokeDiamondRes

RevokeOrderReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstring

RevokeOrderRes

TranscRecord

FieldTypeLabelDescription
statusint32
user_object_idstring
trade_idstring
downstream_trade_idstring
upstream_trade_idstring
product_namestring
required_amountint64
received_amountint64
currencystring
created_atgoogle.protobuf.Timestamp
phonestring
redirect_urlstring
diamond_orderDiamondOrder
completed_atgoogle.protobuf.Timestamp
ipstring
received_jpointint64
phone_idstring
application_namestring
psg_providerstring
psg_merchant_idstring
psg_method_channelstring廢棄
paymentTypetransaction.PaymentType
failed_messagestring

UnbindCreditcardReq

FieldTypeLabelDescription
admin_tokenstring
creditcard_idstring

UnbindCreditcardRes

UnsubscribeDiamondReq

FieldTypeLabelDescription
admin_tokenstring
object_idstring
subscribe_idint64

UnsubscribeDiamondRes

UpdateAppPaymentPriorityReq

FieldTypeLabelDescription
admin_tokenstring
idsint64repeated

UpdateAppPaymentPriorityRes

UpdateAppPaymentStatusReq

FieldTypeLabelDescription
admin_tokenstring
idint64
statusmodel.PsgMethodStatus

UpdateAppPaymentStatusRes

UpdateAppReq

FieldTypeLabelDescription
admin_tokenstring
app_idstring
app_namestring
statusint64
jpoint_app_namestring
jpoint_app_secret_keystring

UpdateAppRes

UpdateAppStatusReq

FieldTypeLabelDescription
admin_tokenstring
app_idstring
statusint64

UpdateAppStatusRes

UpdatePaymentMethodReq

FieldTypeLabelDescription
admin_tokenstring
psg_methodmodel.PsgMethod

UpdatePaymentMethodRes

UpdatePaymentMethodStatusReq

FieldTypeLabelDescription
admin_tokenstring
psg_method_idstring
statusint64

UpdatePaymentMethodStatusRes

UpdatePaymentServiceGatewayReq

FieldTypeLabelDescription
admin_tokenstring
psgmodel.Psg

UpdatePaymentServiceGatewayRes

UpdatePaymentServiceGatewayStatusReq

FieldTypeLabelDescription
admin_tokenstring
psg_idstring
statusint64

UpdatePaymentServiceGatewayStatusRes

WithdrawOrderReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstring

WithdrawOrderRes

Currency

NameNumberDescription
CURRENCY_NOT_SET0
CURRENCY_TWD1
CURRENCY_USD2
CURRENCY_DIAMOND3
CURRENCY_USD_CENTS4

SubscribeStatus

NameNumberDescription
SB_Default0
SB_Unsubscribe1
SB_Subscribe2

AdminService

Method NameRequest TypeResponse TypeDescription
CheckTransactionCheckTransactionReqCheckTransactionRes查詢 transaction 結果
GetTranscRecordListGetTranscRecordListReqGetTranscRecordListRes
GetUserDiamondLogGetUserDiamondLogReqGetUserDiamondLogRes
AppListAppListReqAppListResapplication
CreateAppCreateAppReqCreateAppRes
GetAppGetAppReqGetAppRes
UpdateAppUpdateAppReqUpdateAppRes
RevokeDiamondRevokeDiamondReqRevokeDiamondRes
RevokeOrderRevokeOrderReqRevokeOrderRes退款
WithdrawOrderWithdrawOrderReqWithdrawOrderRes退單
GetBindCreditcardListGetBindCreditcardListReqGetBindCreditcardListRes綁卡資訊
UnbindCreditcardUnbindCreditcardReqUnbindCreditcardRes
GetMemberInfoGetMemberInfoReqGetMemberInfoResfor pan
GetDiamondSubscribeListGetDiamondSubscribeListReqGetDiamondSubscribeListRes月卡資訊
UnsubscribeDiamondUnsubscribeDiamondReqUnsubscribeDiamondRes
GetPaymentServiceGatewaysGetPaymentServiceGatewaysReqGetPaymentServiceGatewaysRespsg
CreatePaymentServiceGatewayCreatePaymentServiceGatewayReqCreatePaymentServiceGatewayRes
GetPaymentServiceGatewayGetPaymentServiceGatewayReqGetPaymentServiceGatewayRes
UpdatePaymentServiceGatewayUpdatePaymentServiceGatewayReqUpdatePaymentServiceGatewayRes
GetAppPaymentsGetAppPaymentsReqGetAppPaymentsResapp_psg (對應table app_psg_method, 舊版app_psg廢棄)
CreateAppPaymentCreateAppPaymentReqCreateAppPaymentRes
UpdateAppPaymentStatusUpdateAppPaymentStatusReqUpdateAppPaymentStatusRes
UpdateAppPaymentPriorityUpdateAppPaymentPriorityReqUpdateAppPaymentPriorityRes
CreatePaymentMethodCreatePaymentMethodReqCreatePaymentMethodRespsg_method
GetPaymentMethodGetPaymentMethodReqGetPaymentMethodRes
GetPaymentMethodListGetPaymentMethodListReqGetPaymentMethodListRes
UpdatePaymentMethodUpdatePaymentMethodReqUpdatePaymentMethodRes

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)