use purchase_receipt instead of content_fee
This commit is contained in:
parent
0730becb35
commit
02831fe359
4 changed files with 6 additions and 6 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -3958,10 +3958,10 @@ function doFileGet(uri, saveFile = true, onSuccess) {
|
|||
|
||||
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
|
||||
} else {
|
||||
if (streamInfo.content_fee) {
|
||||
if (streamInfo.purchase_receipt) {
|
||||
dispatch({
|
||||
type: PURCHASE_URI_COMPLETED,
|
||||
data: { uri, purchaseReceipt: streamInfo.content_fee }
|
||||
data: { uri, purchaseReceipt: streamInfo.purchase_receipt }
|
||||
});
|
||||
}
|
||||
dispatch({
|
||||
|
|
2
dist/flow-typed/File.js
vendored
2
dist/flow-typed/File.js
vendored
|
@ -11,7 +11,7 @@ declare type FileListItem = {
|
|||
claim_id: string,
|
||||
claim_name: string,
|
||||
completed: false,
|
||||
content_fee?: {},
|
||||
purchase_receipt?: {},
|
||||
download_directory: string,
|
||||
download_path: string,
|
||||
file_name: string,
|
||||
|
|
2
flow-typed/File.js
vendored
2
flow-typed/File.js
vendored
|
@ -11,7 +11,7 @@ declare type FileListItem = {
|
|||
claim_id: string,
|
||||
claim_name: string,
|
||||
completed: false,
|
||||
content_fee?: {},
|
||||
purchase_receipt?: {},
|
||||
download_directory: string,
|
||||
download_path: string,
|
||||
file_name: string,
|
||||
|
|
|
@ -39,10 +39,10 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get
|
|||
|
||||
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
|
||||
} else {
|
||||
if (streamInfo.content_fee) {
|
||||
if (streamInfo.purchase_receipt) {
|
||||
dispatch({
|
||||
type: ACTIONS.PURCHASE_URI_COMPLETED,
|
||||
data: { uri, purchaseReceipt: streamInfo.content_fee },
|
||||
data: { uri, purchaseReceipt: streamInfo.purchase_receipt },
|
||||
});
|
||||
}
|
||||
dispatch({
|
||||
|
|
Loading…
Reference in a new issue