Permalink
Browse files

first commit

  • Loading branch information...
stephpy committed Aug 13, 2012
0 parents commit 09331b702052a5c1135540e556b656ad2dbdd644
Showing with 1,259 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +33 −0 Model/Document.php
  3. +65 −0 Model/GroupHeader.php
  4. +23 −0 Model/GroupHeader/InitiatingParty.php
  5. +31 −0 Model/Pain.php
  6. +95 −0 Model/PaymentInformation.php
  7. +86 −0 Model/PaymentInformation/CreditTransferTransactionInformation.php
  8. +36 −0 Model/PaymentInformation/CreditTransferTransactionInformation/Amount.php
  9. +35 −0 Model/PaymentInformation/CreditTransferTransactionInformation/Creditor.php
  10. +37 −0 Model/PaymentInformation/CreditTransferTransactionInformation/CreditorAccount.php
  11. +36 −0 Model/PaymentInformation/CreditTransferTransactionInformation/CreditorAgent.php
  12. +43 −0 Model/PaymentInformation/CreditTransferTransactionInformation/InstructedAmount.php
  13. +45 −0 Model/PaymentInformation/CreditTransferTransactionInformation/PaymentIdentification.php
  14. +36 −0 Model/PaymentInformation/CreditTransferTransactionInformation/Purpose.php
  15. +35 −0 Model/PaymentInformation/CreditTransferTransactionInformation/RemittanceInformation.php
  16. +36 −0 Model/PaymentInformation/CreditTransferTransactionInformation/UltimateCreditor.php
  17. +35 −0 Model/PaymentInformation/CreditTransferTransactionInformation/UltimateDebtor.php
  18. +47 −0 Model/PaymentInformation/Debtor.php
  19. +36 −0 Model/PaymentInformation/DebtorAccount.php
  20. +36 −0 Model/PaymentInformation/DebtorAgent.php
  21. +35 −0 Model/PaymentInformation/Debtors/FinancialInstitutionIdentification.php
  22. +52 −0 Model/PaymentInformation/Debtors/Identification.php
  23. +30 −0 Model/PaymentInformation/Debtors/OrganisationIdentification.php
  24. +38 −0 Model/PaymentInformation/PaymentTypeInformation.php
  25. +28 −0 Model/PaymentInformation/ServiceLevel.php
  26. +35 −0 Model/PaymentInformation/UltimateDebtor.php
  27. +11 −0 README.md
  28. +15 −0 RezzzaSepaBundle.php
  29. +25 −0 composer.json
  30. +163 −0 composer.lock
@@ -0,0 +1 @@
+vendor
@@ -0,0 +1,33 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model;
+
+use JMS\SerializerBundle\Annotation\XmlRoot;
+use JMS\SerializerBundle\Annotation\XmlAttribute;
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+
+/**
+ * Document
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ *
+ * @XmlRoot("Document")
+ */
+class Document
+{
+ /**
+ * MANDATORY
+ *
+ * @Type("string")
+ * @XmlAttribute
+ * @SerializedName("xmlns");
+ */
+ private $xmlns = "urn:iso:std:iso:20022:tech:xsd:pain.001.001.02";
+
+ /**
+ * @Type("Pain")
+ * @SerializedName("pain.001.001.02");
+ */
+ public $pain;
+}
@@ -0,0 +1,65 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model;
+
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+
+/**
+ * GroupHeader
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ */
+class GroupHeader
+{
+ /**
+ * MANDATORY
+ * IGNORED
+ *
+ * @Type("string")
+ * @SerializedName("MsgId")
+ */
+ public $messageIdentification;
+
+ /**
+ * MANDATORY
+ * IGNORED
+ *
+ * @Type("datetime")
+ * @SerializedName("CreDtTm")
+ */
+ public $creationDateTime;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("integer")
+ * @SerializedName("NbOfTxs")
+ */
+ public $numberOfTransactions;
+
+ /**
+ * REQUIRED
+ *
+ * @Type("decimal")
+ * @SerializedName("CtrlSum")
+ */
+ public $controlSum;
+
+ /**
+ * MANDATORY
+ * IGNORED
+ *
+ * @Type("string")
+ * @SerializedName("Grpg")
+ */
+ public $grouping = "MIXD";
+
+ /**
+ * IGNORED
+ *
+ * @Type("Rezzza\SepaBundle\Model\GroupHeader\InitiatingParty")
+ * @SerializedName("InitgPty")
+ */
+ public $initiatingParty;
+}
@@ -0,0 +1,23 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model\GroupHeader;
+
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+
+/**
+ * InitiatingParty
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ */
+class InitiatingParty
+{
+ /**
+ * REQUIRED
+ * IGNORED
+ *
+ * @Type("string")
+ * @SerializedName("Nm")
+ */
+ public $name;
+}
@@ -0,0 +1,31 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model;
+
+use JMS\SerializerBundle\Annotation\XmlList;
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+
+/**
+ * Pain
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ */
+class Pain
+{
+ /**
+ * MANDATORY
+ *
+ * @Type("GroupHeader")
+ * @SerializedName("GrpHdr")
+ */
+ public $groupHeader;
+
+ /**
+ * MANDATORY
+ *
+ * @XmlList(inline=true, entry= "PmtInf")
+ * @Type("ArrayCollection<PaymentInformation>")
+ */
+ public $paymentInformations;
+}
@@ -0,0 +1,95 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model;
+
+use JMS\SerializerBundle\Annotation\XmlList;
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+
+/**
+ * PaymentInformation
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ */
+class PaymentInformation
+{
+ /**
+ * REQUIRED
+ *
+ * @Type("string")
+ * @SerializedName("PmtInfId")
+ */
+ public $paymentInformationIdentification;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("string")
+ * @SerializedName("PmtMtd")
+ */
+ public $paymentMethod;
+
+ /**
+ * REQUIRED
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\PaymentTypeInformation")
+ * @SerializedName("PmtTpInf")
+ */
+ public $paymentTypeInformation;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("datetime")
+ * @SerializedName("ReqdExctnDt")
+ */
+ public $requestedExecutionDate;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\Debtor")
+ * @SerializedName("Dbtr")
+ */
+ public $debtor;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\DebtorAccount")
+ * @SerializedName("DbtrAcct")
+ */
+ public $debtorAccount;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\DebtorAgent")
+ * @SerializedName("DbtrAgt")
+ */
+ public $debtorAgent;
+
+ /**
+ * OPTIONAL
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\UltimateDebtor")
+ * @SerializedName("UltmtDbtr")
+ */
+ public $ultimateDebtor;
+
+ /**
+ * OPTIONAL
+ *
+ * @Type("string")
+ * @SerializedName("ChrgBr")
+ */
+ public $chargeBearer;
+
+ /**
+ * MANDATORY
+ *
+ * @XmlList(inline=true, entry= "CdtTrfTxInf")
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation")
+ */
+ public $creditTransferTransactionInformations;
+}
@@ -0,0 +1,86 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model\PaymentInformation;
+
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+
+/**
+ * CreditTransferTransactionInformation
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ */
+class CreditTransferTransactionInformation
+{
+ /**
+ * MANDATORY
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\paymentIdentification")
+ * @SerializedName("PmtId")
+ */
+ public $paymentIdentification;
+
+ /**
+ * MANDATORY
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\Amount")
+ * @SerializedName("Amt")
+ */
+ public $amount;
+
+ /**
+ * OPTIONAL
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\UltimateDebtor")
+ * @SerializedName("UltmtDbtr")
+ */
+ public $ultimateDebtor;
+
+ /**
+ * REQUIRED
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\CreditorAgent")
+ * @SerializedName("CdtrAgt")
+ */
+ public $creditorAgent;
+
+ /**
+ * REQUIRED
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\Creditor")
+ * @SerializedName("Cdtr")
+ */
+ public $creditor;
+
+ /**
+ * REQUIRED
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\CreditorAccount")
+ * @SerializedName("CdtrAcct")
+ */
+ public $creditorAccount;
+
+ /**
+ * OPTIONAL
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\UltimateCreditor")
+ * @SerializedName("UltmtCdtr")
+ */
+ public $ultimateCreditor;
+
+ /**
+ * OPTIONAL
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\Purpose")
+ * @SerializedName("Purp")
+ */
+ public $purpose;
+
+ /**
+ * OPTIONAL
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\RemittanceInformation")
+ * @SerializedName("RmtInf")
+ */
+ public $remittanceInformation;
+}
@@ -0,0 +1,36 @@
+<?php
+
+namespace Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation;
+
+use JMS\SerializerBundle\Annotation\Type;
+use JMS\SerializerBundle\Annotation\SerializedName;
+use Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\InstructedAmount;
+
+/**
+ * Amount
+ *
+ * @author Stephane PY <py.stephane1@gmail.com>
+ */
+class Amount
+{
+ /**
+ * MANDATORY
+ *
+ * @Type("Rezzza\SepaBundle\Model\PaymentInformation\CreditTransferTransactionInformation\InstructedAmount")
+ * @SerializedName("InstdAmt")
+ */
+ public $instructedAmount;
+
+ /**
+ * @param float $instructedAmount instructedAmount
+ *
+ * @return Amount
+ */
+ public static function create($instructedAmount)
+ {
+ $instance = new static();
+ $instance->instructedAmount = InstructedAmount::create((float) $instructedAmount);
+
+ return $instance;
+ }
+}
Oops, something went wrong.

0 comments on commit 09331b7

Please sign in to comment.