This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +62
-1
lines changed Expand file tree Collapse file tree 7 files changed +62
-1
lines changed Original file line number Diff line number Diff line change 1212use Commercetools \Core \Model \CustomerGroup \CustomerGroupReference ;
1313use Commercetools \Core \Model \CustomField \CustomFieldObject ;
1414use Commercetools \Core \Model \Common \DateTimeDecorator ;
15+ use Commercetools \Core \Model \Payment \PaymentInfo ;
1516
1617/**
1718 * @package Commercetools\Core\Model\Cart
5455 * @method Cart setDiscountCodes(DiscountCodeInfoCollection $discountCodes = null)
5556 * @method CustomFieldObject getCustom()
5657 * @method Cart setCustom(CustomFieldObject $custom = null)
58+ * @method PaymentInfo getPaymentInfo()
59+ * @method Cart setPaymentInfo(PaymentInfo $paymentInfo = null)
5760 */
5861class Cart extends Resource
5962{
@@ -85,6 +88,7 @@ public function fieldDefinitions()
8588 'shippingInfo ' => [static ::TYPE => '\Commercetools\Core\Model\Cart\ShippingInfo ' ],
8689 'discountCodes ' => [static ::TYPE => '\Commercetools\Core\Model\Cart\DiscountCodeInfoCollection ' ],
8790 'custom ' => [static ::TYPE => '\Commercetools\Core\Model\CustomField\CustomFieldObject ' ],
91+ 'paymentInfo ' => [static ::TYPE => '\Commercetools\Core\Model\Cart\PaymentInfo ' ],
8892 ];
8993 }
9094}
Original file line number Diff line number Diff line change 7676 * @method Order setCustom(CustomFieldObject $custom = null)
7777 * @method StateReference getState()
7878 * @method Order setState(StateReference $state = null)
79+ * @method PaymentInfo getPaymentInfo()
80+ * @method Order setPaymentInfo(PaymentInfo $paymentInfo = null)
7981 */
8082class Order extends Resource
8183{
@@ -114,7 +116,8 @@ public function fieldDefinitions()
114116 'lastMessageSequenceNumber ' => [static ::TYPE => 'int ' ],
115117 'cart ' => [static ::TYPE => '\Commercetools\Core\Model\Cart\CartReference ' ],
116118 'custom ' => [static ::TYPE => '\Commercetools\Core\Model\CustomField\CustomFieldObject ' ],
117- 'state ' => [static ::TYPE => '\Commercetools\Core\Model\State\StateReference ' ]
119+ 'state ' => [static ::TYPE => '\Commercetools\Core\Model\State\StateReference ' ],
120+ 'paymentInfo ' => [static ::TYPE => '\Commercetools\Core\Model\Cart\PaymentInfo ' ],
118121 ];
119122 }
120123}
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 \JsonObject ;
9+
10+ /**
11+ * @package Commercetools\Core\Model\Payment
12+ *
13+ * @method PaymentCollection getPayments()
14+ * @method PaymentInfo setPayments(PaymentCollection $payments = null)
15+ */
16+ class PaymentInfo extends JsonObject
17+ {
18+ public function fieldDefinitions ()
19+ {
20+ return [
21+ 'payments ' => [static ::TYPE => '\Commercetools\Core\Model\Payment\PaymentCollection ' ],
22+ ];
23+ }
24+ }
Original file line number Diff line number Diff line change 88use Commercetools \Core \Model \Common \Context ;
99use Commercetools \Core \Model \Common \Reference ;
1010
11+ /**
12+ * @package Commercetools\Core\Model\Payment
13+ *
14+ * @method string getTypeId()
15+ * @method PaymentReference setTypeId(string $typeId = null)
16+ * @method string getId()
17+ * @method PaymentReference setId(string $id = null)
18+ * @method Payment getObj()
19+ * @method PaymentReference setObj(Payment $obj = null)
20+ */
1121class PaymentReference extends Reference
1222{
1323 const TYPE_PAYMENT = 'payment ' ;
Original file line number Diff line number Diff line change 77
88use Commercetools \Core \Model \Common \Context ;
99use Commercetools \Core \Request \AbstractAction ;
10+ use Commercetools \Core \Model \Payment \PaymentReference ;
1011
12+ /**
13+ * @package Commercetools\Core\Request\Carts\Command
14+ *
15+ * @method string getAction()
16+ * @method CartAddPaymentAction setAction(string $action = null)
17+ * @method PaymentReference getPayment()
18+ * @method CartAddPaymentAction setPayment(PaymentReference $payment = null)
19+ */
1120class CartAddPaymentAction extends AbstractAction
1221{
1322 public function fieldDefinitions ()
Original file line number Diff line number Diff line change 77
88use Commercetools \Core \Model \Common \Context ;
99use Commercetools \Core \Request \AbstractAction ;
10+ use Commercetools \Core \Model \Payment \PaymentReference ;
1011
12+ /**
13+ * @package Commercetools\Core\Request\Carts\Command
14+ *
15+ * @method string getAction()
16+ * @method CartRemovePaymentAction setAction(string $action = null)
17+ * @method PaymentReference getPayment()
18+ * @method CartRemovePaymentAction setPayment(PaymentReference $payment = null)
19+ */
1120class CartRemovePaymentAction extends AbstractAction
1221{
1322 public function fieldDefinitions ()
Original file line number Diff line number Diff line change 2121 - shippingInfo
2222 - discountCodes
2323 - custom
24+ - paymentInfo
2425
2526lineItem :
2627 domain : cart
@@ -336,6 +337,7 @@ order:
336337 - cart
337338 - custom
338339 - state
340+ - paymentInfo
339341
340342syncInfo :
341343 domain : order
You can’t perform that action at this time.
0 commit comments