TaxInvoice.php 834 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @copyright Vertex. All rights reserved. https://www.vertexinc.com/
  4. * @author Mediotype https://www.mediotype.com/
  5. */
  6. namespace Vertex\Tax\Model\Config\Source;
  7. use Magento\Framework\Data\OptionSourceInterface;
  8. /**
  9. * Contains options for when to submit an Order to the Vertex Tax Log
  10. */
  11. class TaxInvoice implements OptionSourceInterface
  12. {
  13. /**
  14. * Available options for when to submit to the Vertex Tax log
  15. *
  16. * @return array
  17. */
  18. public function toOptionArray()
  19. {
  20. return [
  21. [
  22. 'label' => __('When Invoice Created'),
  23. 'value' => 'invoice_created'
  24. ],
  25. [
  26. 'label' => __('When Order Status Is Changed'),
  27. 'value' => 'order_status'
  28. ]
  29. ];
  30. }
  31. }