Skip to content

Commit

Permalink
fix: nickname can be null. This fix the "invalid type: null, expected…
Browse files Browse the repository at this point in the history
… a string" error
  • Loading branch information
FGRibreau committed Jun 9, 2018
1 parent 604ca89 commit c8aff89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub struct Plan {
pub interval_count: u64,
pub livemode: bool,
pub metadata: Metadata,
pub nickname: String,
pub nickname: Option<String>,
pub statement_descriptor: Option<String>,
pub trial_period_days: Option<u64>,
}
Expand Down

0 comments on commit c8aff89

Please sign in to comment.