Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "39.1.0",
"version": "39.1.1",
"license": "MIT",
"sideEffects": false,
"main": "dist/cjs/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import {
import { HttpClient } from './clientAdapter';

/** Current SDK version */
export const SDK_VERSION = '39.1.0';
export const SDK_VERSION = '39.1.1';
export class Client implements ClientInterface {
private _config: Readonly<Configuration>;
private _timeout: number;
Expand Down Expand Up @@ -140,7 +140,7 @@ export class Client implements ClientInterface {
};

this._userAgent = updateUserAgent(
'Square-TypeScript-SDK/39.1.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}',
'Square-TypeScript-SDK/39.1.1 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}',
this._config.squareVersion,
this._config.userAgentDetail
);
Expand Down
4 changes: 2 additions & 2 deletions src/models/refund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface Refund {
/** The ID of the transaction that the refunded tender is part of. */
transactionId?: string | null;
/** The ID of the refunded tender. */
tenderId: string;
tenderId?: string;
/** The timestamp for when the refund was created, in RFC 3339 format. */
createdAt?: string;
/** The reason for the refund being issued. */
Expand Down Expand Up @@ -58,7 +58,7 @@ export const refundSchema: Schema<Refund> = object({
id: ['id', string()],
locationId: ['location_id', string()],
transactionId: ['transaction_id', optional(nullable(string()))],
tenderId: ['tender_id', string()],
tenderId: ['tender_id', optional(string())],
createdAt: ['created_at', optional(string())],
reason: ['reason', string()],
amountMoney: ['amount_money', lazy(() => moneySchema)],
Expand Down
Loading