Skip to content

Commit

Permalink
Switched to List<String>
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasNaouchi committed Oct 11, 2023
1 parent b062a5c commit 404baa1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/co/omise/models/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class Charge extends Model {
@JsonProperty("captured_amount")
private long capturedAmount;
@JsonProperty("webhook_endpoints")
private String[] webhookEndpoints;
private List<String> webhookEndpoints;

public long getAmount() {
return this.amount;
Expand Down Expand Up @@ -493,11 +493,11 @@ public void setCapturedAmount(long capturedAmount) {
this.capturedAmount = capturedAmount;
}

public String[] getWebhookEndpoints() {
public List<String> getWebhookEndpoints() {
return webhookEndpoints;
}

public void setWebhookEndpoints(String[] webhookEndpoints) {
public void setWebhookEndpoints(List<String> webhookEndpoints) {
this.webhookEndpoints = webhookEndpoints;
}

Expand Down Expand Up @@ -564,7 +564,7 @@ public static class CreateRequestBuilder extends RequestBuilder<Charge> {
@JsonProperty("authorization_type")
private AuthorizationType authorizationType;
@JsonProperty("webhook_endpoints")
private String[] webhookEndpoints;
private List<String> webhookEndpoints;

@Override
protected String method() {
Expand Down Expand Up @@ -657,7 +657,7 @@ public CreateRequestBuilder authorizationType(AuthorizationType authorizationTyp
}

public CreateRequestBuilder webhookEndpoints(List<String> webhookEndpoints) {
this.webhookEndpoints = webhookEndpoints.toArray(new String[0]);
this.webhookEndpoints = webhookEndpoints;
return this;
}

Expand Down

0 comments on commit 404baa1

Please sign in to comment.