|
31 | 31 | @EqualsAndHashCode(callSuper = false) |
32 | 32 | public class RequestedSession extends ApiResource |
33 | 33 | implements HasId, MetadataStore<RequestedSession> { |
| 34 | + /** Affiliate attribution data associated with this requested session. */ |
| 35 | + @SerializedName("affiliate_attributions") |
| 36 | + List<RequestedSession.AffiliateAttribution> affiliateAttributions; |
| 37 | + |
34 | 38 | /** The subtotal amount of the requested session. */ |
35 | 39 | @SerializedName("amount_subtotal") |
36 | 40 | Long amountSubtotal; |
@@ -363,6 +367,88 @@ public RequestedSession update(RequestedSessionUpdateParams params, RequestOptio |
363 | 367 | return getResponseGetter().request(request, RequestedSession.class); |
364 | 368 | } |
365 | 369 |
|
| 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 | + |
366 | 452 | /** |
367 | 453 | * For more details about FulfillmentDetails, please refer to the <a |
368 | 454 | * href="https://docs.stripe.com/api">API Reference.</a> |
|
0 commit comments