Giter Site home page Giter Site logo

memphis-dev-functions's People

Contributors

bgido avatar idanasulinmemphis avatar john-memphis avatar shay23b avatar svetamemphis avatar yanivbh1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

memphis-dev-functions's Issues

Flatten JSON

Hey,
The function is fully updated within my account.
I am producing the following JSON:

{
    "count": 2,
    "has_next": false,
    "page": 1,
    "results": {
        "test":"test2"
    }
}

The results I get:

{
  "count": 2,
  "has_next": false,
  "page": 1,
  "test": "test2"
}

I expected to get:

{
  "count": 2,
  "has_next": false,
  "page": 1,
  "results.test": "test2"
}

Issue in "Flatten-json"

Hey @John-Memphis ,
As we discussed, flatten-json should turn nested keys from:

{

  "person": {
     "fname":"John",
     "lname":"Doe",
  }
}

To:

{
  "person.fname":"John",
  "person.lname":"Doe"
}

Also, I used the function over the following event, and some keys are missing:

{
  "id": ["********3aDqTiS),
  "object": "event",
  "api_version": "2022-11-15",
  "created": 1701341837,
  "data": {
    "object": {
      "id": ["sub_1OI7vkE0XCl37nTz2YtLVw0n"](h********LVw0n),
      "object": "subscription",
      "application": "ca_L********Qeytbv2s",
      "application_fee_percent": null,
      "automatic_tax": {
        "enabled": true
      },
      "billing_cycle_anchor": ********,
      "billing_thresholds": null,
      "cancel_at": null,
      "cancel_at_period_end": false,
      "canceled_at": null,
      "cancellation_details": {
        "comment": null,
        "feedback": null,
        "reason": null
      },
      "collection_method": "charge_automatically",
      "created": 1701341836,
      "currency": "usd",
      "current_period_end": 1701388800,
      "current_period_start": 1701341836,
      "customer": ["********"](https://********ms056),
      "days_until_due": null,
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [
      ],
      "description": null,
      "discount": null,
      "ended_at": null,
      "items": {
        "object": "list",
        "data": [
          {
            "id": "********",
            "object": "subscription_item",
            "billing_thresholds": null,
            "created": 1701341836,
            "metadata": {
            },
            "plan": {
              "id": "********",
              "object": "plan",
              "active": true,
              "aggregate_usage": null,
              "amount": null,
              "amount_decimal": null,
              "billing_scheme": "tiered",
              "created": ********,
              "currency": "usd",
              "interval": "month",
              "interval_count": 1,
              "livemode": true,
              "metadata": {
              },
              "nickname": null,
              "product": "********",
              "tiers_mode": "volume",
              "transform_usage": null,
              "trial_period_days": null,
              "usage_type": "licensed"
            },
            "price": {
              "id": "********",
              "object": "price",
              "active": true,
              "billing_scheme": "tiered",
              "created": ********,
              "currency": "usd",
              "custom_unit_amount": null,
              "livemode": true,
              "lookup_key": null,
              "metadata": {
              },
              "nickname": null,
              "product": "********",
              "recurring": {
                "aggregate_usage": null,
                "interval": "month",
                "interval_count": 1,
                "trial_period_days": null,
                "usage_type": "licensed"
              },
              "tax_behavior": "unspecified",
              "tiers_mode": "volume",
              "transform_quantity": null,
              "type": "recurring",
              "unit_amount": null,
              "unit_amount_decimal": null
            },
            "quantity": 1,
            "subscription": "********",
            "tax_rates": [
            ]
          }
        ],
        "has_more": false,
        "total_count": 1,
        "url": "********"
      },
      "latest_invoice": "********",
      "livemode": true,
      "metadata": {
        "stiggCustomerId": "********",
        "stiggEntityUrl": "********"
      },
      "next_pending_invoice_item_invoice": null,
      "on_behalf_of": null,
      "pause_collection": null,
      "payment_settings": {
        "payment_method_options": null,
        "payment_method_types": null,
        "save_default_payment_method": "off"
      },
      "pending_invoice_item_interval": null,
      "pending_setup_intent": null,
      "pending_update": null,
      "plan": {
        "id": "********",
        "object": "plan",
        "active": true,
        "aggregate_usage": null,
        "amount": null,
        "amount_decimal": null,
        "billing_scheme": "tiered",
        "created": 1700385798,
        "currency": "usd",
        "interval": "month",
        "interval_count": 1,
        "livemode": true,
        "metadata": {
        },
        "nickname": null,
        "product": "********",
        "tiers_mode": "volume",
        "transform_usage": null,
        "trial_period_days": null,
        "usage_type": "licensed"
      },
      "quantity": 1,
      "schedule": null,
      "start_date": 1701341836,
      "status": "active",
      "test_clock": null,
      "transfer_data": null,
      "trial_end": null,
      "trial_settings": {
        "end_behavior": {
          "missing_payment_method": "create_invoice"
        }
      },
      "trial_start": null
    }
  },
  "livemode": true,
  "pending_webhooks": 3,
  "request": {
    "id": "req_s1hv7ppNSUy4R8",
    "idempotency_key": "********"
  },
  "type": "customer.subscription.created"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.