Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PurchaseObject incorrect non optional field #600

Closed
vitaly-furman opened this issue Apr 24, 2024 · 1 comment · Fixed by #601 or #602
Closed

PurchaseObject incorrect non optional field #600

vitaly-furman opened this issue Apr 24, 2024 · 1 comment · Fixed by #601 or #602
Assignees
Labels
bug Something isn't working

Comments

@vitaly-furman
Copy link

Expected Behavior

PurchaseObject.app_id should be optional

https://www.braze.com/docs/api/objects_filters/purchase_object/

Actual Behavior

PurchaseObject.app_id is required, therefore not letting send track user purchase without app_id

Steps to Reproduce

interface PurchaseObject {
    external_id?: string;
    user_alias?: UserAlias;
    braze_id?: string;
    app_id: string;
    product_id: string;
    currency: string;
    price: number;
    quantity?: number;
    time: string;
    properties?: Properties;
    _update_existing_only?: boolean;
}

Reproducible Demo

Can just change app_id to optional:

interface PurchaseObject {
    external_id?: string;
    user_alias?: UserAlias;
    braze_id?: string;
    app_id?: string;
    product_id: string;
    currency: string;
    price: number;
    quantity?: number;
    time: string;
    properties?: Properties;
    _update_existing_only?: boolean;
}

Environment

  • Version: 2.7.0
  • Platform:
  • Browser:
  • OS:

Keywords

trackUserObject, PurchaseObject, app_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants