
com.banxa.model.request.CreateNftOrderRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
The Java SDK for integration with Banxa's API
package com.banxa.model.request;
import com.fasterxml.jackson.core.JsonProcessingException;
public class CreateNftOrderRequest extends CreateOrderRequest {
private final String walletAddress;
protected CreateNftOrderRequest(Builder builder) {
super(builder);
this.walletAddress = builder.walletAddress;
}
public String getWalletAddress() {
return walletAddress;
}
@Override
public String getUri() {
return "/api/orders/nft/buy";
}
public static class Builder extends CreateOrderRequest.Builder {
private final String walletAddress;
public Builder(String accountReference, String source, String sourceAmount, String target, String walletAddress, String returnUrlOnSuccess, NftMetaData metaData) throws JsonProcessingException {
super(accountReference, source, target, returnUrlOnSuccess);
this.walletAddress = walletAddress;
this.withSourceAmount(sourceAmount);
this.withMetaData(metaData);
}
public CreateNftOrderRequest build() {
return new CreateNftOrderRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy