Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SubscriptionModel:
- subscription_log_details_model = subscriptions_api.model(
- "SubscriptionsLogDetails",
- {
- "owner": fields.Nested(EMPLOYEE_MODEL, allow_null=True),
- "status": fields.Integer,
- "target_status": fields.Integer,
- "payment_type": fields.Integer,
- "tags": fields.List(fields.String),
- "billed": fields.Integer,
- "budget_limit": fields.Float,
- "card_id": fields.String,
- "card_masked_pan": fields.String,
- "approved_by": fields.Nested(EMPLOYEE_MODEL, allow_null=True),
- "category": fields.Integer,
- "reason": fields.String,
- "contract_duration": fields.Float,
- "contract_duration_type": fields.Integer,
- "terms_of_service_url": fields.String,
- "contract_file": AwsS3FileFullUrl(attribute="contract_file"),
- "contract_renewal_date": fields.Integer,
- "signing_date": fields.Integer,
- "expected_first_payment": fields.Integer,
- "purchase_order": fields.String,
- }
- )
- subscription_log_model = subscriptions_api.model(
- "SubscriptionsLog",
- {
- "id": fields.String,
- "reported_by": fields.Nested(EMPLOYEE_MODEL, allow_null=True),
- "created_at": fields.Integer,
- "details": fields.Nested(subscription_log_details_model, skip_none=True),
- }
- )
- subscription_log_list_model = subscriptions_api.model(
- "SubscriptionsLogsList",
- {
- "logs": fields.List(fields.Nested(subscription_log_model)),
- "pagination": PaginationField,
- },
- )
Advertisement
Add Comment
Please, Sign In to add comment