Skip to content

Commit

Permalink
Generated PR for Release: 34.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
autobot committed Jan 17, 2024
1 parent bfe2275 commit cb3e5ea
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 75 deletions.
1 change: 0 additions & 1 deletion doc/models/fulfillment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>fulfillment-related update. The fulfillment version is an internal field only for use<br>between Orders and the Fulfillment service. |

## Example (as JSON)

Expand Down
2 changes: 0 additions & 2 deletions doc/models/order-return-service-charge.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>`OrderReturnServiceCharge`. Each `OrderLineItemAppliedTax` has a `tax_uid`<br>that references the `uid` of a top-level `OrderReturnTax` that is being<br>applied to the `OrderReturnServiceCharge`. On reads, the applied amount is<br>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<br>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<br>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<br>`OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a<br>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.<br>Fields that do not explicitly define whether they are signed or unsigned are<br>considered unsigned and can only hold positive amounts. For signed fields, the<br>sign of the value indicates the purpose of the money transfer. See<br>[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)<br>for more information. |

## Example (as JSON)

Expand Down
2 changes: 0 additions & 2 deletions doc/models/order-service-charge.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>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<br>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<br>`OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a<br>top-level `OrderServiceCharge`. On reads, the amount applied is populated.<br><br>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.<br>Fields that do not explicitly define whether they are signed or unsigned are<br>considered unsigned and can only hold positive amounts. For signed fields, the<br>sign of the value indicates the purpose of the money transfer. See<br>[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)<br>for more information. |

## Example (as JSON)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "34.0.0",
"version": "34.0.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 @@ -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<Configuration>;
private _timeout: number;
Expand Down Expand Up @@ -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
);
Expand Down
8 changes: 0 additions & 8 deletions src/models/fulfillment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
dict,
lazy,
nullable,
number,
object,
optional,
Schema,
Expand Down Expand Up @@ -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<Fulfillment> = object({
Expand All @@ -107,5 +100,4 @@ export const fulfillmentSchema: Schema<Fulfillment> = object({
'delivery_details',
optional(lazy(() => fulfillmentDeliveryDetailsSchema)),
],
version: ['version', optional(number())],
});
29 changes: 0 additions & 29 deletions src/models/orderReturnServiceCharge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import {
string,
} from '../schema';
import { Money, moneySchema } from './money';
import {
OrderLineItemAppliedServiceCharge,
orderLineItemAppliedServiceChargeSchema,
} from './orderLineItemAppliedServiceCharge';
import {
OrderLineItemAppliedTax,
orderLineItemAppliedTaxSchema,
Expand Down Expand Up @@ -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<OrderReturnServiceCharge> = object(
Expand All @@ -147,15 +128,5 @@ export const orderReturnServiceChargeSchema: Schema<OrderReturnServiceCharge> =
],
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)),
],
}
);
30 changes: 0 additions & 30 deletions src/models/orderServiceCharge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import {
string,
} from '../schema';
import { Money, moneySchema } from './money';
import {
OrderLineItemAppliedServiceCharge,
orderLineItemAppliedServiceChargeSchema,
} from './orderLineItemAppliedServiceCharge';
import {
OrderLineItemAppliedTax,
orderLineItemAppliedTaxSchema,
Expand Down Expand Up @@ -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<OrderServiceCharge> = object({
Expand All @@ -162,14 +142,4 @@ export const orderServiceChargeSchema: Schema<OrderServiceCharge> = 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)),
],
});

0 comments on commit cb3e5ea

Please sign in to comment.