Skip to content

Commit 3f7d17a

Browse files
authored
Merge pull request #162 from square/mikek/patch-release
make tender_id nullable
2 parents 4af0226 + 3696d97 commit 3f7d17a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "39.1.0",
2+
"version": "39.1.1",
33
"license": "MIT",
44
"sideEffects": false,
55
"main": "dist/cjs/index.js",

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import {
6868
import { HttpClient } from './clientAdapter';
6969

7070
/** Current SDK version */
71-
export const SDK_VERSION = '39.1.0';
71+
export const SDK_VERSION = '39.1.1';
7272
export class Client implements ClientInterface {
7373
private _config: Readonly<Configuration>;
7474
private _timeout: number;
@@ -140,7 +140,7 @@ export class Client implements ClientInterface {
140140
};
141141

142142
this._userAgent = updateUserAgent(
143-
'Square-TypeScript-SDK/39.1.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}',
143+
'Square-TypeScript-SDK/39.1.1 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}',
144144
this._config.squareVersion,
145145
this._config.userAgentDetail
146146
);

src/models/refund.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface Refund {
2222
/** The ID of the transaction that the refunded tender is part of. */
2323
transactionId?: string | null;
2424
/** The ID of the refunded tender. */
25-
tenderId: string;
25+
tenderId?: string;
2626
/** The timestamp for when the refund was created, in RFC 3339 format. */
2727
createdAt?: string;
2828
/** The reason for the refund being issued. */
@@ -58,7 +58,7 @@ export const refundSchema: Schema<Refund> = object({
5858
id: ['id', string()],
5959
locationId: ['location_id', string()],
6060
transactionId: ['transaction_id', optional(nullable(string()))],
61-
tenderId: ['tender_id', string()],
61+
tenderId: ['tender_id', optional(string())],
6262
createdAt: ['created_at', optional(string())],
6363
reason: ['reason', string()],
6464
amountMoney: ['amount_money', lazy(() => moneySchema)],

0 commit comments

Comments
 (0)