This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 4444 * @method Payment setCustom(CustomFieldObject $custom = null)
4545 * @method PaymentStatus getPaymentStatus()
4646 * @method Payment setPaymentStatus(PaymentStatus $paymentStatus = null)
47- * @method getTransactions()
48- * @method Payment setTransactions($transactions = null)
47+ * @method TransactionCollection getTransactions()
48+ * @method Payment setTransactions(TransactionCollection $transactions = null)
4949 * @method CustomFieldObjectCollection getInterfaceInteractions()
5050 * @method Payment setInterfaceInteractions(CustomFieldObjectCollection $interfaceInteractions = null)
5151 */
Original file line number Diff line number Diff line change 1010/**
1111 * @package Commercetools\Core\Model\Payment
1212 *
13- * @method PaymentCollection getPayments()
14- * @method PaymentInfo setPayments(PaymentCollection $payments = null)
13+ * @method PaymentReferenceCollection getPayments()
14+ * @method PaymentInfo setPayments(PaymentReferenceCollection $payments = null)
1515 */
1616class PaymentInfo extends JsonObject
1717{
1818 public function fieldDefinitions ()
1919 {
2020 return [
21- 'payments ' => [static ::TYPE => '\Commercetools\Core\Model\Payment\PaymentCollection ' ],
21+ 'payments ' => [static ::TYPE => '\Commercetools\Core\Model\Payment\PaymentReferenceCollection ' ],
2222 ];
2323 }
2424}
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @author @ct-jensschulze <[email protected] > 4+ */
5+
6+ namespace Commercetools \Core \Model \Payment ;
7+
8+ use Commercetools \Core \Model \Common \Collection ;
9+
10+ /**
11+ * @package Commercetools\Core\Model\Payment
12+ *
13+ * @method PaymentReferenceCollection add(PaymentReference $element)
14+ * @method PaymentReference current()
15+ * @method PaymentReference getAt($offset)
16+ */
17+ class PaymentReferenceCollection extends Collection
18+ {
19+ protected $ type = '\Commercetools\Core\Model\Payment\PaymentReference ' ;
20+ }
You can’t perform that action at this time.
0 commit comments