Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Commit 04269d8

Browse files
committed
Merge remote-tracking branch 'upstream/master' into devtools
2 parents b07d008 + 9c08436 commit 04269d8

File tree

103 files changed

+793
-834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+793
-834
lines changed
127 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
"@babel/plugin-transform-runtime": "^7.7.4",
164164
"@babel/preset-env": "^7.7.7",
165165
"@babel/preset-react": "^7.7.4",
166-
"@bunq-community/bunq-js-client": "^0.40.2",
166+
"@bunq-community/bunq-js-client": "^1.0.3",
167167
"@bunq-community/bunqdesktop-templates": "^1.2.0",
168168
"@fortawesome/fontawesome-free": "^5.2.0",
169169
"@material-ui/core": "^3.9.2",
@@ -213,7 +213,7 @@
213213
"mocha": "^5.2.0",
214214
"natives": "1.1.6",
215215
"node-forge": "^0.7.5",
216-
"node-sass": "^4.13.0",
216+
"node-sass": "^4.13.1",
217217
"prettier": "^1.14.2",
218218
"prop-types": "^15.6.2",
219219
"qrcode.react": "^0.8.0",

src/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ log.transports.file.file = `${userDataPath}${path.sep}bunqDesktop.${env.name}.lo
9090
// hot reloading
9191
if (process.env.NODE_ENV === "development") {
9292
require("electron-reload")(path.join(__dirname, `..${path.sep}app${path.sep}**`), {
93-
electron: path.join(__dirname, "../node_modules/electron"),
93+
electron: path.join(__dirname, "../node_modules/electron")
9494
});
9595
}
9696

src/react/Actions/pay.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import BunqErrorHandler from "../Functions/BunqErrorHandler";
22
import { openSnackbar } from "./snackbar";
33
import { paymentInfoUpdate } from "./payments";
44
import { accountsUpdate } from "./accounts";
5-
import { shareInviteBankInquiriesInfoUpdate } from "./share_invite_bank_inquiries";
6-
import { shareInviteBankResponsesInfoUpdate } from "./share_invite_bank_responses";
5+
import { shareInviteMonetaryAccountInquiriesInfoUpdate } from "./share_invite_monetary_account_inquiries";
6+
import { shareInviteMonetaryAccountResponsesInfoUpdate } from "./share_invite_monetary_account_responses";
77

88
export function paySend(BunqJSClient, userId, accountId, description, amount, targets, draft = false) {
99
const failedMessage = window.t("We received the following error while sending your payment");
@@ -34,7 +34,7 @@ export function paySend(BunqJSClient, userId, accountId, description, amount, ta
3434
dispatch(openSnackbar(notification));
3535

3636
// update the payments, accounts and share list
37-
dispatch(shareInviteBankResponsesInfoUpdate(BunqJSClient, userId));
37+
dispatch(shareInviteMonetaryAccountResponsesInfoUpdate(BunqJSClient, userId));
3838
dispatch(accountsUpdate(BunqJSClient, userId));
3939

4040
dispatch(payNotLoading());
@@ -79,8 +79,8 @@ export function paySchedule(BunqJSClient, userId, accountId, description, amount
7979

8080
// update the payments, accounts and share list
8181
dispatch(paymentInfoUpdate(BunqJSClient, userId, accountId));
82-
dispatch(shareInviteBankInquiriesInfoUpdate(BunqJSClient, userId, accountId));
83-
dispatch(shareInviteBankResponsesInfoUpdate(BunqJSClient, userId));
82+
dispatch(shareInviteMonetaryAccountInquiriesInfoUpdate(BunqJSClient, userId, accountId));
83+
dispatch(shareInviteMonetaryAccountResponsesInfoUpdate(BunqJSClient, userId));
8484
dispatch(accountsUpdate(BunqJSClient, userId));
8585

8686
dispatch(payNotLoading());

src/react/Actions/registration.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { loadStoredRequestInquiries } from "./request_inquiries";
99
import { loadStoredrequestInquiryBatches } from "./request_inquiry_batches";
1010
import { loadStoredRequestResponses } from "./request_responses";
1111
import { loadStoredContacts } from "./contacts";
12-
import { loadStoredShareInviteBankResponses } from "./share_invite_bank_responses";
13-
import { loadStoredShareInviteBankInquiries } from "./share_invite_bank_inquiries";
12+
import { loadStoredShareInviteMonetaryAccountResponses } from "./share_invite_monetary_account_responses";
13+
import { loadStoredShareInviteBankInquiries } from "./share_invite_monetary_account_inquiries";
1414
import { loadPendingPayments } from "./pending_payments";
1515
import { openSnackbar } from "./snackbar";
1616

@@ -367,7 +367,7 @@ export function registrationLoadStoredData() {
367367
dispatch(loadStoredRequestInquiries(BunqJSClient));
368368
dispatch(loadStoredrequestInquiryBatches(BunqJSClient));
369369
dispatch(loadStoredRequestResponses(BunqJSClient));
370-
dispatch(loadStoredShareInviteBankResponses(BunqJSClient));
370+
dispatch(loadStoredShareInviteMonetaryAccountResponses(BunqJSClient));
371371
dispatch(loadStoredShareInviteBankInquiries(BunqJSClient));
372372
};
373373
}

src/react/Actions/savings_goals.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export const setSavingsGoal = savings_goal => {
2424

2525
/**
2626
* @param {any[]} accounts
27-
* @param {any[]} shareInviteBankResponses
27+
* @param {any[]} shareInviteMonetaryAccountResponses
2828
*/
29-
export const updateStatisticsSavingsGoals = (accounts, shareInviteBankResponses) => {
29+
export const updateStatisticsSavingsGoals = (accounts, shareInviteMonetaryAccountResponses) => {
3030
return {
3131
type: "SAVINGS_GOALS_UPDATE_STATISTICS",
3232
payload: {
3333
accounts: accounts,
34-
shareInviteBankResponses: shareInviteBankResponses
34+
shareInviteMonetaryAccountResponses: shareInviteMonetaryAccountResponses
3535
}
3636
};
3737
};

src/react/Actions/share_invite_bank_inquiry.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/react/Actions/share_invite_bank_response.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/react/Actions/share_invite_bank_responses.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/react/Actions/share_invite_bank_inquiries.js renamed to src/react/Actions/share_invite_monetary_account_inquiries.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import BunqErrorHandler from "../Functions/BunqErrorHandler";
22

3-
export const STORED_SHARE_INVITE_BANK_INQUIRIES = "BUNQDESKTOP_SHARE_INVITE_BANK_INQUIRIES";
3+
export const STORED_SHARE_INVITE_MONETARY_ACCOUNT_INQUIRIES = "BUNQDESKTOP_SHARE_INVITE_MONETARY_ACCOUNT_INQUIRIES";
44

5-
export function shareInviteBankInquiriesSetInfo(share_invite_bank_inquiries, account_id, BunqJSClient = false) {
5+
export function shareInviteBankInquiriesSetInfo(
6+
share_invite_monetary_account_inquiries,
7+
account_id,
8+
BunqJSClient = false
9+
) {
610
return {
711
type: "SHARE_INVITE_INQUIRIES_SET_INFO",
812
payload: {
913
BunqJSClient: BunqJSClient,
1014
account_id: account_id,
11-
share_invite_bank_inquiries: share_invite_bank_inquiries
15+
share_invite_monetary_account_inquiries: share_invite_monetary_account_inquiries
1216
}
1317
};
1418
}
@@ -17,7 +21,7 @@ export function loadStoredShareInviteBankInquiries(BunqJSClient) {
1721
return dispatch => {
1822
dispatch(shareInviteBankInquiriesLoading());
1923
const BunqDesktopClient = window.BunqDesktopClient;
20-
BunqDesktopClient.storeDecrypt(STORED_SHARE_INVITE_BANK_INQUIRIES)
24+
BunqDesktopClient.storeDecrypt(STORED_SHARE_INVITE_MONETARY_ACCOUNT_INQUIRIES)
2125
.then(data => {
2226
if (data && data.items) {
2327
dispatch(shareInviteBankInquiriesSetInfo(data.items, data.account_id));
@@ -30,7 +34,7 @@ export function loadStoredShareInviteBankInquiries(BunqJSClient) {
3034
};
3135
}
3236

33-
export function shareInviteBankInquiriesInfoUpdate(
37+
export function shareInviteMonetaryAccountInquiriesInfoUpdate(
3438
BunqJSClient,
3539
user_id,
3640
account_id,
@@ -45,7 +49,7 @@ export function shareInviteBankInquiriesInfoUpdate(
4549
return dispatch => {
4650
dispatch(shareInviteBankInquiriesLoading());
4751

48-
BunqJSClient.api.shareInviteBankInquiry
52+
BunqJSClient.api.shareInviteMonetaryAccountInquiry
4953
.list(user_id, account_id, options)
5054
.then(shareInviteBankInquiries => {
5155
dispatch(shareInviteBankInquiriesSetInfo(shareInviteBankInquiries, account_id, BunqJSClient));

0 commit comments

Comments
 (0)