Skip to content

Commit

Permalink
Merge pull request #22 from solid-software/subscription-schedule-update
Browse files Browse the repository at this point in the history
add end behavior on update subscription schedule
  • Loading branch information
yurii-prykhodko-solid authored May 29, 2024
2 parents 7ae50a5 + faa6689 commit 4476af1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
42 changes: 30 additions & 12 deletions lib/messages.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions lib/src/messages/requests/update_subscription_schedule.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
part of '../../../messages.dart';

enum SubscriptionScheduleEndBehavior {
@JsonValue('release')
release,
@JsonValue('cancel')
cancel,
}

@JsonSerializable()
class UpdateSubscriptionScheduleRequest extends Message {
final List<UpdateSubscriptionSchedulePhase> phases;

final SubscriptionScheduleEndBehavior? endBehavior;

const UpdateSubscriptionScheduleRequest({
required this.phases,
this.endBehavior,
});

factory UpdateSubscriptionScheduleRequest.fromJson(
Expand Down

0 comments on commit 4476af1

Please sign in to comment.