We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@JsonCreator public SourceCreateRequest( @JsonProperty("configuration") SourceConfiguration configuration, @JsonProperty("definitionId") Optional<? extends String> definitionId, @JsonProperty("name") String name, @JsonProperty("secretId") Optional<? extends String> secretId, @JsonProperty("workspaceId") String workspaceId) { Utils.checkNotNull(configuration, "configuration"); Utils.checkNotNull(definitionId, "definitionId"); // here sourceDefinationId is expected, Utils.checkNotNull(name, "name"); Utils.checkNotNull(secretId, "secretId"); Utils.checkNotNull(workspaceId, "workspaceId"); this.configuration = configuration; this.definitionId = definitionId; // here sourceDefinationId is expected,
This was request payload created by java sdk - 500 Error {
"configuration": { "bulk_window_in_days": 30, "credentials": { "access_token": "", "client_id": "", "client_secret": "******", "auth_method": "oauth2.0" }, "fetch_transactions_user_id": false, "job_termination_threshold": 3600, "shop": "*", "start_date": "2020-01-01", "sourceType": "shopify" }, "definitionId": "9da77001-af33-4bcd-be46-", "name": "Shopify 3", "workspaceId": "2249fe66-575d-48fc-be69-" }
API request from postman that worked
{ "name": "Shopify2", "sourceDefinitionId": "9da77001-af33-4bcd-be46-", "workspaceId": "2249fe66-575d-48fc-be69-", "connectionConfiguration": { "credentials": { "auth_method": "oauth2.0", "client_id": "", "client_secret": "", "access_token": "" }, "shop": "" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@JsonCreator
public SourceCreateRequest(
@JsonProperty("configuration") SourceConfiguration configuration,
@JsonProperty("definitionId") Optional<? extends String> definitionId,
@JsonProperty("name") String name,
@JsonProperty("secretId") Optional<? extends String> secretId,
@JsonProperty("workspaceId") String workspaceId) {
Utils.checkNotNull(configuration, "configuration");
Utils.checkNotNull(definitionId, "definitionId"); // here sourceDefinationId is expected,
Utils.checkNotNull(name, "name");
Utils.checkNotNull(secretId, "secretId");
Utils.checkNotNull(workspaceId, "workspaceId");
this.configuration = configuration;
this.definitionId = definitionId; // here sourceDefinationId is expected,
"configuration": {
"bulk_window_in_days": 30,
"credentials": {
"access_token": "",
"client_id": "",
"client_secret": "******",
"auth_method": "oauth2.0"
},
"fetch_transactions_user_id": false,
"job_termination_threshold": 3600,
"shop": "*",
"start_date": "2020-01-01",
"sourceType": "shopify"
},
"definitionId": "9da77001-af33-4bcd-be46-",
"name": "Shopify 3",
"workspaceId": "2249fe66-575d-48fc-be69-"
}
API request from postman that worked
{
"name": "Shopify2",
"sourceDefinitionId": "9da77001-af33-4bcd-be46-",
"workspaceId": "2249fe66-575d-48fc-be69-",
"connectionConfiguration": {
"credentials": {
"auth_method": "oauth2.0",
"client_id": "",
"client_secret": "",
"access_token": ""
},
"shop": ""
}
}
The text was updated successfully, but these errors were encountered: