Created
April 4, 2019 06:20
-
-
Save SergeyPetrachkov/846df155368ccf6cb59d7faffde4668a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct InviteFeedModel: Codable { | |
public var level: Int? | |
public var performerId: String | |
public var performerName: String? | |
public var newParticipantId: String? | |
public var newParticipantName: String? | |
public init(level: Int?, performerId: String, performerName: String?, newParticipantId: String?, newParticipantName: String?) { | |
self.level = level | |
self.performerId = performerId | |
self.performerName = performerName | |
self.newParticipantId = newParticipantId | |
self.newParticipantName = newParticipantName | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"FeedRequest": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/EmptyPaginationRequest" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"userId" | |
], | |
"properties": { | |
"userId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"eventTypes": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/EventType" | |
} | |
} | |
} | |
} | |
] | |
}, | |
"EventType": { | |
"type": "string", | |
"description": "", | |
"x-enumNames": [ | |
"Payment", | |
"Invited", | |
"Invite", | |
"InviteRef", | |
"Accrual", | |
"AccrualRef", | |
"WriteOffBonus", | |
"RangChange", | |
"CashbackWithdrawCreated", | |
"PartnerValletAddValue", | |
"News", | |
"Offer", | |
"CashbackAward", | |
"CashbackAwardRef", | |
"CashbackWithdrawApproved", | |
"CashbackWithdrawRejected", | |
"RegistrationAward", | |
"AddBonus", | |
"ExchangeBonusSource", | |
"ExchangeBonusDestination" | |
], | |
"enum": [ | |
"Payment", | |
"Invited", | |
"Invite", | |
"InviteRef", | |
"Accrual", | |
"AccrualRef", | |
"WriteOffBonus", | |
"RangChange", | |
"CashbackWithdrawCreated", | |
"PartnerValletAddValue", | |
"News", | |
"Offer", | |
"CashbackAward", | |
"CashbackAwardRef", | |
"CashbackWithdrawApproved", | |
"CashbackWithdrawRejected", | |
"RegistrationAward", | |
"AddBonus", | |
"ExchangeBonusSource", | |
"ExchangeBonusDestination" | |
] | |
}, | |
"FeedModel": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"invite": { | |
"$ref": "#/definitions/InviteFeedModel" | |
}, | |
"payment": { | |
"$ref": "#/definitions/PaymentFeedModel" | |
}, | |
"accrual": { | |
"$ref": "#/definitions/AccrualFeedModel" | |
}, | |
"cashbackAward": { | |
"$ref": "#/definitions/CashbackAwardFeedModel" | |
}, | |
"rangChange": { | |
"$ref": "#/definitions/RangChangeFeedModel" | |
}, | |
"cashbackWithdraw": { | |
"$ref": "#/definitions/CashbackWithdrawFeedModel" | |
}, | |
"newsItem": { | |
"$ref": "#/definitions/CompanyNewsDto" | |
}, | |
"offer": { | |
"$ref": "#/definitions/OfferDto" | |
}, | |
"registrationAward": { | |
"$ref": "#/definitions/RegistrationAwardFeedModel" | |
}, | |
"exchange": { | |
"$ref": "#/definitions/ExchangeFeedModel" | |
} | |
} | |
}, | |
"InviteFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/CompanyOperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"performerId" | |
], | |
"properties": { | |
"level": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"performerId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"performerName": { | |
"type": "string" | |
}, | |
"newParticipantId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"newParticipantName": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"CompanyOperationFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/OperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"x-abstract": true, | |
"additionalProperties": false, | |
"required": [ | |
"companyId" | |
], | |
"properties": { | |
"companyId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"companyName": { | |
"type": "string" | |
}, | |
"companyShortDescription": { | |
"type": "string" | |
}, | |
"companyAvatarUrl": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"OperationFeedModel": { | |
"type": "object", | |
"x-abstract": true, | |
"additionalProperties": false, | |
"required": [ | |
"eventSourceId", | |
"eventType", | |
"date" | |
], | |
"properties": { | |
"eventSourceId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"eventType": { | |
"$ref": "#/definitions/EventType" | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"operationName": { | |
"type": "string" | |
} | |
} | |
}, | |
"PaymentFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/CompanyOperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"performerId" | |
], | |
"properties": { | |
"valueTotal": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"valueCash": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"valueBonus": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"performerId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"performerName": { | |
"type": "string" | |
}, | |
"discountMode": { | |
"$ref": "#/definitions/DiscountMode" | |
} | |
} | |
} | |
] | |
}, | |
"AccrualFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/CompanyOperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"level", | |
"performerId" | |
], | |
"properties": { | |
"level": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"bonus": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"performerId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"performerName": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"CashbackAwardFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/CompanyOperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"level", | |
"performerId" | |
], | |
"properties": { | |
"level": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"cashback": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"performerId": { | |
"type": "string", | |
"format": "guid" | |
}, | |
"performerName": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"RangChangeFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/CompanyOperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"newDiscount": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"oldDiscount": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"newRangName": { | |
"type": "string" | |
}, | |
"oldRangName": { | |
"type": "string" | |
}, | |
"newRangMinimumAmount": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"lastIntervalSpentAmount": { | |
"type": "number", | |
"format": "decimal" | |
} | |
} | |
} | |
] | |
}, | |
"CashbackWithdrawFeedModel": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/OperationFeedModel" | |
}, | |
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"withdrawValue" | |
], | |
"properties": { | |
"withdrawValue": { | |
"type": "number", | |
"format": "decimal" | |
}, | |
"description": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment