@@ -128,7 +128,45 @@ class PaymentMethodSettings
128
128
* @ORM\Column(name="mollie_method_description", type="string", length=255, nullable=false)
129
129
*/
130
130
protected $ mollieMethodDescription ;
131
+ /**
132
+ * @var Collection|LocalizedFallbackValue[]
133
+ *
134
+ * @ORM\ManyToMany(
135
+ * targetEntity="Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue",
136
+ * cascade={"ALL"},
137
+ * orphanRemoval=true
138
+ * )
139
+ * @ORM\JoinTable(
140
+ * name="mollie_single_click_appr_text",
141
+ * joinColumns={
142
+ * @ORM\JoinColumn(name="payment_setting_id", referencedColumnName="id", onDelete="CASCADE")
143
+ * },
144
+ * inverseJoinColumns={
145
+ * @ORM\JoinColumn(name="localized_value_id", referencedColumnName="id", onDelete="CASCADE", unique=true)
146
+ * }
147
+ * )
148
+ */
131
149
150
+ protected $ singleClickPaymentApprovalText ;
151
+ /**
152
+ * @var Collection|LocalizedFallbackValue[]
153
+ *
154
+ * @ORM\ManyToMany(
155
+ * targetEntity="Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue",
156
+ * cascade={"ALL"},
157
+ * orphanRemoval=true
158
+ * )
159
+ * @ORM\JoinTable(
160
+ * name="mollie_single_click_desc",
161
+ * joinColumns={
162
+ * @ORM\JoinColumn(name="payment_setting_id", referencedColumnName="id", onDelete="CASCADE")
163
+ * },
164
+ * inverseJoinColumns={
165
+ * @ORM\JoinColumn(name="localized_value_id", referencedColumnName="id", onDelete="CASCADE", unique=true)
166
+ * }
167
+ * )
168
+ */
169
+ protected $ singleClickPaymentDescription ;
132
170
/**
133
171
* @var \Mollie\Bundle\PaymentBundle\IntegrationCore\BusinessLogic\PaymentMethod\Model\PaymentMethodConfig
134
172
*/
@@ -157,18 +195,35 @@ class PaymentMethodSettings
157
195
/**
158
196
* @var string
159
197
*/
160
- private $ method ;
198
+ private $ surchargeType ;
199
+
200
+ /**
201
+ * @var string
202
+ */
203
+ private $ surchargeFixedAmount ;
161
204
162
205
/**
163
206
* @var string
164
207
*/
165
- private $ surcharge ;
208
+ private $ surchargePercentage ;
166
209
210
+ /**
211
+ * @var string
212
+ */
213
+ private $ surchargeLimit ;
214
+ /**
215
+ * @var string
216
+ */
217
+ private $ method ;
167
218
/**
168
219
* @var boolean
169
220
*/
170
221
private $ mollieComponents ;
171
222
223
+ /**
224
+ * @var boolean
225
+ */
226
+ private $ singleClickPayment ;
172
227
/**
173
228
* @var string
174
229
*/
@@ -203,6 +258,8 @@ public function __construct()
203
258
$ this ->descriptions = new ArrayCollection ();
204
259
$ this ->paymentDescriptions = new ArrayCollection ();
205
260
$ this ->transactionDescriptions = new ArrayCollection ();
261
+ $ this ->singleClickPaymentApprovalText = new ArrayCollection ();
262
+ $ this ->singleClickPaymentDescription = new ArrayCollection ();
206
263
}
207
264
208
265
/**
@@ -450,6 +507,70 @@ public function setEnabled($enabled)
450
507
$ this ->enabled = $ enabled ;
451
508
}
452
509
510
+ /**
511
+ * @return string
512
+ */
513
+ public function getSurchargeType ()
514
+ {
515
+ return $ this ->surchargeType ;
516
+ }
517
+
518
+ /**
519
+ * @param string $surchargeType
520
+ */
521
+ public function setSurchargeType ($ surchargeType )
522
+ {
523
+ $ this ->surchargeType = $ surchargeType ;
524
+ }
525
+
526
+ /**
527
+ * @return string
528
+ */
529
+ public function getSurchargeFixedAmount ()
530
+ {
531
+ return $ this ->surchargeFixedAmount ;
532
+ }
533
+
534
+ /**
535
+ * @param string $surchargeFixedAmount
536
+ */
537
+ public function setSurchargeFixedAmount ($ surchargeFixedAmount )
538
+ {
539
+ $ this ->surchargeFixedAmount = $ surchargeFixedAmount ;
540
+ }
541
+
542
+ /**
543
+ * @return string
544
+ */
545
+ public function getSurchargePercentage ()
546
+ {
547
+ return $ this ->surchargePercentage ;
548
+ }
549
+
550
+ /**
551
+ * @param string $surchargePercentage
552
+ */
553
+ public function setSurchargePercentage ($ surchargePercentage )
554
+ {
555
+ $ this ->surchargePercentage = $ surchargePercentage ;
556
+ }
557
+
558
+ /**
559
+ * @return string
560
+ */
561
+ public function getSurchargeLimit ()
562
+ {
563
+ return $ this ->surchargeLimit ;
564
+ }
565
+
566
+ /**
567
+ * @param string $surchargeLimit
568
+ */
569
+ public function setSurchargeLimit ($ surchargeLimit )
570
+ {
571
+ $ this ->surchargeLimit = $ surchargeLimit ;
572
+ }
573
+
453
574
/**
454
575
* @return string
455
576
*/
@@ -499,35 +620,123 @@ public function setOriginalImagePath($originalImagePath)
499
620
}
500
621
501
622
/**
502
- * @return string
623
+ * @return mixed
503
624
*/
504
- public function getSurcharge ()
625
+ public function getMollieComponents ()
505
626
{
506
- return $ this ->surcharge ;
627
+ return $ this ->mollieComponents ;
507
628
}
508
629
509
630
/**
510
- * @param string $surcharge
631
+ * @param bool $mollieComponents
511
632
*/
512
- public function setSurcharge ( $ surcharge )
633
+ public function setMollieComponents ( $ mollieComponents )
513
634
{
514
- $ this ->surcharge = $ surcharge ;
635
+ $ this ->mollieComponents = $ mollieComponents ;
515
636
}
516
637
517
638
/**
518
639
* @return mixed
519
640
*/
520
- public function getMollieComponents ()
641
+ public function getSingleClickPayment ()
521
642
{
522
- return $ this ->mollieComponents ;
643
+ return $ this ->singleClickPayment ;
523
644
}
524
645
525
646
/**
526
- * @param bool $mollieComponents
647
+ * @param bool $singleClickPayment
527
648
*/
528
- public function setMollieComponents ( $ mollieComponents )
649
+ public function setSingleClickPayment ( $ singleClickPayment )
529
650
{
530
- $ this ->mollieComponents = $ mollieComponents ;
651
+ $ this ->singleClickPayment = $ singleClickPayment ;
652
+ }
653
+
654
+ /**
655
+ * @return Collection|LocalizedFallbackValue[]
656
+ */
657
+ public function getSingleClickPaymentApprovalText ()
658
+ {
659
+ return $ this ->singleClickPaymentApprovalText ;
660
+ }
661
+
662
+ /**
663
+ * @param Collection|LocalizedFallbackValue[] $singleClickPaymentApprovalText
664
+ */
665
+ public function setSingleClickPaymentApprovalText ($ singleClickPaymentApprovalText )
666
+ {
667
+ $ this ->singleClickPaymentApprovalText = $ singleClickPaymentApprovalText ;
668
+ }
669
+
670
+ /**
671
+ * @param LocalizedFallbackValue $singleClickPaymentApprovalText
672
+ *
673
+ * @return $this
674
+ */
675
+ public function addSingleClickPaymentApprovalText (LocalizedFallbackValue $ singleClickPaymentApprovalText )
676
+ {
677
+ if (!$ this ->singleClickPaymentApprovalText ->contains ($ singleClickPaymentApprovalText )) {
678
+ $ this ->singleClickPaymentApprovalText ->add ($ singleClickPaymentApprovalText );
679
+ }
680
+
681
+ return $ this ;
682
+ }
683
+
684
+ /**
685
+ * @param LocalizedFallbackValue $singleClickPaymentApprovalText
686
+ *
687
+ * @return $this
688
+ */
689
+ public function removeSingleClickPaymentApprovalText (LocalizedFallbackValue $ singleClickPaymentApprovalText )
690
+ {
691
+ if ($ this ->singleClickPaymentApprovalText ->contains ($ singleClickPaymentApprovalText )) {
692
+ $ this ->singleClickPaymentApprovalText ->removeElement ($ singleClickPaymentApprovalText );
693
+ }
694
+
695
+ return $ this ;
696
+ }
697
+
698
+ /**
699
+ * @return Collection|LocalizedFallbackValue[]
700
+ */
701
+ public function getSingleClickPaymentDescription ()
702
+ {
703
+ return $ this ->singleClickPaymentDescription ;
704
+ }
705
+
706
+ /**
707
+ * @param Collection|LocalizedFallbackValue[] $singleClickPaymentDescription
708
+ */
709
+ public function setSingleClickPaymentDescription ($ singleClickPaymentDescription )
710
+ {
711
+ $ this ->singleClickPaymentDescription = $ singleClickPaymentDescription ;
712
+ }
713
+
714
+ /**
715
+ * @param LocalizedFallbackValue $singleClickPaymentDescription
716
+ *
717
+ * @return $this
718
+ */
719
+ public function addSingleClickPaymentDescription (LocalizedFallbackValue $ singleClickPaymentDescription )
720
+ {
721
+ if (!$ this ->singleClickPaymentDescription ->contains ($ singleClickPaymentDescription )) {
722
+ $ this ->singleClickPaymentDescription ->add ($ singleClickPaymentDescription );
723
+ }
724
+
725
+ return $ this ;
726
+ }
727
+
728
+ /**
729
+ * @param LocalizedFallbackValue $singleClickPaymentDescription
730
+ *
731
+ * @return $this
732
+ */
733
+ public function removeSingleClickPaymentDescription (LocalizedFallbackValue $ singleClickPaymentDescription )
734
+ {
735
+ if ($ this ->singleClickPaymentDescription ->contains ($ singleClickPaymentDescription )) {
736
+ $ this ->singleClickPaymentDescription ->removeElement ($ singleClickPaymentDescription );
737
+ }
738
+
739
+ return $ this ;
531
740
}
532
741
533
742
/**
0 commit comments