QuoteLink.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License").
  6. * You may not use this file except in compliance with the License.
  7. * A copy of the License is located at
  8. *
  9. * http://aws.amazon.com/apache2.0
  10. *
  11. * or in the "license" file accompanying this file. This file is distributed
  12. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied. See the License for the specific language governing
  14. * permissions and limitations under the License.
  15. */
  16. namespace Amazon\Payment\Model;
  17. use Amazon\Payment\Api\Data\QuoteLinkInterface;
  18. use Amazon\Payment\Model\ResourceModel\QuoteLink as QuoteLinkResourceModel;
  19. use Magento\Framework\Model\AbstractModel;
  20. class QuoteLink extends AbstractModel implements QuoteLinkInterface
  21. {
  22. protected function _construct()
  23. {
  24. $this->_init(QuoteLinkResourceModel::class);
  25. }
  26. /**
  27. * {@inheritDoc}
  28. */
  29. public function setAmazonOrderReferenceId($amazonOrderReferenceId)
  30. {
  31. return $this->setData('amazon_order_reference_id', $amazonOrderReferenceId);
  32. }
  33. /**
  34. * {@inheritDoc}
  35. */
  36. public function getAmazonOrderReferenceId()
  37. {
  38. return $this->getData('amazon_order_reference_id');
  39. }
  40. /**
  41. * {@inheritDoc}
  42. */
  43. public function setQuoteId($quoteId)
  44. {
  45. return $this->setData('quote_id', $quoteId);
  46. }
  47. /**
  48. * {@inheritDoc}
  49. */
  50. public function getQuoteId()
  51. {
  52. return $this->getData('quote_id');
  53. }
  54. /**
  55. * {@inheritDoc}
  56. */
  57. public function setSandboxSimulationReference($sandboxSimulationReference)
  58. {
  59. return $this->setData('sandbox_simulation_reference', $sandboxSimulationReference);
  60. }
  61. /**
  62. * {@inheritDoc}
  63. */
  64. public function getSandboxSimulationReference()
  65. {
  66. return $this->getData('sandbox_simulation_reference');
  67. }
  68. /**
  69. * {@inheritDoc}
  70. */
  71. public function setConfirmed($confirmed)
  72. {
  73. return $this->setData('confirmed', $confirmed);
  74. }
  75. /**
  76. * {@inheritDoc}
  77. */
  78. public function isConfirmed()
  79. {
  80. return (bool) $this->getData('confirmed');
  81. }
  82. }