Skip to content

Commit b1975ae

Browse files
Update generated code for v2188 and
1 parent cb3848d commit b1975ae

File tree

6 files changed

+999
-1
lines changed

6 files changed

+999
-1
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2187
1+
v2188

src/main/java/com/stripe/model/EventDataClassLookup.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public final class EventDataClassLookup {
118118
classLookup.put("apps.secret", com.stripe.model.apps.Secret.class);
119119

120120
classLookup.put("billing.alert", com.stripe.model.billing.Alert.class);
121+
classLookup.put("billing.alert_recovered", com.stripe.model.billing.AlertRecovered.class);
121122
classLookup.put("billing.alert_triggered", com.stripe.model.billing.AlertTriggered.class);
122123
classLookup.put(
123124
"billing.credit_balance_summary", com.stripe.model.billing.CreditBalanceSummary.class);
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.model.billing;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.model.StripeObject;
6+
import java.math.BigDecimal;
7+
import lombok.EqualsAndHashCode;
8+
import lombok.Getter;
9+
import lombok.Setter;
10+
11+
@Getter
12+
@Setter
13+
@EqualsAndHashCode(callSuper = false)
14+
public class AlertRecovered extends StripeObject {
15+
/**
16+
* A billing alert is a resource that notifies you when a certain usage threshold on a meter is
17+
* crossed. For example, you might create a billing alert to notify you when a certain user made
18+
* 100 API requests.
19+
*/
20+
@SerializedName("alert")
21+
Alert alert;
22+
23+
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
24+
@SerializedName("created")
25+
Long created;
26+
27+
/** Currency for the threshold value. */
28+
@SerializedName("currency")
29+
String currency;
30+
31+
/** Custom pricing unit for the threshold value. */
32+
@SerializedName("custom_pricing_unit")
33+
String customPricingUnit;
34+
35+
/** ID of customer for which the alert recovered. */
36+
@SerializedName("customer")
37+
String customer;
38+
39+
/** External customer ID for the customer for which the alert recovered. */
40+
@SerializedName("external_customer_id")
41+
String externalCustomerId;
42+
43+
/**
44+
* If the object exists in live mode, the value is {@code true}. If the object exists in test
45+
* mode, the value is {@code false}.
46+
*/
47+
@SerializedName("livemode")
48+
Boolean livemode;
49+
50+
/**
51+
* String representing the object's type. Objects of the same type share the same value.
52+
*
53+
* <p>Equal to {@code billing.alert_recovered}.
54+
*/
55+
@SerializedName("object")
56+
String object;
57+
58+
/** The value at which the alert recovered. */
59+
@SerializedName("value")
60+
BigDecimal value;
61+
}

src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
@EqualsAndHashCode(callSuper = false)
3232
public class RequestedSession extends ApiResource
3333
implements HasId, MetadataStore<RequestedSession> {
34+
/** Affiliate attribution data associated with this requested session. */
35+
@SerializedName("affiliate_attributions")
36+
List<RequestedSession.AffiliateAttribution> affiliateAttributions;
37+
3438
/** The subtotal amount of the requested session. */
3539
@SerializedName("amount_subtotal")
3640
Long amountSubtotal;
@@ -363,6 +367,88 @@ public RequestedSession update(RequestedSessionUpdateParams params, RequestOptio
363367
return getResponseGetter().request(request, RequestedSession.class);
364368
}
365369

370+
/**
371+
* For more details about AffiliateAttribution, please refer to the <a
372+
* href="https://docs.stripe.com/api">API Reference.</a>
373+
*/
374+
@Getter
375+
@Setter
376+
@EqualsAndHashCode(callSuper = false)
377+
public static class AffiliateAttribution extends StripeObject {
378+
/** Agent-scoped campaign identifier. */
379+
@SerializedName("campaign_id")
380+
String campaignId;
381+
382+
/** Agent-scoped creative identifier. */
383+
@SerializedName("creative_id")
384+
String creativeId;
385+
386+
/** Timestamp when the attribution token expires. */
387+
@SerializedName("expires_at")
388+
Long expiresAt;
389+
390+
/** Agent-issued secret to validate the legitimacy of the source of this data. */
391+
@SerializedName("identification_token")
392+
String identificationToken;
393+
394+
/** Timestamp for when the attribution token was issued. */
395+
@SerializedName("issued_at")
396+
Long issuedAt;
397+
398+
/** Identifier for the attribution agent / affiliate network namespace. */
399+
@SerializedName("provider")
400+
String provider;
401+
402+
/** Agent-scoped affiliate/publisher identifier. */
403+
@SerializedName("publisher_id")
404+
String publisherId;
405+
406+
/** Freeform key/value pairs for additional non-sensitive per-agent data. */
407+
@SerializedName("shared_metadata")
408+
Map<String, String> sharedMetadata;
409+
410+
/** Context about where the attribution originated. */
411+
@SerializedName("source")
412+
Source source;
413+
414+
/** Agent-scoped sub-tracking identifier. */
415+
@SerializedName("sub_id")
416+
String subId;
417+
418+
/**
419+
* Whether this is the first or last touchpoint.
420+
*
421+
* <p>One of {@code first}, or {@code last}.
422+
*/
423+
@SerializedName("touchpoint")
424+
String touchpoint;
425+
426+
/**
427+
* For more details about Source, please refer to the <a href="https://docs.stripe.com/api">API
428+
* Reference.</a>
429+
*/
430+
@Getter
431+
@Setter
432+
@EqualsAndHashCode(callSuper = false)
433+
public static class Source extends StripeObject {
434+
/** The platform of the attribution source. */
435+
@SerializedName("platform")
436+
String platform;
437+
438+
/**
439+
* The type of the attribution source.
440+
*
441+
* <p>One of {@code platform}, or {@code url}.
442+
*/
443+
@SerializedName("type")
444+
String type;
445+
446+
/** The URL of the attribution source. */
447+
@SerializedName("url")
448+
String url;
449+
}
450+
}
451+
366452
/**
367453
* For more details about FulfillmentDetails, please refer to the <a
368454
* href="https://docs.stripe.com/api">API Reference.</a>

0 commit comments

Comments
 (0)