#Rob.Clayton
1 messages · Page 1 of 1 (latest)
Hi there, you can just copy an example object from the API reference doc https://stripe.com/docs/api/products/object?lang=cli#product_object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That's the json data representation
I need to create a python Product instance that can resolve instance.name. Without calling retrieve and hitting stripe's actual server, I don't know how to create that instance FROM the json blob.
https://github.com/stripe/stripe-python/blob/master/tests/test_stripe_object.py#L188 Looking at the stripe-python repo, maybe you can try stripe.stripe_object.StripeObject.construct_from( ?
not sure if I am just not getting it, but I just used setattr in python, and ignored the underlying pure object creation in python of the StripeObject