Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content marked as paid #24

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Conversation

bbijoch
Copy link
Contributor

@bbijoch bbijoch commented Sep 4, 2024

No description provided.

@@ -24,8 +24,8 @@ public struct ContentMetadata {
/// Default value is set to 1.
public let contentPartIndex: Int

/// Did user paid for access to this content?
public let contentWasPaidFor: Bool
/// Is content mark as paid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is content marked as paid in source CMS system
?

@@ -84,6 +83,9 @@ final class EventsFactory {

if let contentMetadata = contentMetadata {
parameters["DX"] = contentMetadata.dxParameter

let contentMarkAsPaidParameters = ContentMarkAsPaidDecorator(contentMetadata: contentMetadata).parameters
parameters["RDLCN"] = contentMarkAsPaidParameters["RDLCN"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jak teraz patrze to myśle głosno, że lepiej by to mieć jako rozszerzenie tak samo jak dxParameter niż dekorator

@bbijoch bbijoch merged commit da323da into feature/paid Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants