From cb3e5eaee2f691c5169b77fae2a9dfe5d1dec9ef Mon Sep 17 00:00:00 2001 From: autobot Date: Wed, 17 Jan 2024 20:00:58 +0000 Subject: [PATCH] Generated PR for Release: 34.0.1 --- doc/models/fulfillment.md | 1 - doc/models/order-return-service-charge.md | 2 -- doc/models/order-service-charge.md | 2 -- package.json | 2 +- src/client.ts | 4 +-- src/models/fulfillment.ts | 8 ------ src/models/orderReturnServiceCharge.ts | 29 ---------------------- src/models/orderServiceCharge.ts | 30 ----------------------- 8 files changed, 3 insertions(+), 75 deletions(-) diff --git a/doc/models/fulfillment.md b/doc/models/fulfillment.md index 6fbdf83f..71e649cd 100644 --- a/doc/models/fulfillment.md +++ b/doc/models/fulfillment.md @@ -22,7 +22,6 @@ However, orders returned by the Orders API might contain multiple fulfillments b | `pickupDetails` | [`FulfillmentPickupDetails \| undefined`](../../doc/models/fulfillment-pickup-details.md) | Optional | Contains details necessary to fulfill a pickup order. | | `shipmentDetails` | [`FulfillmentShipmentDetails \| undefined`](../../doc/models/fulfillment-shipment-details.md) | Optional | Contains the details necessary to fulfill a shipment order. | | `deliveryDetails` | [`FulfillmentDeliveryDetails \| undefined`](../../doc/models/fulfillment-delivery-details.md) | Optional | Describes delivery details of an order fulfillment. | -| `version` | `number \| undefined` | Optional | The version number attributed to the fulfillment and incremented every time there is a
fulfillment-related update. The fulfillment version is an internal field only for use
between Orders and the Fulfillment service. | ## Example (as JSON) diff --git a/doc/models/order-return-service-charge.md b/doc/models/order-return-service-charge.md index b93f31af..6b48a206 100644 --- a/doc/models/order-return-service-charge.md +++ b/doc/models/order-return-service-charge.md @@ -26,8 +26,6 @@ Represents the service charge applied to the original order. | `appliedTaxes` | [`OrderLineItemAppliedTax[] \| null \| undefined`](../../doc/models/order-line-item-applied-tax.md) | Optional | The list of references to `OrderReturnTax` entities applied to the
`OrderReturnServiceCharge`. Each `OrderLineItemAppliedTax` has a `tax_uid`
that references the `uid` of a top-level `OrderReturnTax` that is being
applied to the `OrderReturnServiceCharge`. On reads, the applied amount is
populated. | | `treatmentType` | [`string \| undefined`](../../doc/models/order-service-charge-treatment-type.md) | Optional | Indicates whether the service charge will be treated as a value-holding line item or
apportioned toward a line item. | | `scope` | [`string \| undefined`](../../doc/models/order-service-charge-scope.md) | Optional | Indicates whether this is a line-item or order-level apportioned
service charge. | -| `appliedServiceCharges` | [`OrderLineItemAppliedServiceCharge[] \| null \| undefined`](../../doc/models/order-line-item-applied-service-charge.md) | Optional | The list of references to service charges applied to the`OrderReturnServiceCharge`. Each
`OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a
top-level `OrderReturnServiceCharge`. On reads, the amount applied is populated. | -| `totalServiceChargeMoney` | [`Money \| undefined`](../../doc/models/money.md) | Optional | Represents an amount of money. `Money` fields can be signed or unsigned.
Fields that do not explicitly define whether they are signed or unsigned are
considered unsigned and can only hold positive amounts. For signed fields, the
sign of the value indicates the purpose of the money transfer. See
[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)
for more information. | ## Example (as JSON) diff --git a/doc/models/order-service-charge.md b/doc/models/order-service-charge.md index 7e4a9512..ff791ce4 100644 --- a/doc/models/order-service-charge.md +++ b/doc/models/order-service-charge.md @@ -27,8 +27,6 @@ Represents a service charge applied to an order. | `type` | [`string \| undefined`](../../doc/models/order-service-charge-type.md) | Optional | - | | `treatmentType` | [`string \| undefined`](../../doc/models/order-service-charge-treatment-type.md) | Optional | Indicates whether the service charge will be treated as a value-holding line item or
apportioned toward a line item. | | `scope` | [`string \| undefined`](../../doc/models/order-service-charge-scope.md) | Optional | Indicates whether this is a line-item or order-level apportioned
service charge. | -| `appliedServiceCharges` | [`OrderLineItemAppliedServiceCharge[] \| null \| undefined`](../../doc/models/order-line-item-applied-service-charge.md) | Optional | The list of references to service charges applied to this service charge. Each
`OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a
top-level `OrderServiceCharge`. On reads, the amount applied is populated.

To change the amount of a service charge, modify the referenced top-level service charge. | -| `totalServiceChargeMoney` | [`Money \| undefined`](../../doc/models/money.md) | Optional | Represents an amount of money. `Money` fields can be signed or unsigned.
Fields that do not explicitly define whether they are signed or unsigned are
considered unsigned and can only hold positive amounts. For signed fields, the
sign of the value indicates the purpose of the money transfer. See
[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)
for more information. | ## Example (as JSON) diff --git a/package.json b/package.json index 2de98455..4afbb22e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "34.0.0", + "version": "34.0.1", "license": "MIT", "sideEffects": false, "main": "dist/cjs/index.js", diff --git a/src/client.ts b/src/client.ts index 73b2b084..3ae3ca8d 100644 --- a/src/client.ts +++ b/src/client.ts @@ -67,7 +67,7 @@ import { import { HttpClient } from './clientAdapter'; /** Current SDK version */ -export const SDK_VERSION = '34.0.0'; +export const SDK_VERSION = '34.0.1'; export class Client implements ClientInterface { private _config: Readonly; private _timeout: number; @@ -131,7 +131,7 @@ export class Client implements ClientInterface { ? this._config.httpClientOptions.timeout : this._config.timeout; this._userAgent = updateUserAgent( - 'Square-TypeScript-SDK/34.0.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}', + 'Square-TypeScript-SDK/34.0.1 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}', this._config.squareVersion, this._config.userAgentDetail ); diff --git a/src/models/fulfillment.ts b/src/models/fulfillment.ts index 84893575..ad9d4a5b 100644 --- a/src/models/fulfillment.ts +++ b/src/models/fulfillment.ts @@ -3,7 +3,6 @@ import { dict, lazy, nullable, - number, object, optional, Schema, @@ -77,12 +76,6 @@ export interface Fulfillment { shipmentDetails?: FulfillmentShipmentDetails; /** Describes delivery details of an order fulfillment. */ deliveryDetails?: FulfillmentDeliveryDetails; - /** - * The version number attributed to the fulfillment and incremented every time there is a - * fulfillment-related update. The fulfillment version is an internal field only for use - * between Orders and the Fulfillment service. - */ - version?: number; } export const fulfillmentSchema: Schema = object({ @@ -107,5 +100,4 @@ export const fulfillmentSchema: Schema = object({ 'delivery_details', optional(lazy(() => fulfillmentDeliveryDetailsSchema)), ], - version: ['version', optional(number())], }); diff --git a/src/models/orderReturnServiceCharge.ts b/src/models/orderReturnServiceCharge.ts index 654e3421..b49bcdec 100644 --- a/src/models/orderReturnServiceCharge.ts +++ b/src/models/orderReturnServiceCharge.ts @@ -10,10 +10,6 @@ import { string, } from '../schema'; import { Money, moneySchema } from './money'; -import { - OrderLineItemAppliedServiceCharge, - orderLineItemAppliedServiceChargeSchema, -} from './orderLineItemAppliedServiceCharge'; import { OrderLineItemAppliedTax, orderLineItemAppliedTaxSchema, @@ -107,21 +103,6 @@ export interface OrderReturnServiceCharge { * service charge. */ scope?: string; - /** - * The list of references to service charges applied to the`OrderReturnServiceCharge`. Each - * `OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a - * top-level `OrderReturnServiceCharge`. On reads, the amount applied is populated. - */ - appliedServiceCharges?: OrderLineItemAppliedServiceCharge[] | null; - /** - * Represents an amount of money. `Money` fields can be signed or unsigned. - * Fields that do not explicitly define whether they are signed or unsigned are - * considered unsigned and can only hold positive amounts. For signed fields, the - * sign of the value indicates the purpose of the money transfer. See - * [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) - * for more information. - */ - totalServiceChargeMoney?: Money; } export const orderReturnServiceChargeSchema: Schema = object( @@ -147,15 +128,5 @@ export const orderReturnServiceChargeSchema: Schema = ], treatmentType: ['treatment_type', optional(string())], scope: ['scope', optional(string())], - appliedServiceCharges: [ - 'applied_service_charges', - optional( - nullable(array(lazy(() => orderLineItemAppliedServiceChargeSchema))) - ), - ], - totalServiceChargeMoney: [ - 'total_service_charge_money', - optional(lazy(() => moneySchema)), - ], } ); diff --git a/src/models/orderServiceCharge.ts b/src/models/orderServiceCharge.ts index 8c8ecb2a..895831c1 100644 --- a/src/models/orderServiceCharge.ts +++ b/src/models/orderServiceCharge.ts @@ -11,10 +11,6 @@ import { string, } from '../schema'; import { Money, moneySchema } from './money'; -import { - OrderLineItemAppliedServiceCharge, - orderLineItemAppliedServiceChargeSchema, -} from './orderLineItemAppliedServiceCharge'; import { OrderLineItemAppliedTax, orderLineItemAppliedTaxSchema, @@ -124,22 +120,6 @@ export interface OrderServiceCharge { * service charge. */ scope?: string; - /** - * The list of references to service charges applied to this service charge. Each - * `OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a - * top-level `OrderServiceCharge`. On reads, the amount applied is populated. - * To change the amount of a service charge, modify the referenced top-level service charge. - */ - appliedServiceCharges?: OrderLineItemAppliedServiceCharge[] | null; - /** - * Represents an amount of money. `Money` fields can be signed or unsigned. - * Fields that do not explicitly define whether they are signed or unsigned are - * considered unsigned and can only hold positive amounts. For signed fields, the - * sign of the value indicates the purpose of the money transfer. See - * [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) - * for more information. - */ - totalServiceChargeMoney?: Money; } export const orderServiceChargeSchema: Schema = object({ @@ -162,14 +142,4 @@ export const orderServiceChargeSchema: Schema = object({ type: ['type', optional(string())], treatmentType: ['treatment_type', optional(string())], scope: ['scope', optional(string())], - appliedServiceCharges: [ - 'applied_service_charges', - optional( - nullable(array(lazy(() => orderLineItemAppliedServiceChargeSchema))) - ), - ], - totalServiceChargeMoney: [ - 'total_service_charge_money', - optional(lazy(() => moneySchema)), - ], });