inventora-shopify-admin-api
Version:
Shopify Admin API is a NodeJS library built to help developers easily authenticate and make calls against the Shopify API. It was inspired by and borrows heavily from ShopifySharp.
20 lines (16 loc) • 748 B
text/typescript
import * as Options from '../options';
import { BaseService } from '../infrastructure';
import { PaymentTransaction } from '../interfaces';
export class PaymentTransactions extends BaseService {
constructor(shopDomain: string, accessToken: string) {
super(shopDomain, accessToken, "shopify_payments/balance");
}
/**
* Retrieves a list of all balance transactions ordered by processing time, with the most recent being first.
* @param options Options for filtering the results.
*/
public list(options?: Options.PaymentTransactionListOptions) {
return this.createRequest<Partial<PaymentTransaction[]>>("GET", "transactions.json", "transactions", options);
}
}
export default PaymentTransactions;