From 404baa14c0400b13d484a586c8f8ae42618b1d8b Mon Sep 17 00:00:00 2001 From: AnasNaouchi Date: Wed, 11 Oct 2023 14:25:36 +0700 Subject: [PATCH] Switched to List --- src/main/java/co/omise/models/Charge.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/co/omise/models/Charge.java b/src/main/java/co/omise/models/Charge.java index 819387f5..ad82c9ec 100644 --- a/src/main/java/co/omise/models/Charge.java +++ b/src/main/java/co/omise/models/Charge.java @@ -91,7 +91,7 @@ public class Charge extends Model { @JsonProperty("captured_amount") private long capturedAmount; @JsonProperty("webhook_endpoints") - private String[] webhookEndpoints; + private List webhookEndpoints; public long getAmount() { return this.amount; @@ -493,11 +493,11 @@ public void setCapturedAmount(long capturedAmount) { this.capturedAmount = capturedAmount; } - public String[] getWebhookEndpoints() { + public List getWebhookEndpoints() { return webhookEndpoints; } - public void setWebhookEndpoints(String[] webhookEndpoints) { + public void setWebhookEndpoints(List webhookEndpoints) { this.webhookEndpoints = webhookEndpoints; } @@ -564,7 +564,7 @@ public static class CreateRequestBuilder extends RequestBuilder { @JsonProperty("authorization_type") private AuthorizationType authorizationType; @JsonProperty("webhook_endpoints") - private String[] webhookEndpoints; + private List webhookEndpoints; @Override protected String method() { @@ -657,7 +657,7 @@ public CreateRequestBuilder authorizationType(AuthorizationType authorizationTyp } public CreateRequestBuilder webhookEndpoints(List webhookEndpoints) { - this.webhookEndpoints = webhookEndpoints.toArray(new String[0]); + this.webhookEndpoints = webhookEndpoints; return this; }