|
6 | 6 | import com.bunq.sdk.http.BunqResponseRaw;
|
7 | 7 | import com.bunq.sdk.model.core.BunqModel;
|
8 | 8 | import com.bunq.sdk.model.core.MonetaryAccountReference;
|
| 9 | +import com.bunq.sdk.model.generated.object.DraftPaymentAnchorObject; |
9 | 10 | import com.bunq.sdk.model.generated.object.DraftPaymentEntry;
|
10 | 11 | import com.bunq.sdk.model.generated.object.DraftPaymentResponse;
|
11 | 12 | import com.bunq.sdk.model.generated.object.LabelUser;
|
@@ -46,7 +47,7 @@ public class DraftPayment extends BunqModel {
|
46 | 47 | private static final String OBJECT_TYPE = "DraftPayment";
|
47 | 48 |
|
48 | 49 | /**
|
49 |
| - * The id of the DraftPayment. |
| 50 | + * The id of the created DrafPayment. |
50 | 51 | */
|
51 | 52 | @Expose
|
52 | 53 | @SerializedName("id")
|
@@ -100,7 +101,7 @@ public class DraftPayment extends BunqModel {
|
100 | 101 | */
|
101 | 102 | @Expose
|
102 | 103 | @SerializedName("object")
|
103 |
| - private BunqModel object; |
| 104 | + private DraftPaymentAnchorObject object; |
104 | 105 |
|
105 | 106 | public static BunqResponse<Integer> create(ApiContext apiContext, Map<String, Object> requestMap, Integer userId, Integer monetaryAccountId) {
|
106 | 107 | return create(apiContext, requestMap, userId, monetaryAccountId, new HashMap<>());
|
@@ -165,7 +166,7 @@ public static BunqResponse<DraftPayment> get(ApiContext apiContext, Integer user
|
165 | 166 | }
|
166 | 167 |
|
167 | 168 | /**
|
168 |
| - * The id of the DraftPayment. |
| 169 | + * The id of the created DrafPayment. |
169 | 170 | */
|
170 | 171 | public Integer getId() {
|
171 | 172 | return this.id;
|
@@ -245,11 +246,11 @@ public void setEntries(List<DraftPaymentEntry> entries) {
|
245 | 246 | * The Payment or PaymentBatch. This will only be present after the DraftPayment has been
|
246 | 247 | * accepted.
|
247 | 248 | */
|
248 |
| - public BunqModel getObject() { |
| 249 | + public DraftPaymentAnchorObject getObject() { |
249 | 250 | return this.object;
|
250 | 251 | }
|
251 | 252 |
|
252 |
| - public void setObject(BunqModel object) { |
| 253 | + public void setObject(DraftPaymentAnchorObject object) { |
253 | 254 | this.object = object;
|
254 | 255 | }
|
255 | 256 |
|
|
0 commit comments