diff --git a/src/ApiEntity/Order.php b/src/ApiEntity/Order.php new file mode 100644 index 0000000..314ef83 --- /dev/null +++ b/src/ApiEntity/Order.php @@ -0,0 +1,223 @@ +sourceSystem = $sourceSystem; + $this->sourceId = $sourceId; + $this->createDate = $createDate; + $this->contactId = $contactId; + $this->contactEmail = $contactEmail; + $this->total = $total; + } + + public function getSourceSystem(): ?string + { + return $this->sourceSystem; + } + + public function setSourceSystem(?string $value): self + { + $this->sourceSystem = $value; + + return $this; + } + + public function getSourceId(): ?string + { + return $this->sourceId; + } + + public function setSourceId(?string $value): self + { + $this->sourceId = $value; + + return $this; + } + + public function getCreateDate(): ?\DateTime + { + return $this->createDate; + } + + public function setCreateDate(?\DateTime $value): self + { + $this->createDate = $value; + + return $this; + } + + public function getContactId(): ?string + { + return $this->contactId; + } + + public function setContactId(?string $value): self + { + $this->contactId = $value; + + return $this; + } + + public function getContactEmail(): ?string + { + return $this->contactEmail; + } + + public function setContactEmail(?string $value): self + { + $this->contactEmail = $value; + + return $this; + } + + public function getTotal(): ?float + { + return $this->total; + } + + public function setTotal(?float $value): self + { + $this->total = $value; + + return $this; + } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $value): self + { + $this->currency = $value; + + return $this; + } + + public function getCity(): ?string + { + return $this->city; + } + + public function setCity(?string $value): self + { + $this->city = $value; + + return $this; + } + + public function getState(): ?string + { + return $this->state; + } + + public function setState(?string $value): self + { + $this->state = $value; + + return $this; + } + + public function getCountry(): ?string + { + return $this->country; + } + + public function setCountry(?string $value): self + { + $this->country = $value; + + return $this; + } + + public function getIpAddress(): ?string + { + return $this->ipAddress; + } + + public function setIpAddress(?string $value): self + { + $this->ipAddress = $value; + + return $this; + } + + public function getSubscriptionId(): ?string + { + return $this->subscriptionId; + } + + public function setSubscriptionId(?string $value): self + { + $this->subscriptionId = $value; + + return $this; + } + + public function getItems(): ?OrderItemCollection + { + return $this->items; + } + + public function setItems(?OrderItemCollection $value): self + { + $this->items = $value; + + return $this; + } + + public function getPayments(): ?OrderPaymentCollection + { + return $this->payments; + } + + public function setPayments(?OrderPaymentCollection $value): self + { + $this->payments = $value; + + return $this; + } + + public function getModifiedDate(): \DateTime + { + return $this->modifiedDate; + } + + public function setModifiedDate(\DateTime $value): self + { + $this->modifiedDate = $value; + + return $this; + } +} diff --git a/src/ApiEntity/OrderItem.php b/src/ApiEntity/OrderItem.php new file mode 100644 index 0000000..43cff0e --- /dev/null +++ b/src/ApiEntity/OrderItem.php @@ -0,0 +1,96 @@ +sourceSystem = $sourceSystem; + $this->sourceId = $sourceId; + $this->orderId = $orderId; + } + + public function getSourceSystem(): ?string + { + return $this->sourceSystem; + } + + public function setSourceSystem(?string $value): self + { + $this->sourceSystem = $value; + + return $this; + } + + public function getSourceId(): ?string + { + return $this->sourceId; + } + + public function setSourceId(?string $value): self + { + $this->sourceId = $value; + + return $this; + } + + public function getOrderId(): ?string + { + return $this->orderId; + } + + public function setOrderId(?string $value): self + { + $this->orderId = $value; + + return $this; + } + + public function getProductId(): ?string + { + return $this->productId; + } + + public function setProductId(?string $value): self + { + $this->productId = $value; + + return $this; + } + + public function getQuantity(): ?int + { + return $this->quantity; + } + + public function setQuantity(?int $value): self + { + $this->quantity = $value; + + return $this; + } + + public function getPPU(): ?float + { + return $this->PPU; + } + + public function setPPU(?float $value): self + { + $this->PPU = $value; + + return $this; + } +} diff --git a/src/ApiEntity/OrderPayment.php b/src/ApiEntity/OrderPayment.php new file mode 100644 index 0000000..d78e0b2 --- /dev/null +++ b/src/ApiEntity/OrderPayment.php @@ -0,0 +1,104 @@ +sourceSystem = $sourceSystem; + $this->orderId = $orderId; + $this->createDate = $createDate; + $this->amount = $amount; + } + + public function getSourceSystem(): ?string + { + return $this->sourceSystem; + } + + public function setSourceSystem(?string $value): self + { + $this->sourceSystem = $value; + + return $this; + } + + public function getOrderId(): ?string + { + return $this->orderId; + } + + public function setOrderId(?string $value): self + { + $this->orderId = $value; + + return $this; + } + + public function getCreateDate(): ?\DateTime + { + return $this->createDate; + } + + public function setCreateDate(?\DateTime $value): self + { + $this->createDate = $value; + + return $this; + } + + public function getAmount(): ?float + { + return $this->amount; + } + + public function setAmount(?float $value): self + { + $this->amount = $value; + + return $this; + } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $value): self + { + $this->currency = $value; + + return $this; + } + + public function getStatus(): ?string + { + return $this->status; + } + + public function setStatus(?string $value): self + { + $this->status = $value; + + return $this; + } +} diff --git a/src/ApiEntity/Product.php b/src/ApiEntity/Product.php new file mode 100644 index 0000000..4b4cd63 --- /dev/null +++ b/src/ApiEntity/Product.php @@ -0,0 +1,85 @@ +sourceSystem = $sourceSystem; + $this->sourceId = $sourceId; + $this->name = $name; + $this->price = $price; + } + + public function getSourceSystem(): ?string + { + return $this->sourceSystem; + } + + public function setSourceSystem(?string $value): self + { + $this->sourceSystem = $value; + + return $this; + } + + public function getSourceId(): ?string + { + return $this->sourceId; + } + + public function setSourceId(?string $value): self + { + $this->sourceId = $value; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $value): self + { + $this->name = $value; + + return $this; + } + + public function getPrice(): ?float + { + return $this->price; + } + + public function setPrice(?float $value): self + { + $this->price = $value; + + return $this; + } + + public function getCreateDate(): ?\DateTime + { + return $this->createDate; + } + + public function setCreateDate(?\DateTime $value): self + { + $this->createDate = $value; + + return $this; + } +} diff --git a/src/Collections/ApiEntityCollections/OrderCollection.php b/src/Collections/ApiEntityCollections/OrderCollection.php new file mode 100644 index 0000000..41e50da --- /dev/null +++ b/src/Collections/ApiEntityCollections/OrderCollection.php @@ -0,0 +1,14 @@ +