File tree 1 file changed +18
-4
lines changed
src/main/java/com/stripe/model
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class Plan extends APIResource implements MetadataStore<Plan>, HasId {
21
21
Boolean livemode ;
22
22
Map <String , String > metadata ;
23
23
String nickname ;
24
- String product ;
24
+ ExpandableField < Product > product ;
25
25
26
26
@ Deprecated
27
27
String statementDescription ;
@@ -113,11 +113,25 @@ public void setNickname(String nickname) {
113
113
}
114
114
115
115
public String getProduct () {
116
- return product ;
116
+ if (this .product == null ) {
117
+ return null ;
118
+ }
119
+ return this .product .getId ();
117
120
}
118
121
119
- public void setProduct (String product ) {
120
- this .product = product ;
122
+ public void setProduct (String productID ) {
123
+ this .product = setExpandableFieldID (productID , this .product );
124
+ }
125
+
126
+ public Product getProductObject () {
127
+ if (this .product == null ) {
128
+ return null ;
129
+ }
130
+ return this .product .getExpanded ();
131
+ }
132
+
133
+ public void setProductObject (Product product ) {
134
+ this .product = new ExpandableField <Product >(product .getId (), product );
121
135
}
122
136
123
137
/**
You can’t perform that action at this time.
0 commit comments