-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial transfer model to track transfers of bounties * adding one more attribute to the transfer model * transfer basic tests * tests and basic api for async transfers * adding transfer section and refactoring payments section to functional component * getting a basic transfer list * getting the basic transfer list and transfer cases starting by a simple order * transfer needs now more attributes * finishing up with the transfer webhook updating transfer * update transfer webhook * fixing wrong bank codes * fixing lint transfers
- Loading branch information
Showing
39 changed files
with
1,802 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import axios from 'axios' | ||
import api from '../consts' | ||
|
||
const SEARCH_TRANSFER_REQUESTED = 'SEARCH_TRANSFER_REQUESTED' | ||
const SEARCH_TRANSFER_SUCCESS = 'SEARCH_TRANSFER_SUCCESS' | ||
const SEARCH_TRANSFER_FAILED = 'SEARCH_TRANSFER_FAILED' | ||
|
||
const searchTransferRequested = () => { | ||
return { | ||
type: SEARCH_TRANSFER_REQUESTED, | ||
completed: false | ||
|
||
} | ||
} | ||
|
||
const searchTransferSuccess = (data) => { | ||
return { | ||
type: SEARCH_TRANSFER_SUCCESS, | ||
data: data, | ||
completed: true | ||
} | ||
} | ||
|
||
const searchTransferFailed = (error) => { | ||
return { | ||
type: SEARCH_TRANSFER_FAILED, | ||
error: error, | ||
completed: true | ||
} | ||
} | ||
|
||
const searchTransfer = (params) => (dispatch) => { | ||
dispatch(searchTransferRequested()) | ||
return axios.get(api.API_URL + '/transfers/search', { params }).then( | ||
transfer => { | ||
if (transfer.data) { | ||
return dispatch(searchTransferSuccess(transfer.data)) | ||
} | ||
if (transfer.error) { | ||
return dispatch(searchTransferFailed(transfer.error)) | ||
} | ||
} | ||
).catch(e => { | ||
return dispatch(searchTransferFailed(e)) | ||
}) | ||
} | ||
|
||
export { | ||
SEARCH_TRANSFER_REQUESTED, | ||
SEARCH_TRANSFER_SUCCESS, | ||
SEARCH_TRANSFER_FAILED, | ||
searchTransfer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
export default BANK_CODES: { | ||
'110': 'BANCO PARA TESTE STRIPE', | ||
'260': 'NUBANK', | ||
'001': 'BANCO DO BRASIL S.A. (Banco do Brasil)', | ||
'237': 'BANCO BRADESCO S.A. (Bradesco)', | ||
'341': 'BANCO ITAU S.A. (Itaú)', | ||
'033': 'BANCO SANTANDER (BRASIL) S.A.', | ||
'409': 'UNIBANCO UNIAO DE BANCOS BRASILEIROS S.A. (Unibanco)', | ||
'041': 'BANCO DO ESTADO DO RIO GRANDE DO SUL S.A. (Banrisul)', | ||
'104': 'CAIXA ECONOMICA FEDERAL (Caixa Econômica Federal)', | ||
'399': 'HSBC BANK BRASIL S.A.BANCO MULTIPLO (HSBC)', | ||
'745': 'BANCO CITIBANK S.A.', | ||
'151': 'BANCO NOSSA CAIXA S.A (Nossa Caixa)', | ||
'389': 'BANCO MERCANTIL DO BRASIL S.A. (Mercantil do Brasil)', | ||
'004': 'BANCO DO NORDESTE DO BRASIL S.A (Banco do Nordeste (BNB) )', | ||
'021': 'BANESTES S.A BANCO DO ESTADO DO ESPIRITO SANTO (Banestes)', | ||
'422': 'BANCO SAFRA S.A. (Safra)', | ||
'003': 'BANCO DA AMAZONIA S.A. (Banco da Amazônia (Basa))', | ||
'047': 'Banco do Estado de Sergipe S.A (Banese)', | ||
'070': 'Banco de Brasília S.A. (BRB)', | ||
'655': 'Banco Votorantim S.A (Votorantim)', | ||
'107': 'Banco BBM S.A (BBM)', | ||
'025': 'Banco Alfa S.A (Alfa)', | ||
'263': 'Banco Cacique S. A. (Cacique)', | ||
'229': 'BANCO CRUZEIRO DO SUL S.A. (Cruzeiro do Sul)', | ||
'252': 'BANCO FININVEST S.A. (Fininvest)', | ||
'063': 'BANCO IBI S.A - BANCO MULTIPLO (Banco IBI)', | ||
'623': 'BANCO PANAMERICANO S.A. (PanAmericano)', | ||
'633': 'BANCO RENDIMENTO S.A. (Banco Rendimento)', | ||
'749': 'BANCO SIMPLES S.A. (Banco Simples)', | ||
'215': 'BANCO ACOMERCIAL E DE INVESTIMENTO SUDAMERIS S.A. (Sudameris)', | ||
'756': 'BANCO COOPERATIVO DO BRASIL S.A. - (BANCOOB)', | ||
'748': 'BANCO COOPERATIVO SICREDI S.A. (SICREDI)', | ||
'065': 'LEMON BANK BANCO MÚLTIPLO S..A (Lemon Bank)', | ||
'069': 'BPN BRASIL BANCO MÚLTIPLO S.A. (BPN)', | ||
'719': 'BANIF - BANCO INTERNACIONAL DO FUNCHAL (BRASIL), S.A. (Banif)', | ||
'318': 'BANCO BMG S.A. (BMG)', | ||
'027': 'BANCO DO ESTADO DE SANTA CATARINA S.A.', | ||
'208': 'BANCO UBS PACTUAL S.A.', | ||
'479': 'BANCO ITAUBANK S.A.', | ||
'077': 'BANCO INTERMEDIUM S.A.', | ||
'212': 'BANCO ORIGINAL', | ||
'085': 'CECRED-COOPERATIVA CENTRAL DE CREDITO URBANO' | ||
} | ||
export default BANK_CODES = { | ||
'110': 'BANCO PARA TESTE STRIPE', | ||
'260': 'NUBANK', | ||
'001': 'BANCO DO BRASIL S.A. (Banco do Brasil)', | ||
'237': 'BANCO BRADESCO S.A. (Bradesco)', | ||
'341': 'BANCO ITAU S.A. (Itaú)', | ||
'033': 'BANCO SANTANDER (BRASIL) S.A.', | ||
'409': 'UNIBANCO UNIAO DE BANCOS BRASILEIROS S.A. (Unibanco)', | ||
'041': 'BANCO DO ESTADO DO RIO GRANDE DO SUL S.A. (Banrisul)', | ||
'104': 'CAIXA ECONOMICA FEDERAL (Caixa Econômica Federal)', | ||
'399': 'HSBC BANK BRASIL S.A.BANCO MULTIPLO (HSBC)', | ||
'745': 'BANCO CITIBANK S.A.', | ||
'151': 'BANCO NOSSA CAIXA S.A (Nossa Caixa)', | ||
'389': 'BANCO MERCANTIL DO BRASIL S.A. (Mercantil do Brasil)', | ||
'004': 'BANCO DO NORDESTE DO BRASIL S.A (Banco do Nordeste (BNB) )', | ||
'021': 'BANESTES S.A BANCO DO ESTADO DO ESPIRITO SANTO (Banestes)', | ||
'422': 'BANCO SAFRA S.A. (Safra)', | ||
'003': 'BANCO DA AMAZONIA S.A. (Banco da Amazônia (Basa))', | ||
'047': 'Banco do Estado de Sergipe S.A (Banese)', | ||
'070': 'Banco de Brasília S.A. (BRB)', | ||
'655': 'Banco Votorantim S.A (Votorantim)', | ||
'107': 'Banco BBM S.A (BBM)', | ||
'025': 'Banco Alfa S.A (Alfa)', | ||
'263': 'Banco Cacique S. A. (Cacique)', | ||
'229': 'BANCO CRUZEIRO DO SUL S.A. (Cruzeiro do Sul)', | ||
'252': 'BANCO FININVEST S.A. (Fininvest)', | ||
'063': 'BANCO IBI S.A - BANCO MULTIPLO (Banco IBI)', | ||
'623': 'BANCO PANAMERICANO S.A. (PanAmericano)', | ||
'633': 'BANCO RENDIMENTO S.A. (Banco Rendimento)', | ||
'749': 'BANCO SIMPLES S.A. (Banco Simples)', | ||
'215': 'BANCO ACOMERCIAL E DE INVESTIMENTO SUDAMERIS S.A. (Sudameris)', | ||
'756': 'BANCO COOPERATIVO DO BRASIL S.A. - (BANCOOB)', | ||
'748': 'BANCO COOPERATIVO SICREDI S.A. (SICREDI)', | ||
'065': 'LEMON BANK BANCO MÚLTIPLO S..A (Lemon Bank)', | ||
'069': 'BPN BRASIL BANCO MÚLTIPLO S.A. (BPN)', | ||
'719': 'BANIF - BANCO INTERNACIONAL DO FUNCHAL (BRASIL), S.A. (Banif)', | ||
'318': 'BANCO BMG S.A. (BMG)', | ||
'027': 'BANCO DO ESTADO DE SANTA CATARINA S.A.', | ||
'208': 'BANCO UBS PACTUAL S.A.', | ||
'479': 'BANCO ITAUBANK S.A.', | ||
'077': 'BANCO INTERMEDIUM S.A.', | ||
'212': 'BANCO ORIGINAL', | ||
'085': 'CECRED-COOPERATIVA CENTRAL DE CREDITO URBANO' | ||
} |
Oops, something went wrong.