Skip to content

Commit

Permalink
Merge pull request #162 from square/mikek/patch-release
Browse files Browse the repository at this point in the history
make tender_id nullable
  • Loading branch information
mikekono authored Dec 20, 2024
2 parents 4af0226 + 3696d97 commit 3f7d17a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 3f7d17a

Please sign in to comment.