Skip to content

Commit 36ba5a2

Browse files
Merge pull request #58 from JaviCerveraIngram/CPS-32-item-period
Cps 32 Added period field to Item
2 parents 3468b52 + 689701a commit 36ba5a2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

connect/models/product.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,8 @@ class Item(BaseModel):
140140

141141
global_id = None # type: str
142142
""" (str) Global id. """
143+
144+
# Undocumented fields (they appear in PHP SDK)
145+
146+
period = None # type: str
147+
""" (str) Period. """

connect/models/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ class ItemSchema(BaseSchema):
240240
old_quantity = QuantityField(allow_none=True)
241241
renewal = fields.Nested(RenewalSchema, allow_none=True)
242242
global_id = fields.Str()
243+
period = fields.Str()
243244

244245
@post_load
245246
def make_object(self, data):

0 commit comments

Comments
 (0)