Skip to content

Commit

Permalink
Merge pull request #358 from pagarme/add-pagarme-payload-caixa
Browse files Browse the repository at this point in the history
boleto-caixa: includes pagarme in recipient name
  • Loading branch information
alinemarjorie authored Mar 1, 2021
2 parents e3cc680 + 0299492 commit dda4072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/boleto-api-caixa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const buildPayload = (boleto, operationId) => {
documentNumber: String(path(['title_id'], boleto)),
},
recipient: {
name: path(['company_name'], boleto),
name: `${path(['company_name'], boleto)} | Pagar.me Pagamentos S/A`,
document: {
type: recipientDocumentType,
number: path(['company_document_number'], boleto),
Expand Down
4 changes: 2 additions & 2 deletions test/unit/providers/boleto-api-caixa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('buildPayload with full payer_address', async (t) => {
documentNumber: String(boleto.title_id),
},
recipient: {
name: boleto.company_name,
name: `${boleto.company_name} | Pagar.me Pagamentos S/A`,
document: {
type: getDocumentType(boleto.company_document_number),
number: boleto.company_document_number,
Expand Down Expand Up @@ -98,7 +98,7 @@ test('buildPayload with payer_address incomplete', async (t) => {
documentNumber: String(boleto.title_id),
},
recipient: {
name: boleto.company_name,
name: `${boleto.company_name} | Pagar.me Pagamentos S/A`,
document: {
type: getDocumentType(boleto.company_document_number),
number: boleto.company_document_number,
Expand Down

0 comments on commit dda4072

Please sign in to comment.