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