Commit adea981 1 parent 3588198 commit adea981 Copy full SHA for adea981
File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,8 @@ sub _garden_subscription {
129
129
# Used for FMS report ID
130
130
ActionReference => $args -> {attributes }{fixmystreet_id },
131
131
132
- # TODO
133
- DirectDebitDate => ' ' ,
134
- DirectDebitReference => ' ' ,
132
+ DirectDebitDate => $args -> {attributes }{direct_debit_start_date } // ' ' ,
133
+ DirectDebitReference => $args -> {attributes }{direct_debit_reference } // ' ' ,
135
134
} );
136
135
137
136
# Expected response:
@@ -169,6 +168,9 @@ sub _garden_subscription_renew {
169
168
PaymentReference => $args -> {attributes }{PaymentCode },
170
169
PaymentMethodCode =>
171
170
PAYMENT_METHOD_MAPPING-> { $args -> {attributes }{payment_method } },
171
+
172
+ DirectDebitDate => $args -> {attributes }{direct_debit_start_date } // ' ' ,
173
+ DirectDebitReference => $args -> {attributes }{direct_debit_reference } // ' ' ,
172
174
} );
173
175
174
176
# Expected response:
Original file line number Diff line number Diff line change @@ -84,6 +84,23 @@ sub _build_attributes {
84
84
required => 0,
85
85
automated => ' hidden_field' ,
86
86
),
87
+
88
+ # For direct debit payments
89
+ Open311::Endpoint::Service::Attribute-> new(
90
+ code => ' direct_debit_reference' ,
91
+ description => ' Direct debit reference' ,
92
+ datatype => ' string' ,
93
+ required => 0,
94
+ automated => ' hidden_field' ,
95
+ ),
96
+ Open311::Endpoint::Service::Attribute-> new(
97
+ code => ' direct_debit_start_date' ,
98
+ description => ' Direct debit initial payment date' ,
99
+ datatype => ' string' ,
100
+ required => 0,
101
+ automated => ' hidden_field' ,
102
+ ),
103
+
87
104
);
88
105
89
106
return \@attributes ;
You can’t perform that action at this time.
0 commit comments