@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
52 lines (49 loc) • 1.81 kB
JavaScript
import { Base } from '../../base.mjs';
import { ApiVersion } from '../../../lib/types.mjs';
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
***********************************************************************************************************************/
class Dispute extends Base {
static apiVersion = ApiVersion.April25;
static hasOne = {};
static hasMany = {};
static paths = [
{ "http_method": "get", "operation": "get", "ids": [], "path": "shopify_payments/disputes.json" },
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "shopify_payments/disputes/<id>.json" }
];
static resourceNames = [
{
"singular": "dispute",
"plural": "disputes"
}
];
static async find({ session, id }) {
const result = await this.baseFind({
session: session,
urlIds: { "id": id },
params: {},
});
return result.data ? result.data[0] : null;
}
static async all({ session, since_id = null, last_id = null, status = null, initiated_at = null, ...otherArgs }) {
const response = await this.baseFind({
session: session,
urlIds: {},
params: { "since_id": since_id, "last_id": last_id, "status": status, "initiated_at": initiated_at, ...otherArgs },
});
return response;
}
amount;
currency;
evidence_due_by;
evidence_sent_on;
finalized_on;
id;
network_reason_code;
order_id;
reason;
status;
type;
}
export { Dispute };
//# sourceMappingURL=dispute.mjs.map