SettlementDataBuilder.php 578 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Braintree\Gateway\Request;
  7. use Magento\Payment\Gateway\Request\BuilderInterface;
  8. /**
  9. * Class SettlementDataBuilder
  10. */
  11. class SettlementDataBuilder implements BuilderInterface
  12. {
  13. const SUBMIT_FOR_SETTLEMENT = 'submitForSettlement';
  14. /**
  15. * @inheritdoc
  16. */
  17. public function build(array $buildSubject)
  18. {
  19. return [
  20. 'options' => [
  21. self::SUBMIT_FOR_SETTLEMENT => true
  22. ]
  23. ];
  24. }
  25. }