gerencianet/gn-api-sdk-node

View on GitHub

Showing 96 of 96 total issues

Identical blocks of code found in 4 locations. Consider refactoring.
Open

gerencianet
  .oneStep([], body)
      .then((resposta) => {
        console.log(resposta)
    })
examples/default/charge/createChargeOneStep.js on lines 35..43
examples/default/charge/createChargeOneStepBilletMarketPlace.js on lines 44..52
examples/default/charge/createChargeOneStepCreditCard.js on lines 44..52

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 70.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 4 locations. Consider refactoring.
Open

gerencianet
  .oneStep([], body)
  .then((resposta) => {
    console.log(resposta)
  })
Severity: Major
Found in examples/default/charge/createChargeOneStep.js and 3 other locations - About 1 hr to fix
examples/default/charge/createChargeOneStepBilletMarketPlace.js on lines 44..52
examples/default/charge/createChargeOneStepCardMarketPlace.js on lines 53..61
examples/default/charge/createChargeOneStepCreditCard.js on lines 44..52

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 70.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .payCharge(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/createCardPayment.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .createChargeBalanceSheet(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/createChargeBalanceSheet.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .createChargeHistory(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/createChargeHistory.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .updateCarnetMetadata(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/updateCarnetMetadata.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .updateSubscriptionMetadata(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .resendBillet(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/resendBillet.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .chargeLink(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/chargeLink.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .createPlan(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/subscription/createPlan.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .payCharge(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/createBilletPayment.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .updateParcel(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/updateParcel.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .updateBillet(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/updateBillet.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .updateChargeLink(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/updateChargeLink.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .resendCarnet(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/resendCarnet.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .paySubscription(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .updateChargeMetadata(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/updateChargeMetadata.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .createCarnetHistory(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/createCarnetHistory.js and 17 other locations - About 1 hr to fix
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
    .createSubscriptionHistory(params, body)
    .then((resposta) => {
        console.log(resposta)
    })
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/resendParcel.js on lines 18..26
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 18 locations. Consider refactoring.
Open

gerencianet
  .resendParcel(params, body)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/resendParcel.js and 17 other locations - About 1 hr to fix
examples/default/carnet/createCarnetHistory.js on lines 17..25
examples/default/carnet/resendCarnet.js on lines 17..25
examples/default/carnet/updateCarnetMetadata.js on lines 18..26
examples/default/carnet/updateParcel.js on lines 18..26
examples/default/charge/chargeLink.js on lines 27..35
examples/default/charge/createBilletPayment.js on lines 33..41
examples/default/charge/createCardPayment.js on lines 37..45
examples/default/charge/createChargeBalanceSheet.js on lines 78..86
examples/default/charge/createChargeHistory.js on lines 17..25
examples/default/charge/resendBillet.js on lines 17..25
examples/default/charge/updateBillet.js on lines 17..25
examples/default/charge/updateChargeLink.js on lines 27..35
examples/default/charge/updateChargeMetadata.js on lines 18..26
examples/default/subscription/createPlan.js on lines 17..25
examples/default/subscription/createSubscriptionHistory.js on lines 17..25
examples/default/subscription/createSubscriptionPayment.js on lines 36..44
examples/default/subscription/updateSubscriptionMetadata.js on lines 18..26

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language