Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions connect/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,8 @@ class Item(BaseModel):

global_id = None # type: str
""" (str) Global id. """

# Undocumented fields (they appear in PHP SDK)

period = None # type: str
""" (str) Period. """
1 change: 1 addition & 0 deletions connect/models/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class ItemSchema(BaseSchema):
old_quantity = QuantityField(allow_none=True)
renewal = fields.Nested(RenewalSchema, allow_none=True)
global_id = fields.Str()
period = fields.Str()

@post_load
def make_object(self, data):
Expand Down