QuoteLinkInterface.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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\Api\Data;
  17. use Exception;
  18. /**
  19. * @api
  20. */
  21. interface QuoteLinkInterface
  22. {
  23. /**
  24. * @return mixed
  25. */
  26. public function getId();
  27. /**
  28. * Set amazon order reference id
  29. *
  30. * @param string $amazonOrderReferenceId
  31. *
  32. * @return $this
  33. */
  34. public function setAmazonOrderReferenceId($amazonOrderReferenceId);
  35. /**
  36. * Get amazon order reference id
  37. *
  38. * @return string
  39. */
  40. public function getAmazonOrderReferenceId();
  41. /**
  42. * Set quote id
  43. *
  44. * @param integer $quoteId
  45. *
  46. * @return $this
  47. */
  48. public function setQuoteId($quoteId);
  49. /**
  50. * Get quote id
  51. *
  52. * @return integer
  53. */
  54. public function getQuoteId();
  55. /**
  56. * Set sandbox simulation reference
  57. *
  58. * @param string $sandboxSimulationReference
  59. *
  60. * @return $this
  61. */
  62. public function setSandboxSimulationReference($sandboxSimulationReference);
  63. /**
  64. * Get sandbox simulation reference
  65. *
  66. * @return string
  67. */
  68. public function getSandboxSimulationReference();
  69. /**
  70. * Set quote confirmed with amazon
  71. *
  72. * @param boolean $confirmed
  73. *
  74. * @return $this
  75. */
  76. public function setConfirmed($confirmed);
  77. /**
  78. * Get quote confirmed with amazon
  79. *
  80. * @return boolean
  81. */
  82. public function isConfirmed();
  83. /**
  84. * Save quote link
  85. *
  86. * @return $this
  87. * @throws Exception
  88. */
  89. public function save();
  90. /**
  91. * Delete quote link from database
  92. *
  93. * @return $this
  94. * @throws Exception
  95. */
  96. public function delete();
  97. /**
  98. * Load quote link data
  99. *
  100. * @param integer $modelId
  101. * @param null|string $field
  102. * @return $this
  103. */
  104. public function load($modelId, $field = null);
  105. }