Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet): Add method and target_ongoing_balance to recurring_transaction_rule #177

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,28 @@ const (
)

type RecurringTransactionRuleInput struct {
LagoID uuid.UUID `json:"lago_id,omitempty"`
Interval string `json:"interval,omitempty"`
ThresholdCredits string `json:"threshold_credits,omitempty"`
Trigger string `json:"trigger,omitempty"`
PaidCredits string `json:"paid_credits,omitempty"`
GrantedCredits string `json:"granted_credits,omitempty"`
LagoID uuid.UUID `json:"lago_id,omitempty"`
Interval string `json:"interval,omitempty"`
Method string `json:"method,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
TargetOngoingBalance string `json:"target_ongoing_balance,omitempty"`
ThresholdCredits string `json:"threshold_credits,omitempty"`
Trigger string `json:"trigger,omitempty"`
PaidCredits string `json:"paid_credits,omitempty"`
GrantedCredits string `json:"granted_credits,omitempty"`
}

type RecurringTransactionRuleResponse struct {
LagoID uuid.UUID `json:"lago_id,omitempty"`
Interval string `json:"interval,omitempty"`
ThresholdCredits string `json:"threshold_credits,omitempty"`
Trigger string `json:"trigger,omitempty"`
PaidCredits string `json:"paid_credits,omitempty"`
GrantedCredits string `json:"granted_credits,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
LagoID uuid.UUID `json:"lago_id,omitempty"`
Interval string `json:"interval,omitempty"`
Method string `json:"method,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
TargetOngoingBalance string `json:"target_ongoing_balance,omitempty"`
ThresholdCredits string `json:"threshold_credits,omitempty"`
Trigger string `json:"trigger,omitempty"`
PaidCredits string `json:"paid_credits,omitempty"`
GrantedCredits string `json:"granted_credits,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
}

type WalletRequest struct {
Expand Down
Loading