@mathrunet/masamune
Version:
Manages packages for the server portion (NodeJS) of the Masamune framework.
35 lines (34 loc) • 1.31 kB
TypeScript
/**
* The amount of money in the in-app wallet is added to the in-app wallet due to in-app purchases. In-app wallet information is stored in a form that overwrites user data.
*
* アプリ内課金によるアプリ内ウォレットの金額の加算を行います。アプリ内ウォレットの情報はユーザーデータに上書きされる形で保存されます。
*
* @param {String} targetDocumentFieldPath
* The path, including the key, of the field in the document that stores the in-app wallet information.
*
* アプリ内ウォレット情報を保存するドキュメント内のフィールドのキーを含めたパス。
*
* @param {number} value
* Value of the amount to be added.
*
* 加算する金額の値。
*
* @param {String} transactionId
* Specify the ID of the log.
*
* ログのIDを指定します。
*
* @param {[key: string]: any} transactionData
* Log data to be updated.
*
* 更新するログデータ。
*/
export declare function updateWallet({ targetDocumentFieldPath, value, transactionId, transactionData, firestoreInstance, }: {
targetDocumentFieldPath: string;
value: number;
transactionId: string;
transactionData: {
[key: string]: any;
};
firestoreInstance: FirebaseFirestore.Firestore;
}): Promise<void>;