Skip to content

v0.1.68

jkf-pay-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
jkopay_onlinepay_paramgoogle.protobuf.Empty
jkopay_authpay_regular_paramPaymentParamsOfJkopayAuthPay
jkopay_authpay_limited_paramPaymentParamsOfJkopayAuthPay

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

DiamondRecord 鑽石異動紀錄詳細資訊

FieldTypeLabelDescription
trade_idstringtrade_id - 關聯的交易識別碼
product_namestringproduct_name - 商品名稱或異動原因
amount_beforeint64amount_before - 異動前鑽石數量
amount_afterint64amount_after - 異動後鑽石數量
created_atgoogle.protobuf.Timestampcreated_at - 異動發生時間
memostringmemo - 異動備註說明

DiscountTransactionReq

FieldTypeLabelDescription
transaction_tokenstring
jpoint_discountint64

DiscountTransactionRes

FormData

FieldTypeLabelDescription
keystring
valuestring
optionsFormDataOptionsrepeated

FormDataOptions

FieldTypeLabelDescription
valuestring
textstring

GetBonusAmountReq

GetBonusAmountReq 取得超值方案鑽石餘額的請求參數

FieldTypeLabelDescription
access_tokenstringaccess_token - 用戶存取 token

GetBonusAmountRes

GetBonusAmountRes 取得超值方案鑽石餘額的回應結果

FieldTypeLabelDescription
amountint64amount - 可用超值方案鑽石數量

GetDiamondAmountReq

FieldTypeLabelDescription
access_tokenstring

GetDiamondAmountRes

FieldTypeLabelDescription
diamond_amountint64

GetDiamondPackagesReq

FieldTypeLabelDescription
filter_typeDiamondPackageType
access_tokenstring

GetDiamondPackagesRes

FieldTypeLabelDescription
packagesDiamondPackagerepeated

GetDiamondRecordReq

GetDiamondRecordReq 取得鑽石異動紀錄的請求參數

FieldTypeLabelDescription
access_tokenstringaccess_token - 用戶存取 token
pageint64page - 頁數
limitint64limit - 每頁筆數
start_atgoogle.protobuf.Timestampstart_at - 異動時間起始範圍
end_atgoogle.protobuf.Timestampend_at - 異動時間結束範圍
typeDiamondRecordTypetype - 異動紀錄類型篩選

GetDiamondRecordRes

GetDiamondRecordRes 取得鑽石異動紀錄的回應結果

FieldTypeLabelDescription
recordsDiamondRecordrepeatedrecords - 鑽石異動紀錄清單
totalint64total - 總筆數

GetExchangeRateReq

GetExchangeRateRes

FieldTypeLabelDescription
usd_to_twddouble

GetFreeDiamondAmountReq

GetFreeDiamondAmountReq 取得免費鑽石餘額的請求參數

FieldTypeLabelDescription
access_tokenstringaccess_token - 用戶存取 token

GetFreeDiamondAmountRes

GetFreeDiamondAmountRes 取得免費鑽石餘額的回應結果

FieldTypeLabelDescription
amountint64amount - 可用免費鑽石數量

GetFreeDiamondEarnTimesReq

GetFreeDiamondEarnTimesReq 取得免費鑽石獲得次數的請求參數

FieldTypeLabelDescription
access_tokenstringaccess_token - 用戶存取 token

GetFreeDiamondEarnTimesRes

GetFreeDiamondEarnTimesRes 取得免費鑽石獲得次數的回應結果

FieldTypeLabelDescription
earn_timesint64earn_times - 免費鑽石獲得次數

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顯示金額
payment_currencyCurrencyoptional付款貨幣,如果有設定且跟交易貨幣的值不同,會自動依據 JPay 系統設定匯率轉換
payment_amountint64optional在某些場合,有設定此值代表實際金流交易的 payment currency 金額

PaymentCode

付款代碼提供 DisplayInfoUrl, CodeInfo

FieldTypeLabelDescription
display_info_urlPaymentCode.DisplayInfoUrloptional付款網址,如果有提供,則以這個網址為主
atm_infoPaymentCode.AtmInfo
cvs_infoPaymentCode.CvsInfo

PaymentCode.AtmInfo

FieldTypeLabelDescription
bank_codestring
bank_accountstring
expire_dategoogle.protobuf.Timestamp
atm_option_valuestring

PaymentCode.CvsInfo

FieldTypeLabelDescription
cvs_namestring
cvs_codestring
payment_urlstringoptional
expire_dategoogle.protobuf.Timestamp
cvs_typePaymentCode.CvsInfo.CvsType
cvs_option_valuestring

PaymentCode.DisplayInfoUrl

FieldTypeLabelDescription
urlstring
methodPaymentCode.DisplayInfoUrl.Method
dataFormDatarepeated

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
payment_codePaymentCodeoptional付款代碼,例如 ATM 繳費代碼、 CVS 繳費代碼

PaymentParamsOfCreditCard

FieldTypeLabelDescription
creditcard_idstring

PaymentParamsOfDiamond

PaymentParamsOfEcpayInpay

FieldTypeLabelDescription
pay_tokenstring

PaymentParamsOfHappypay

FieldTypeLabelDescription
creditcard_idstring

PaymentParamsOfJkopayAuthPay

FieldTypeLabelDescription
auth_nostringoptional
creditcard_idstringoptional

PaymentParamsOfTapPay

FieldTypeLabelDescription
creditcard_idstring
prime_tokenstring
remember_cardbool
creditcard_holderstring
creditcard_phonestring

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

SubscriptionInfo

FieldTypeLabelDescription
periodSubscriptionPeriod.Code
period_intervalint32

SubscriptionPeriod

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
payment_selection_expired_atgoogle.protobuf.Timestamp付款選擇過期時間
payment_process_expired_atgoogle.protobuf.Timestamp付款處理過期時間
selected_payment_method_idstringoptional使用者已選擇的付款方式
selected_invoice_settingInvoiceSettingoptional使用者已選擇的發票設定
transasction_statusTranscStatus目前訂單狀態
subscription_infoSubscriptionInfooptional產品端設定的訂閱資訊
transaction_verbose_statusTranscStatus訂單詳細狀態,包含付款錯誤時的狀態
transaction_failed_messagestringoptional訂單錯誤訊息

UseBonusDiamondReq

UseBonusDiamondReq 使用超值方案鑽石的請求參數

FieldTypeLabelDescription
access_tokenstringaccess_token - 用戶存取 token

UseBonusDiamondRes

UseBonusDiamondRes 使用超值方案鑽石的回應結果

FieldTypeLabelDescription
diamond_amountint64diamond_amount - 使用後的鑽石總餘額
available_amountint64available_amount - 目前可用的超值方案鑽石數量
free_diamond_amountint64free_diamond_amount - 此次實際使用的鑽石數量

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

DiamondRecordType 鑽石異動紀錄類型定義

NameNumberDescription
DRT_ALL0DRT_ALL - 全部異動紀錄
DRT_CREATE1DRT_CREATE - 鑽石增加紀錄(購買、贈送等)
DRT_PAYMENT2DRT_PAYMENT - 鑽石扣除紀錄(消費、付款等)

ErrBase

NameNumberDescription
ErrBaseNone0
ErrTokenExpired1001
ErrTokenInvalid1002

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現金
JkopayOnlinePay12街口支付-線上支付
JkopayAuthorizedPaymentRegular13街口支付-定期定額
JkopayAuthorizedPaymentLimited14街口支付-不定期不定額

PaymentCode.CvsInfo.CvsType

NameNumberDescription
NONE0
FAMILY1全家超商
OKC2OK 超商
SEVEN37-11
HILIFE4萊爾富超商

PaymentCode.DisplayInfoUrl.Method

NameNumberDescription
NONE0
POST1
GET2

PaymentType

NameNumberDescription
Domestic_Type0
Foreign_Type1
Diamond_Type2
ATM_Type3
CSV_Type4
NOT_SET_Type5
Jpoint_Type6
Cash_Type7
Jkopay_Type8
Jkopay_Authpay_Type9

RefundTransactionStatus

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

SubscriptionPeriod.Code

NameNumberDescription
NONE0
MONTHLY1
YEARLY2
DAY3

TransactionStatus

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

TranscStatus

NameNumberDescription
TranscStatus_Created0訂單已建立
TranscStatus_Succeeded1訂單完成
TranscStatus_CallbackCompleted2訂單完成且回調完成
TranscStatus_InvoiceCompleted3訂單已開立發票
TranscStatus_SetPayment4訂單已設定付款方式
TranscStatus_SetPaymentCompleted5訂單已設定付款方式且回調完成
TranscStatus_Failed-1訂單失敗
TranscStatus_FailedCallbackCompleted-2訂單失敗且回調完成
TranscStatus_Refund-3訂單已退款
TranscStatus_RefundWithoutWithdrawal-5訂單已申請退款
TranscStatus_Overdue-4金流逾期未處理
TranscStatus_OverdueCallbackCompleted-6金流逾期未處理且完成回調
TranscStatus_PaymentNotSetOverdue-7訂單逾期未處理
TranscStatus_PaymentNotSetOverdueCallbackCompleted-8訂單逾期未處理且完成回調

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券
CONSUME_SOURCE_TYPE_DIAMOND_FEE9退紅鑽手續費
CONSUME_SOURCE_TYPE_TICKET_FEE10退門票手續費

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
sourcedonateenums.ConsumeSourceType
memostring
need_refund_feebool抽手續費,舉例: 商品100元 要抽10%手續費的話 需要退款的總額為90

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

ChangeSubscriptionStatusReq

ChangeSubscriptionStatusReq 變更訂閱狀態的請求參數

FieldTypeLabelDescription
app_tokenstringapp_token - 應用程式認證 token
subsc_idstringsubsc_id - 系統內部訂閱識別碼
statusSubscriptionStatus.Codestatus - 欲變更的訂閱狀態

ChangeSubscriptionStatusRes

ChangeSubscriptionStatusRes 變更訂閱狀態的回應結果(空回應)

CreateSubscriptionTokenReq

CreateSubscriptionTokenReq 建立訂閱 token 的請求參數

FieldTypeLabelDescription
app_tokenstringapp_token - 應用程式認證 token
product_namestringproduct_name - 訂閱商品名稱
moneytransaction.Moneymoney - 貨幣金額的交易(結帳)與顯示設定
callback_urlstringcallback_url - 交易狀態回呼網址
object_idstringobject_id - PAN 使用者系統物件識別碼,用於關聯用戶身份
redirect_urlstringredirect_url - 交易完成後重導向網址
invoice_remarkstringoptionalinvoice_remark: optional, 發票備註 - 發票備註,只能由產品端設定
payment_channelstransaction.PaymentChannelrepeatedpayment_channels: optional, 指定訂單付款方式 - 限制可用的付款管道
payment_periodPaymentPeriodoptionalpayment_period: 指定付款方式的最短、最長期間 - 各付款方式的時間限制設定
periodSubscriptionPeriod.Codeperiod - 訂閱週期類型(月、年、日)
period_intervalint32period_interval - 訂閱週期間隔數(例如:每2個月為2,每3個月為3)
order_idstringorder_id - 平台自訂訂單編號
subscription_callback_urlstringsubscription_callback_url - 訂閱狀態更新專用回呼網址
downstream_subscription_idstringdownstream_subscription_id - 平台自訂訂閱識別碼

CreateSubscriptionTokenRes

CreateSubscriptionTokenRes 建立訂閱 token 的回應結果

FieldTypeLabelDescription
transaction_tokenstringtransaction_token - 交易 token,用於前端發起首次付款
subsc_idstringsubsc_id - 系統內部訂閱識別碼
transc_idstringtransc_id - 系統內部交易識別碼

CreateTransactionTokenReq

CreateTransactionTokenReq 建立交易 token 的請求參數

FieldTypeLabelDescription
app_idstringjpay application id - 應用程式識別碼
order_idstringplatform custom order ID - 平台自訂訂單編號
product_namestringplatform product name for transaction - 交易商品名稱
moneytransaction.Money貨幣金額相關設定 money.currency: transaction currency - 交易幣別 money.price: transaction price - 交易金額 money.display_currency: display currency on page - 頁面顯示幣別 money.display_price: display price on page - 頁面顯示金額 money.payment_currency: Payment to Bank with Specified Currency - 實際付款幣別
callback_urlstringplatform callback_url - 交易狀態回呼網址
object_idstringpan object_id - PAN 使用者系統物件識別碼,用於關聯用戶身份
jpoint_discountint64Deprecated. jpoint_discount is deprecated - 已棄用預先 JPOINTS 點數折扣欄位
check_codestringcheck_code generated by platform with transaction information - 平台生成的交易驗證碼
redirect_urlstringplatform redirect_url - 交易完成後重導向網址
require_apea_twidboolrequire_apea_twid - 是否需要 APEA TWID 驗證
invoice_remarkstringinvoice_remark: optional, 發票備註 - 發票備註,只能由產品端設定
payment_channelstransaction.PaymentChannelrepeatedpayment_channels: optional, 指定訂單付款方式 - 限制可用的付款管道
payment_periodPaymentPeriodoptionalpayment_period: 指定付款方式的最短、最長期間 - 各付款方式的時間限制設定
subscription_periodSubscriptionPeriod.Codeoptionalsubscription_period: 通常由訂閱系統指定續費週期 - 訂閱週期類型
subscription_period_intervalint32optionalsubscription_period_interval: 通常由訂閱系統指定週期間隔 - 訂閱週期間隔數

CreateTransactionTokenRes

CreateTransactionTokenRes 建立交易 token 的回應結果

FieldTypeLabelDescription
transaction_tokenstringtransaction_token - 交易 token,用於前端發起交易
transc_idstringtransc_id - 系統內部交易識別碼

DurationMinMax

DurationMinMax 定義時間期間的最小值與最大值範圍

FieldTypeLabelDescription
mingoogle.protobuf.Durationmin - 最短時間期間
maxgoogle.protobuf.Durationmax - 最長時間期間

PaymentPeriod

PaymentPeriod 定義各種付款方式的時間期間限制

FieldTypeLabelDescription
selection_periodDurationMinMaxoptionalselection_period: 指定第一階段(待選擇付款方式)的最短、最長期間 不同訂單可以接受的期間有所不同,會儘量在 min~max 之間 如果該訂單無法符合 min~max 則無法建立 Transaction 並回傳錯誤
process_cvs_periodDurationMinMaxoptionalprocess_cvs_period: 指定第二階段(付款處理)的便利商店付款最短、最長期間 因為金流差異可以接受的期間有所不同,會儘量在 min~max 之間 如果該金流無法符合 min~max 則無法建立 Transaction 並回傳錯誤
process_atm_periodDurationMinMaxoptionalprocess_atm_period: 指定第二階段(付款處理)的 ATM 轉帳最短、最長期間 因為金流差異可以接受的期間有所不同,會儘量在 min~max 之間 如果該金流無法符合 min~max 則無法建立 Transaction 並回傳錯誤
process_creditcard_periodDurationMinMaxoptionalprocess_creditcard_period: 指定第二階段(付款處理)的信用卡付款最短、最長期間 因為金流差異可以接受的期間有所不同,會儘量在 min~max 之間 如果該金流無法符合 min~max 則無法建立 Transaction 並回傳錯誤
process_jkopay_periodDurationMinMaxoptionalprocess_jkopay_period: 指定第二階段(付款處理)的街口支付最短、最長期間 因為金流差異可以接受的期間有所不同,會儘量在 min~max 之間 如果該金流無法符合 min~max 則無法建立 Transaction 並回傳錯誤

QuerySubscriptionPaymentRecordReq

QuerySubscriptionPaymentRecordReq 查詢訂閱付款記錄的請求參數

FieldTypeLabelDescription
app_tokenstringapp_token - 應用程式認證 token
subsc_idstring
pageint64page - 分頁頁碼(從 1 開始)
page_sizeint64page_size - 每頁記錄數量, 最多 100

QuerySubscriptionPaymentRecordRes

QuerySubscriptionPaymentRecordRes 查詢訂閱付款記錄的回應結果

FieldTypeLabelDescription
recordsSubscriptionPaymentRecordrepeatedrecords - 訂閱付款記錄列表
totalint64total - 符合條件的記錄總數
total_amountint64total_amount - 所有記錄的總金額

QuerySubscriptionReq

QuerySubscriptionReq 查詢訂閱資訊的請求參數

FieldTypeLabelDescription
app_tokenstringapp_token - 應用程式認證 token
subsc_idstringsubsc_id - 系統內部訂閱識別碼

QuerySubscriptionRes

QuerySubscriptionRes 查詢訂閱資訊的回應結果

FieldTypeLabelDescription
subsc_idstringsubsc_id - 系統內部訂閱識別碼
payment_method_idstringpayment_method_id - 用戶綁定的付款方式識別碼
payment_creditcard_idstringpayment_creditcard_id - 用戶綁定的信用卡識別碼
statusSubscriptionStatus.Codestatus - 目前訂閱狀態
next_renew_atgoogle.protobuf.Timestampnext_renew_at - 預定下次續費扣款時間
renewing_atgoogle.protobuf.Timestamprenewing_at - 目前續費處理的開始時間(處理中狀態)
trial_start_atgoogle.protobuf.Timestamptrial_start_at - 試用期開始時間
trial_end_atgoogle.protobuf.Timestamptrial_end_at - 試用期結束時間(之後開始正式扣款)
periodSubscriptionPeriod.Codeperiod - 訂閱週期類型

SubscriptionPaymentRecord

SubscriptionPaymentRecord 訂閱付款記錄(用於記錄每次續費的詳細資訊)

FieldTypeLabelDescription
idstringid - 付款記錄唯一識別碼
transc_idstringtransc_id - 對應的系統交易識別碼
payment_method_idstringpayment_method_id - 此次續費使用的付款方式識別碼
payment_creditcard_idstringpayment_creditcard_id - 此次續費使用的信用卡識別碼
amounttransaction.Moneyamount - 此次續費的付款金額與幣別資訊
created_atgoogle.protobuf.Timestampcreated_at - 付款記錄建立時間
subscription_callback_statusstringsubscription_callback_status - 訂閱回調處理狀態
transaction_statustransaction.TranscStatus

SubscriptionPeriod

SubscriptionPeriod 定義訂閱的週期類型

SubscriptionStatus

SubscriptionStatus 定義訂閱的各種狀態

TransactionApiError

TransactionApiError 定義交易 API 的錯誤代碼

SubscriptionPeriod.Code

NameNumberDescription
NONE0NONE - 無週期/未設定
MONTHLY1MONTHLY - 月付制
YEARLY2YEARLY - 年付制
DAY3DAY - 日付制

SubscriptionStatus.Code

NameNumberDescription
NONE0NONE - 無狀態/未知狀態
CREATED1CREATED - 已建立(尚未進行首次付款)
TRIAL2TRIAL - 試用期中
ACTIVE3ACTIVE - 啟用中(正常續費扣款)
CANCELLED4CANCELLED - 已取消(用戶主動取消,不再續費)
EXPIRED5EXPIRED - 已過期(到期後未續費)
PAUSED6PAUSED - 已暫停(臨時停止續費,可恢復)
PAYMENT_FAILED7PAYMENT_FAILED - 付款失敗(續費扣款失敗)

TransactionApiError.Code

NameNumberDescription
None0None - 無錯誤
PAYMENT_SELECTION_PERIOD_NOT_SUPPORTED1001PAYMENT_SELECTION_PERIOD_NOT_SUPPORTED - 付款選擇期間不支援
PAYMENT_PROCESS_CVS_PERIOD_NOT_SUPPORTED1002PAYMENT_PROCESS_CVS_PERIOD_NOT_SUPPORTED - 便利商店付款處理期間不支援
PAYMENT_PROCESS_ATM_PERIOD_NOT_SUPPORTED1003PAYMENT_PROCESS_ATM_PERIOD_NOT_SUPPORTED - ATM 付款處理期間不支援
PAYMENT_PROCESS_CREDITCARD_PERIOD_NOT_SUPPORTED1004PAYMENT_PROCESS_CREDITCARD_PERIOD_NOT_SUPPORTED - 信用卡付款處理期間不支援
SET_PAYMENT_METHOD_ABOVE_ONCE1005SET_PAYMENT_METHOD_ABOVE_ONCE - 交易只允許設定付款方式一次
SUBSCRIPTION_CHANGE_STATUS_FAILED1006SUBSCRIPTION_CHANGE_STATUS_FAILED - 訂閱狀態變更失敗
PAYMENT_PROCESS_JKOPAY_PERIOD_NOT_SUPPORTED1007PAYMENT_PROCESS_JKOPAY_PERIOD_NOT_SUPPORTED - 街口支付處理期間不支援

TransactionApiService

TransactionApiService 提供交易與訂閱相關的 API 服務

Method NameRequest TypeResponse TypeDescription
CreateTransactionTokenCreateTransactionTokenReqCreateTransactionTokenResCreateTransactionToken 生成一次性交易 token
CreateSubscriptionTokenCreateSubscriptionTokenReqCreateSubscriptionTokenResCreateSubscriptionToken 生成訂閱制交易 token
ChangeSubscriptionStatusChangeSubscriptionStatusReqChangeSubscriptionStatusResChangeSubscriptionStatus 變更訂閱狀態(暫停、取消、恢復等)
QuerySubscriptionQuerySubscriptionReqQuerySubscriptionResQuerySubscription 查詢訂閱詳細資訊與狀態
QuerySubscriptionPaymentRecordQuerySubscriptionPaymentRecordReqQuerySubscriptionPaymentRecordResQuerySubscriptionPaymentRecord 查詢訂閱付款紀錄

payadmin/admin.proto

AppListReq

FieldTypeLabelDescription
admin_tokenstring

AppListRes

FieldTypeLabelDescription
applicationApplicationrepeated

Application

FieldTypeLabelDescription
app_idstring
app_namestring
statusint64
jpoint_app_namestring
jpoint_app_secret_keystring

CancelSubscriptionReq

FieldTypeLabelDescription
admin_tokenstring
subscription_idstring
reasonstringoptional

CancelSubscriptionRes

CancelSubscriptionRes.Error

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

CreateSystemInfoReq

FieldTypeLabelDescription
admin_tokenstring
usd_twd_exchange_ratedouble
statusSystemInfoStatus

CreateSystemInfoRes

FieldTypeLabelDescription
idint64

CreditCard

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

DeleteSystemInfoReq

FieldTypeLabelDescription
admin_tokenstring
idint64

DeleteSystemInfoRes

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

GetSubscriptionListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
statusint32optional
user_object_idstringoptional
start_atgoogle.protobuf.Timestampoptional
end_atgoogle.protobuf.Timestampoptional
phone_numberstringoptional
app_idstringoptional
subscription_idstringoptional

GetSubscriptionListRes

FieldTypeLabelDescription
recordsSubscriptionRecordrepeated
totalint64
totalAmountint64

GetTransactionGatewayLogReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstringtrade_id 可以擇一帶入
subscription_idstringsubscription_id 可以擇一帶入

GetTransactionGatewayLogRes

FieldTypeLabelDescription
recordsSystemLogRecordrepeated

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
payment_typetransaction.PaymentTypeoptional

GetTranscRecordListRes

FieldTypeLabelDescription
recordsTranscRecordrepeated
totalint64
totalAmountint64

GetUserDiamondLogReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
user_object_idstring

GetUserDiamondLogRes

FieldTypeLabelDescription
diamond_logsDiamondLogrepeated
totalint64
user_balanceint64

QueryGatewayTransactionReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstring

QueryGatewayTransactionRes

FieldTypeLabelDescription
resultstring

QuerySubscriptionPaymentRecordReq

QuerySubscriptionPaymentRecordReq 查詢訂閱付款記錄的請求參數

FieldTypeLabelDescription
admin_tokenstringadmin_token - JKFC 認證 token
subsc_idstring
pageint64page - 分頁頁碼(從 1 開始)
page_sizeint64page_size - 每頁記錄數量, 最多 100

QuerySubscriptionPaymentRecordRes

QuerySubscriptionPaymentRecordRes 查詢訂閱付款記錄的回應結果

FieldTypeLabelDescription
recordsjkfpay.transaction_api.SubscriptionPaymentRecordrepeatedrecords - 訂閱付款記錄列表
totalint64total - 符合條件的記錄總數
total_amountint64total_amount - 所有記錄的總金額

QuerySystemInfoListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
page_sizeint64
statusSystemInfoStatusoptional

QuerySystemInfoListRes

FieldTypeLabelDescription
system_infosSystemInforepeated
totalint64

RenewSubscriptionReq

FieldTypeLabelDescription
admin_tokenstring
subscription_idstring
force_renewbool

RenewSubscriptionRes

RenewSubscriptionRes.Error

RevokeDiamondReq

FieldTypeLabelDescription
admin_tokenstring
order_idint64

RevokeDiamondRes

RevokeOrderReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstring

RevokeOrderRes

SubscriptionRecord

FieldTypeLabelDescription
idstring
app_idstring
subscription_tokenstringoptional
object_idstring
phone_idstring
product_namestring
moneytransaction.Money
display_moneytransaction.Money
callback_urlstring
redirect_urlstring
statusint32
periodint32
period_intervalint32
payment_method_idstring
payment_creditcard_idstring
next_renew_atgoogle.protobuf.Timestampoptional
renewing_atgoogle.protobuf.Timestampoptional
trial_start_atgoogle.protobuf.Timestampoptional
trial_end_atgoogle.protobuf.Timestampoptional
invoice_remarkstring
invoice_typestring
invoice_datastring
subscription_callback_urlstring
downstream_subscription_idstring
require_apea_twidbool
payment_channelstransaction.PaymentChannelrepeated
display_exchange_ratefloat
payment_periodjkfpay.transaction_api.PaymentPeriodoptionalpayment_period: 指定付款方式的最短、最長期間,因為訂單條件與金流差異而系統可以接受的期間有所不同,
created_atgoogle.protobuf.Timestamp
updated_atgoogle.protobuf.Timestamp

SystemInfo

SystemInfo related messages

FieldTypeLabelDescription
idint64
usd_twd_exchange_ratedouble
statusSystemInfoStatus
created_atgoogle.protobuf.Timestamp
updated_atgoogle.protobuf.Timestamp
deleted_atgoogle.protobuf.Timestamp

SystemLogRecord

FieldTypeLabelDescription
idstring
namestring
datastring
created_atgoogle.protobuf.Timestamp

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

UpdateSystemInfoReq

FieldTypeLabelDescription
admin_tokenstring
idint64
usd_twd_exchange_ratedoubleoptional
statusSystemInfoStatusoptional

UpdateSystemInfoRes

WithdrawOrderReq

FieldTypeLabelDescription
admin_tokenstring
trade_idstring

WithdrawOrderRes

CancelSubscriptionRes.Error.Code

NameNumberDescription
NONE0
FAILED1001

Currency

NameNumberDescription
CURRENCY_NOT_SET0
CURRENCY_TWD1
CURRENCY_USD2
CURRENCY_DIAMOND3
CURRENCY_USD_CENTS4

RenewSubscriptionRes.Error.Code

NameNumberDescription
NONE0
FAILED1001
PAYMENT_FAILED1002

SubscribeStatus

NameNumberDescription
SB_Default0
SB_Unsubscribe1
SB_Subscribe2

SystemInfoStatus

NameNumberDescription
SYSTEM_INFO_STATUS_UNSPECIFIED0
SYSTEM_INFO_STATUS_ACTIVE1
SYSTEM_INFO_STATUS_INACTIVE2

AdminService

Method NameRequest TypeResponse TypeDescription
CheckTransactionCheckTransactionReqCheckTransactionRes查詢 transaction 結果
QueryGatewayTransactionQueryGatewayTransactionReqQueryGatewayTransactionRes查詢金流端的 transaction 紀錄
GetTranscRecordListGetTranscRecordListReqGetTranscRecordListRes
GetUserDiamondLogGetUserDiamondLogReqGetUserDiamondLogRes
GetTransactionGatewayLogGetTransactionGatewayLogReqGetTransactionGatewayLogRes查詢訂單與金流端的紀錄
AppListAppListReqAppListResapplication
CreateAppCreateAppReqCreateAppRes
GetAppGetAppReqGetAppRes
UpdateAppUpdateAppReqUpdateAppRes
RevokeDiamondRevokeDiamondReqRevokeDiamondRes
RevokeOrderRevokeOrderReqRevokeOrderRes退款
WithdrawOrderWithdrawOrderReqWithdrawOrderRes退單
GetBindCreditcardListGetBindCreditcardListReqGetBindCreditcardListRes綁卡資訊
UnbindCreditcardUnbindCreditcardReqUnbindCreditcardRes
GetMemberInfoGetMemberInfoReqGetMemberInfoResfor pan
GetDiamondSubscribeListGetDiamondSubscribeListReqGetDiamondSubscribeListRes月卡資訊
UnsubscribeDiamondUnsubscribeDiamondReqUnsubscribeDiamondRes
CreateSystemInfoCreateSystemInfoReqCreateSystemInfoRessystem info
UpdateSystemInfoUpdateSystemInfoReqUpdateSystemInfoRes
QuerySystemInfoListQuerySystemInfoListReqQuerySystemInfoListRes
DeleteSystemInfoDeleteSystemInfoReqDeleteSystemInfoRes
GetPaymentServiceGatewaysGetPaymentServiceGatewaysReqGetPaymentServiceGatewaysRespsg
CreatePaymentServiceGatewayCreatePaymentServiceGatewayReqCreatePaymentServiceGatewayRes
GetPaymentServiceGatewayGetPaymentServiceGatewayReqGetPaymentServiceGatewayRes
UpdatePaymentServiceGatewayUpdatePaymentServiceGatewayReqUpdatePaymentServiceGatewayRes
GetAppPaymentsGetAppPaymentsReqGetAppPaymentsResapp_psg (對應table app_psg_method, 舊版app_psg廢棄)
CreateAppPaymentCreateAppPaymentReqCreateAppPaymentRes
UpdateAppPaymentStatusUpdateAppPaymentStatusReqUpdateAppPaymentStatusRes
UpdateAppPaymentPriorityUpdateAppPaymentPriorityReqUpdateAppPaymentPriorityRes
CreatePaymentMethodCreatePaymentMethodReqCreatePaymentMethodRespsg_method
GetPaymentMethodGetPaymentMethodReqGetPaymentMethodRes
GetPaymentMethodListGetPaymentMethodListReqGetPaymentMethodListRes
UpdatePaymentMethodUpdatePaymentMethodReqUpdatePaymentMethodRes
GetSubscriptionListGetSubscriptionListReqGetSubscriptionListResList subscriptions
CancelSubscriptionCancelSubscriptionReqCancelSubscriptionResCancel subscription
RenewSubscriptionRenewSubscriptionReqRenewSubscriptionResRenew subscription
QuerySubscriptionPaymentRecordQuerySubscriptionPaymentRecordReqQuerySubscriptionPaymentRecordResQuery subscription payment record

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)