ebay-api
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -49,7 +49,9 @@ import Restful from '../../'; | ||
* paginated response. | ||
* @param sort Allows sorting by transaction date in descending order with '-transactionDate' (default) and ascending with 'transactionDate' | ||
*/ | ||
getTransactions({ filter, limit, offset, }?: { | ||
getTransactions({ filter, limit, offset, sort }?: { | ||
filter?: string; | ||
limit?: number; | ||
offset?: number; | ||
sort?: 'transactionDate' | '-transactionDate'; | ||
}): Promise<any>; | ||
@@ -56,0 +58,0 @@ /** |
@@ -64,4 +64,5 @@ "use strict"; | ||
* paginated response. | ||
* @param sort Allows sorting by transaction date in descending order with '-transactionDate' (default) and ascending with 'transactionDate' | ||
*/ | ||
getTransactions({ filter, limit, offset, } = {}) { | ||
getTransactions({ filter, limit, offset, sort } = {}) { | ||
return this.get(`/transaction`, { | ||
@@ -72,2 +73,3 @@ params: { | ||
offset, | ||
sort, | ||
}, | ||
@@ -74,0 +76,0 @@ }); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -884,2 +884,6 @@ export declare enum UserRoleFilter { | ||
} | ||
export declare enum RefundMethod { | ||
MERCHANDISE_CREDIT = "MERCHANDISE_CREDIT", | ||
MONEY_BACK = "MONEY_BACK" | ||
} | ||
export declare enum ReturnMethod { | ||
@@ -886,0 +890,0 @@ EXCHANGE = "EXCHANGE", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PackageType = exports.WeightUnitOfMeasure = exports.LengthUnitOfMeasure = exports.CancelReason = exports.ReasonForRefund = exports.RegionType = exports.ReturnShippingCostPayer = exports.ReturnMethod = exports.Metric = exports.FormatType = exports.Marketplace = exports.ContentLanguage = exports.Locale = exports.Condition = exports.CurrencyCode = exports.CountryCode = exports.RecipientAccountReferenceType = exports.PaymentMethodType = exports.PaymentsProgramStatus = exports.PaymentsProgramType = exports.ShippingCostType = exports.ShippingOptionType = exports.TimeDurationUnit = exports.StoreType = exports.ActivityOption = exports.RefundFeeType = exports.FilePurpose = exports.ReturnState = exports.ReturnCountFilter = exports.CategoryType = exports.Decision = exports.EscalateReason = exports.GetReturnFieldGroupEnum = exports.ReturnType = exports.RequestType = exports.ReturnReason = exports.ShippingCarrier = exports.InquiryStatusFilter = exports.CaseSearchFieldGroup = exports.CaseStatusFilter = exports.InquirySearchFieldGroup = exports.UserRoleFilter = void 0; | ||
exports.PackageType = exports.WeightUnitOfMeasure = exports.LengthUnitOfMeasure = exports.CancelReason = exports.ReasonForRefund = exports.RegionType = exports.ReturnShippingCostPayer = exports.ReturnMethod = exports.RefundMethod = exports.Metric = exports.FormatType = exports.Marketplace = exports.ContentLanguage = exports.Locale = exports.Condition = exports.CurrencyCode = exports.CountryCode = exports.RecipientAccountReferenceType = exports.PaymentMethodType = exports.PaymentsProgramStatus = exports.PaymentsProgramType = exports.ShippingCostType = exports.ShippingOptionType = exports.TimeDurationUnit = exports.StoreType = exports.ActivityOption = exports.RefundFeeType = exports.FilePurpose = exports.ReturnState = exports.ReturnCountFilter = exports.CategoryType = exports.Decision = exports.EscalateReason = exports.GetReturnFieldGroupEnum = exports.ReturnType = exports.RequestType = exports.ReturnReason = exports.ShippingCarrier = exports.InquiryStatusFilter = exports.CaseSearchFieldGroup = exports.CaseStatusFilter = exports.InquirySearchFieldGroup = exports.UserRoleFilter = void 0; | ||
var UserRoleFilter; | ||
@@ -921,2 +921,7 @@ (function (UserRoleFilter) { | ||
})(Metric = exports.Metric || (exports.Metric = {})); | ||
var RefundMethod; | ||
(function (RefundMethod) { | ||
RefundMethod["MERCHANDISE_CREDIT"] = "MERCHANDISE_CREDIT"; | ||
RefundMethod["MONEY_BACK"] = "MONEY_BACK"; | ||
})(RefundMethod = exports.RefundMethod || (exports.RefundMethod = {})); | ||
var ReturnMethod; | ||
@@ -923,0 +928,0 @@ (function (ReturnMethod) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -1,2 +0,2 @@ | ||
import { CancelReason, CaseSearchFieldGroup, CaseStatusFilter, CategoryType as CategoryTypeEnum, Condition, CountryCode, CurrencyCode, Decision, EscalateReason, FilePurpose, FormatType, InquirySearchFieldGroup, InquiryStatusFilter, LengthUnitOfMeasure, Locale, Marketplace, MarketplaceId, PackageType, PaymentMethodType, ReasonForRefund, RecipientAccountReferenceType, RefundFeeType, RegionType, RequestType, ReturnCountFilter, ReturnMethod, ReturnReason, ReturnShippingCostPayer, ReturnState, ReturnType, ShippingCarrier, ShippingCostType, ShippingOptionType, StoreType, TimeDurationUnit, UserRoleFilter, WeightUnitOfMeasure } from '../enums'; | ||
import { CancelReason, CaseSearchFieldGroup, CaseStatusFilter, CategoryType as CategoryTypeEnum, Condition, CountryCode, CurrencyCode, Decision, EscalateReason, FilePurpose, FormatType, InquirySearchFieldGroup, InquiryStatusFilter, LengthUnitOfMeasure, Locale, Marketplace, MarketplaceId, PackageType, PaymentMethodType, ReasonForRefund, RecipientAccountReferenceType, RefundFeeType, RefundMethod, RegionType, RequestType, ReturnCountFilter, ReturnMethod, ReturnReason, ReturnShippingCostPayer, ReturnState, ReturnType, ShippingCarrier, ShippingCostType, ShippingOptionType, StoreType, TimeDurationUnit, UserRoleFilter, WeightUnitOfMeasure } from '../enums'; | ||
export declare type AttributeNameValue = { | ||
@@ -926,3 +926,3 @@ name: string; | ||
name: string; | ||
refundMethod?: ReturnMethod; | ||
refundMethod?: RefundMethod; | ||
restockingFeePercentage?: string; | ||
@@ -929,0 +929,0 @@ returnInstructions?: string; |
{ | ||
"name": "ebay-api", | ||
"author": "Daniil Tomilow", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "eBay TypeScript/JavaScript API for Node and Browser", | ||
@@ -6,0 +6,0 @@ "browser": "./lib/ebay-api.min.js", |
@@ -5,2 +5,8 @@ # eBay Node API in TypeScript with Browser support | ||
[![GitHub](https://img.shields.io/npm/l/ebay-api?style=flat-square)](https://github.com/hendt/ebay-api/blob/master/LICENSE) | ||
[![GitHub release](https://img.shields.io/github/release/hendt/ebay-api.svg?style=flat-square)](https://github.com/hendt/ebay-api/releases) | ||
[![npm version](https://img.shields.io/npm/v/ebay-api.svg?style=flat-square)](https://www.npmjs.com/package/ebay-api) | ||
[![](https://data.jsdelivr.com/v1/package/npm/ebay-api/badge)](https://www.jsdelivr.com/package/npm/ebay-api) | ||
[![npm](https://img.shields.io/npm/dt/ebay-api.svg?style=flat-square)](https://www.npmjs.com/package/ebay-api) | ||
This eBay API implements both Traditional \(xml\) and the RESTful eBay API. | ||
@@ -18,3 +24,3 @@ It supports `client credentials grant` and `authorization code grant` \(Auth'N'Auth, OAuth2 and IAF\). | ||
* `v7.0.0` is the latest release. | ||
* `v7.0.1` is the latest release. | ||
* See [here](https://github.com/hendt/ebay-api/blob/master/CHANGELOG.md) for the full changelog. | ||
@@ -21,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1816686
17712
557