Skip to content

Commit 86c0e86

Browse files
author
autobot
committed
Generated PR for Release: 37.0.1.20240118
1 parent 46ca5ad commit 86c0e86

File tree

8 files changed

+25
-261
lines changed

8 files changed

+25
-261
lines changed

doc/models/fulfillment.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ However, orders returned by the Orders API might contain multiple fulfillments b
2222
| `PickupDetails` | [`FulfillmentPickupDetails`](../../doc/models/fulfillment-pickup-details.md) | Optional | Contains details necessary to fulfill a pickup order. | FulfillmentPickupDetails getPickupDetails() |
2323
| `ShipmentDetails` | [`FulfillmentShipmentDetails`](../../doc/models/fulfillment-shipment-details.md) | Optional | Contains the details necessary to fulfill a shipment order. | FulfillmentShipmentDetails getShipmentDetails() |
2424
| `DeliveryDetails` | [`FulfillmentDeliveryDetails`](../../doc/models/fulfillment-delivery-details.md) | Optional | Describes delivery details of an order fulfillment. | FulfillmentDeliveryDetails getDeliveryDetails() |
25-
| `Version` | `Integer` | 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. | Integer getVersion() |
2625

2726
## Example (as JSON)
2827

doc/models/order-return-service-charge.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ Represents the service charge applied to the original order.
2626
| `AppliedTaxes` | [`List<OrderLineItemAppliedTax>`](../../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. | List<OrderLineItemAppliedTax> getAppliedTaxes() |
2727
| `TreatmentType` | [`String`](../../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. | String getTreatmentType() |
2828
| `Scope` | [`String`](../../doc/models/order-service-charge-scope.md) | Optional | Indicates whether this is a line-item or order-level apportioned<br>service charge. | String getScope() |
29-
| `AppliedServiceCharges` | [`List<OrderLineItemAppliedServiceCharge>`](../../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. | List<OrderLineItemAppliedServiceCharge> getAppliedServiceCharges() |
30-
| `TotalServiceChargeMoney` | [`Money`](../../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. | Money getTotalServiceChargeMoney() |
3129

3230
## Example (as JSON)
3331

doc/models/order-service-charge.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ Represents a service charge applied to an order.
2727
| `Type` | [`String`](../../doc/models/order-service-charge-type.md) | Optional | - | String getType() |
2828
| `TreatmentType` | [`String`](../../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. | String getTreatmentType() |
2929
| `Scope` | [`String`](../../doc/models/order-service-charge-scope.md) | Optional | Indicates whether this is a line-item or order-level apportioned<br>service charge. | String getScope() |
30-
| `AppliedServiceCharges` | [`List<OrderLineItemAppliedServiceCharge>`](../../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. | List<OrderLineItemAppliedServiceCharge> getAppliedServiceCharges() |
31-
| `TotalServiceChargeMoney` | [`Money`](../../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. | Money getTotalServiceChargeMoney() |
3230

3331
## Example (as JSON)
3432

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.squareup</groupId>
55
<artifactId>square</artifactId>
6-
<version>37.0.0.20240118</version>
6+
<version>37.0.1.20240118</version>
77
<packaging>jar</packaging>
88
<name>Square</name>
99
<description>Java client library for the Square API</description>

src/main/java/com/squareup/square/SquareClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public final class SquareClient implements SquareClientInterface {
151151

152152
private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl();
153153

154-
private static String userAgent = "Square-Java-SDK/37.0.0.20240118 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}";
154+
private static String userAgent = "Square-Java-SDK/37.0.1.20240118 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}";
155155

156156
/**
157157
* Current API environment.
@@ -697,7 +697,7 @@ public String getAccessToken() {
697697
* @return sdkVersion
698698
*/
699699
public String getSdkVersion() {
700-
return "37.0.0.20240118";
700+
return "37.0.1.20240118";
701701
}
702702

703703
/**

src/main/java/com/squareup/square/models/Fulfillment.java

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public class Fulfillment {
2525
private final FulfillmentPickupDetails pickupDetails;
2626
private final FulfillmentShipmentDetails shipmentDetails;
2727
private final FulfillmentDeliveryDetails deliveryDetails;
28-
private final Integer version;
2928

3029
/**
3130
* Initialization constructor.
@@ -38,7 +37,6 @@ public class Fulfillment {
3837
* @param pickupDetails FulfillmentPickupDetails value for pickupDetails.
3938
* @param shipmentDetails FulfillmentShipmentDetails value for shipmentDetails.
4039
* @param deliveryDetails FulfillmentDeliveryDetails value for deliveryDetails.
41-
* @param version Integer value for version.
4240
*/
4341
@JsonCreator
4442
public Fulfillment(
@@ -50,8 +48,7 @@ public Fulfillment(
5048
@JsonProperty("metadata") Map<String, String> metadata,
5149
@JsonProperty("pickup_details") FulfillmentPickupDetails pickupDetails,
5250
@JsonProperty("shipment_details") FulfillmentShipmentDetails shipmentDetails,
53-
@JsonProperty("delivery_details") FulfillmentDeliveryDetails deliveryDetails,
54-
@JsonProperty("version") Integer version) {
51+
@JsonProperty("delivery_details") FulfillmentDeliveryDetails deliveryDetails) {
5552
this.uid = OptionalNullable.of(uid);
5653
this.type = type;
5754
this.state = state;
@@ -61,7 +58,6 @@ public Fulfillment(
6158
this.pickupDetails = pickupDetails;
6259
this.shipmentDetails = shipmentDetails;
6360
this.deliveryDetails = deliveryDetails;
64-
this.version = version;
6561
}
6662

6763
/**
@@ -75,14 +71,13 @@ public Fulfillment(
7571
* @param pickupDetails FulfillmentPickupDetails value for pickupDetails.
7672
* @param shipmentDetails FulfillmentShipmentDetails value for shipmentDetails.
7773
* @param deliveryDetails FulfillmentDeliveryDetails value for deliveryDetails.
78-
* @param version Integer value for version.
7974
*/
8075

8176
protected Fulfillment(OptionalNullable<String> uid, String type, String state,
8277
String lineItemApplication, List<FulfillmentFulfillmentEntry> entries,
8378
OptionalNullable<Map<String, String>> metadata, FulfillmentPickupDetails pickupDetails,
84-
FulfillmentShipmentDetails shipmentDetails, FulfillmentDeliveryDetails deliveryDetails,
85-
Integer version) {
79+
FulfillmentShipmentDetails shipmentDetails,
80+
FulfillmentDeliveryDetails deliveryDetails) {
8681
this.uid = uid;
8782
this.type = type;
8883
this.state = state;
@@ -92,7 +87,6 @@ protected Fulfillment(OptionalNullable<String> uid, String type, String state,
9287
this.pickupDetails = pickupDetails;
9388
this.shipmentDetails = shipmentDetails;
9489
this.deliveryDetails = deliveryDetails;
95-
this.version = version;
9690
}
9791

9892
/**
@@ -243,23 +237,10 @@ public FulfillmentDeliveryDetails getDeliveryDetails() {
243237
return deliveryDetails;
244238
}
245239

246-
/**
247-
* Getter for Version.
248-
* The version number attributed to the fulfillment and incremented every time there is a
249-
* fulfillment-related update. The fulfillment version is an internal field only for use between
250-
* Orders and the Fulfillment service.
251-
* @return Returns the Integer
252-
*/
253-
@JsonGetter("version")
254-
@JsonInclude(JsonInclude.Include.NON_NULL)
255-
public Integer getVersion() {
256-
return version;
257-
}
258-
259240
@Override
260241
public int hashCode() {
261242
return Objects.hash(uid, type, state, lineItemApplication, entries, metadata, pickupDetails,
262-
shipmentDetails, deliveryDetails, version);
243+
shipmentDetails, deliveryDetails);
263244
}
264245

265246
@Override
@@ -279,8 +260,7 @@ public boolean equals(Object obj) {
279260
&& Objects.equals(metadata, other.metadata)
280261
&& Objects.equals(pickupDetails, other.pickupDetails)
281262
&& Objects.equals(shipmentDetails, other.shipmentDetails)
282-
&& Objects.equals(deliveryDetails, other.deliveryDetails)
283-
&& Objects.equals(version, other.version);
263+
&& Objects.equals(deliveryDetails, other.deliveryDetails);
284264
}
285265

286266
/**
@@ -293,7 +273,7 @@ public String toString() {
293273
+ ", lineItemApplication=" + lineItemApplication + ", entries=" + entries
294274
+ ", metadata=" + metadata + ", pickupDetails=" + pickupDetails
295275
+ ", shipmentDetails=" + shipmentDetails + ", deliveryDetails=" + deliveryDetails
296-
+ ", version=" + version + "]";
276+
+ "]";
297277
}
298278

299279
/**
@@ -309,8 +289,7 @@ public Builder toBuilder() {
309289
.entries(getEntries())
310290
.pickupDetails(getPickupDetails())
311291
.shipmentDetails(getShipmentDetails())
312-
.deliveryDetails(getDeliveryDetails())
313-
.version(getVersion());
292+
.deliveryDetails(getDeliveryDetails());
314293
builder.uid = internalGetUid();
315294
builder.metadata = internalGetMetadata();
316295
return builder;
@@ -329,7 +308,6 @@ public static class Builder {
329308
private FulfillmentPickupDetails pickupDetails;
330309
private FulfillmentShipmentDetails shipmentDetails;
331310
private FulfillmentDeliveryDetails deliveryDetails;
332-
private Integer version;
333311

334312

335313

@@ -441,23 +419,13 @@ public Builder deliveryDetails(FulfillmentDeliveryDetails deliveryDetails) {
441419
return this;
442420
}
443421

444-
/**
445-
* Setter for version.
446-
* @param version Integer value for version.
447-
* @return Builder
448-
*/
449-
public Builder version(Integer version) {
450-
this.version = version;
451-
return this;
452-
}
453-
454422
/**
455423
* Builds a new {@link Fulfillment} object using the set fields.
456424
* @return {@link Fulfillment}
457425
*/
458426
public Fulfillment build() {
459427
return new Fulfillment(uid, type, state, lineItemApplication, entries, metadata,
460-
pickupDetails, shipmentDetails, deliveryDetails, version);
428+
pickupDetails, shipmentDetails, deliveryDetails);
461429
}
462430
}
463431
}

0 commit comments

Comments
 (0)