Commit 02df755a authored by Mark Harding's avatar Mark Harding

(fix): recurring wire intervals

No related merge requests found
Pipeline #98884351 failed with stages
in 3 minutes and 39 seconds
......@@ -36,6 +36,7 @@ export interface WireStruc {
payloadType: PayloadType | null;
guid: any;
recurring: boolean;
recurringInterval: 'once' | 'monthly' | 'yearly' | null;
payload: any;
}
......@@ -53,7 +54,7 @@ export class WireCreatorComponent {
payloadType: 'onchain',
guid: null,
recurring: true,
recurringInterval: 'monthly',
// Payment
payload: null,
};
......
......@@ -11,6 +11,7 @@ export class WirePaymentsCreatorComponent extends WireCreatorComponent {
@Input('opts') set opts(opts) {
this._opts = opts;
this.wire.amount = opts.amount;
this.wire.recurringInterval = opts.interval;
switch (opts.currency) {
case 'tokens':
this.wire.payloadType = 'offchain';
......
......@@ -110,6 +110,7 @@ export class WireService {
method: payload.method,
amount: wire.amount,
recurring: wire.recurring,
recurring_interval: wire.recurringInterval,
});
this.wireSent.next(wire);
......
Please register or to comment