mirror of
https://github.com/valitydev/daway.git
synced 2024-11-06 00:25:19 +00:00
NEW: Initial commit
This commit is contained in:
parent
61b6eb4154
commit
070fb6ebf3
83
.gitignore
vendored
Normal file
83
.gitignore
vendored
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
# Created by .ignore support plugin (hsz.mobi)
|
||||||
|
### Maven template
|
||||||
|
target/
|
||||||
|
pom.xml.tag
|
||||||
|
pom.xml.releaseBackup
|
||||||
|
pom.xml.versionsBackup
|
||||||
|
pom.xml.next
|
||||||
|
release.properties
|
||||||
|
dependency-reduced-pom.xml
|
||||||
|
buildNumber.properties
|
||||||
|
.mvn/timing.properties
|
||||||
|
### JetBrains template
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff:
|
||||||
|
.idea/
|
||||||
|
.idea/workspace.xml
|
||||||
|
.idea/tasks.xml
|
||||||
|
.idea/dictionaries
|
||||||
|
.idea/vcs.xml
|
||||||
|
.idea/jsLibraryMappings.xml
|
||||||
|
|
||||||
|
# Sensitive or high-churn files:
|
||||||
|
.idea/dataSources.ids
|
||||||
|
.idea/dataSources.xml
|
||||||
|
.idea/dataSources.local.xml
|
||||||
|
.idea/sqlDataSources.xml
|
||||||
|
.idea/dynamic.xml
|
||||||
|
.idea/uiDesigner.xml
|
||||||
|
|
||||||
|
# Gradle:
|
||||||
|
.idea/gradle.xml
|
||||||
|
.idea/libraries
|
||||||
|
|
||||||
|
# Mongo Explorer plugin:
|
||||||
|
.idea/mongoSettings.xml
|
||||||
|
|
||||||
|
## File-based project format:
|
||||||
|
*.iws
|
||||||
|
*.ipr
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
## Plugin-specific files:
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
/out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
### Java template
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Mobile Tools for Java (J2ME)
|
||||||
|
.mtj.tmp/
|
||||||
|
|
||||||
|
# Package Files #
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
|
||||||
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
|
hs_err_pid*
|
||||||
|
|
||||||
|
env.list
|
||||||
|
|
||||||
|
|
||||||
|
# OSX
|
||||||
|
*.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
|
||||||
|
# TestContainers
|
||||||
|
.testcontainers-*
|
48
Jenkinsfile
vendored
Normal file
48
Jenkinsfile
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#!groovy
|
||||||
|
build('newway', 'java-maven') {
|
||||||
|
checkoutRepo()
|
||||||
|
|
||||||
|
def serviceName = env.REPO_NAME
|
||||||
|
def baseImageTag = "f26fcc19d1941ab74f1c72dd8a408be17a769333"
|
||||||
|
def mvnArgs = '-DjvmArgs="-Xmx256m"'
|
||||||
|
|
||||||
|
// Run mvn and generate docker file
|
||||||
|
runStage('Maven package') {
|
||||||
|
withCredentials([[$class: 'FileBinding', credentialsId: 'java-maven-settings.xml', variable: 'SETTINGS_XML']]) {
|
||||||
|
def mvn_command_arguments = ' --batch-mode --settings $SETTINGS_XML -P ci ' +
|
||||||
|
" -Dgit.branch=${env.BRANCH_NAME} " +
|
||||||
|
" ${mvnArgs}"
|
||||||
|
if (env.BRANCH_NAME == 'master') {
|
||||||
|
sh 'mvn deploy' + mvn_command_arguments
|
||||||
|
} else {
|
||||||
|
sh 'mvn package' + mvn_command_arguments
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def serviceImage;
|
||||||
|
def imgShortName = 'rbkmoney/' + "${serviceName}" + ':' + '$COMMIT_ID';
|
||||||
|
getCommitId()
|
||||||
|
runStage('Build Service image') {
|
||||||
|
serviceImage = docker.build(imgShortName, '-f ./target/Dockerfile ./target')
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic')) {
|
||||||
|
runStage('Push Service image') {
|
||||||
|
docker.withRegistry('https://dr.rbkmoney.com/v2/', 'dockerhub-rbkmoneycibot') {
|
||||||
|
serviceImage.push();
|
||||||
|
}
|
||||||
|
// Push under 'withRegistry' generates 2d record with 'long name' in local docker registry.
|
||||||
|
// Untag the long-name
|
||||||
|
sh "docker rmi dr.rbkmoney.com/${imgShortName}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
runStage('Remove local image') {
|
||||||
|
// Remove the image to keep Jenkins runner clean.
|
||||||
|
sh "docker rmi ${imgShortName}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
258
pom.xml
Normal file
258
pom.xml
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>newway</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<name>newway</name>
|
||||||
|
<description>SQL-views of business objects</description>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>com.rbkmoney</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>1.5.10.RELEASE</version>
|
||||||
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.maintainer>Inal Arsanukaev <i.arsanukaev@rbkmoney.com></project.maintainer>
|
||||||
|
<shared.resources.version>0.2.1</shared.resources.version>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<postgresql.jdbc.version>9.4.1212</postgresql.jdbc.version>
|
||||||
|
<dockerfile.base.service.tag>22c57470c4fc47161894f036b7cf9d70f42b75f5</dockerfile.base.service.tag>
|
||||||
|
<server.port>8022</server.port>
|
||||||
|
<db.url>jdbc:postgresql://localhost:5432/newway</db.url>
|
||||||
|
<db.user>postgres</db.user>
|
||||||
|
<db.password>postgres</db.password>
|
||||||
|
<db.schema>nw</db.schema>
|
||||||
|
<flyway.version>4.2.0</flyway.version>
|
||||||
|
<damsel.version>1.243-bb3d376</damsel.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!--Thrirdparty libs-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-validator</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.postgresql</groupId>
|
||||||
|
<artifactId>postgresql</artifactId>
|
||||||
|
<version>${postgresql.jdbc.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zaxxer</groupId>
|
||||||
|
<artifactId>HikariCP</artifactId>
|
||||||
|
<version>${hikaricp.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.flywaydb</groupId>
|
||||||
|
<artifactId>flyway-core</artifactId>
|
||||||
|
<version>${flyway.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jooq</groupId>
|
||||||
|
<artifactId>jooq</artifactId>
|
||||||
|
<version>${jooq.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.codecentric</groupId>
|
||||||
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||||
|
<version>1.4.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney.logback</groupId>
|
||||||
|
<artifactId>nop-rolling</artifactId>
|
||||||
|
<version>1.0.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.logstash.logback</groupId>
|
||||||
|
<artifactId>logstash-logback-encoder</artifactId>
|
||||||
|
<version>4.6</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
|
<artifactId>jackson-databind</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!--RBK libs-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney</groupId>
|
||||||
|
<artifactId>dbinit</artifactId>
|
||||||
|
<version>1.0.9</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney</groupId>
|
||||||
|
<artifactId>eventstock-client</artifactId>
|
||||||
|
<version>1.1.9</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney</groupId>
|
||||||
|
<artifactId>damsel</artifactId>
|
||||||
|
<version>${damsel.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney</groupId>
|
||||||
|
<artifactId>shared-resources</artifactId>
|
||||||
|
<version>${shared.resources.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney.geck</groupId>
|
||||||
|
<artifactId>serializer</artifactId>
|
||||||
|
<version>0.6.4</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Test -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.testcontainers</groupId>
|
||||||
|
<artifactId>postgresql</artifactId>
|
||||||
|
<version>1.4.3</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.github.benas</groupId>
|
||||||
|
<artifactId>random-beans</artifactId>
|
||||||
|
<version>3.6.0</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.rbkmoney.hg-mock</groupId>
|
||||||
|
<artifactId>generator</artifactId>
|
||||||
|
<version>0.9.7</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
|
||||||
|
<targetPath>${project.build.directory}</targetPath>
|
||||||
|
<includes>
|
||||||
|
<include>Dockerfile</include>
|
||||||
|
</includes>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<excludes>
|
||||||
|
<exclude>Dockerfile</exclude>
|
||||||
|
</excludes>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.flywaydb</groupId>
|
||||||
|
<artifactId>flyway-maven-plugin</artifactId>
|
||||||
|
<version>${flyway.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<url>${db.url}</url>
|
||||||
|
<user>${db.user}</user>
|
||||||
|
<password>${db.password}</password>
|
||||||
|
<schemas>
|
||||||
|
<schema>${db.schema}</schema>
|
||||||
|
</schemas>
|
||||||
|
</configuration>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.postgresql</groupId>
|
||||||
|
<artifactId>postgresql</artifactId>
|
||||||
|
<version>${postgresql.jdbc.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jooq</groupId>
|
||||||
|
<artifactId>jooq-codegen-maven</artifactId>
|
||||||
|
<version>${jooq.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<jdbc>
|
||||||
|
<driver>org.postgresql.Driver</driver>
|
||||||
|
<url>${db.url}</url>
|
||||||
|
<user>${db.user}</user>
|
||||||
|
<password>${db.password}</password>
|
||||||
|
</jdbc>
|
||||||
|
<generator>
|
||||||
|
<generate>
|
||||||
|
<javaTimeTypes>true</javaTimeTypes>
|
||||||
|
<pojos>true</pojos>
|
||||||
|
<pojosEqualsAndHashCode>true</pojosEqualsAndHashCode>
|
||||||
|
<pojosToString>true</pojosToString>
|
||||||
|
</generate>
|
||||||
|
<database>
|
||||||
|
<name>org.jooq.util.postgres.PostgresDatabase</name>
|
||||||
|
<includes>.*</includes>
|
||||||
|
<excludes>schema_version</excludes>
|
||||||
|
<inputSchema>${db.schema}</inputSchema>
|
||||||
|
</database>
|
||||||
|
<target>
|
||||||
|
<packageName>com.rbkmoney.newway.domain</packageName>
|
||||||
|
<directory>src/main/java/</directory>
|
||||||
|
</target>
|
||||||
|
</generator>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<argLine>-Dfile.encoding=UTF-8</argLine>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
||||||
|
<version>1.5</version>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
|
<artifactId>maven-filtering</artifactId>
|
||||||
|
<version>1.3</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<configuration>
|
||||||
|
<resourceBundles>
|
||||||
|
<resourceBundle>com.rbkmoney:shared-resources:${shared.resources.version}</resourceBundle>
|
||||||
|
</resourceBundles>
|
||||||
|
<attachToMain>false</attachToMain>
|
||||||
|
<attachToTest>false</attachToTest>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>process</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
17
src/main/java/com/rbkmoney/newway/NewwayApplication.java
Normal file
17
src/main/java/com/rbkmoney/newway/NewwayApplication.java
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package com.rbkmoney.newway;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
||||||
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
|
|
||||||
|
@EnableScheduling
|
||||||
|
@ServletComponentScan
|
||||||
|
@SpringBootApplication(scanBasePackages = {"com.rbkmoney.newway", "com.rbkmoney.dbinit"})
|
||||||
|
public class NewwayApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(NewwayApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.rbkmoney.newway.config;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class ApplicationConfig {
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public Schema schema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.rbkmoney.newway.config;
|
||||||
|
|
||||||
|
import com.rbkmoney.eventstock.client.EventPublisher;
|
||||||
|
import com.rbkmoney.eventstock.client.poll.PollingEventPublisherBuilder;
|
||||||
|
import com.rbkmoney.newway.poller.handler.PayoutEventStockHandler;
|
||||||
|
import com.rbkmoney.newway.poller.handler.ProcessingEventStockHandler;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class EventStockConfig {
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public EventPublisher processingEventPublisher(
|
||||||
|
ProcessingEventStockHandler processingEventStockHandler,
|
||||||
|
@Value("${bm.processing.url}") Resource resource,
|
||||||
|
@Value("${bm.processing.polling.delay}") int pollDelay,
|
||||||
|
@Value("${bm.processing.polling.retryDelay}") int retryDelay,
|
||||||
|
@Value("${bm.processing.polling.maxPoolSize}") int maxPoolSize
|
||||||
|
) throws IOException {
|
||||||
|
return new PollingEventPublisherBuilder()
|
||||||
|
.withURI(resource.getURI())
|
||||||
|
.withEventHandler(processingEventStockHandler)
|
||||||
|
.withMaxPoolSize(maxPoolSize)
|
||||||
|
.withPollDelay(pollDelay)
|
||||||
|
.withEventRetryDelay(retryDelay)
|
||||||
|
.withPollDelay(pollDelay)
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public EventPublisher payoutEventPublisher(
|
||||||
|
PayoutEventStockHandler payoutEventStockHandler,
|
||||||
|
@Value("${bm.payout.url}") Resource resource,
|
||||||
|
@Value("${bm.payout.polling.delay}") int pollDelay,
|
||||||
|
@Value("${bm.payout.polling.retryDelay}") int retryDelay,
|
||||||
|
@Value("${bm.payout.polling.maxPoolSize}") int maxPoolSize
|
||||||
|
) throws IOException {
|
||||||
|
return new PollingEventPublisherBuilder()
|
||||||
|
.withURI(resource.getURI())
|
||||||
|
.withEventHandler(payoutEventStockHandler)
|
||||||
|
.withMaxPoolSize(maxPoolSize)
|
||||||
|
.withPollDelay(pollDelay)
|
||||||
|
.withEventRetryDelay(retryDelay)
|
||||||
|
.withPollDelay(pollDelay)
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
package com.rbkmoney.newway.dao.common.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
||||||
|
import org.springframework.jdbc.core.namedparam.SqlParameterSource;
|
||||||
|
import org.springframework.jdbc.support.KeyHolder;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface GenericDao {
|
||||||
|
|
||||||
|
<T> T fetchOne(Query query, Class<T> type) throws DaoException;
|
||||||
|
|
||||||
|
<T> T fetchOne(Query query, Class<T> type, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
<T> T fetchOne(Query query, RowMapper<T> rowMapper) throws DaoException;
|
||||||
|
|
||||||
|
<T> T fetchOne(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper) throws DaoException;
|
||||||
|
|
||||||
|
<T> T fetchOne(Query query, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
<T> T fetchOne(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
<T> List<T> fetch(Query query, RowMapper<T> rowMapper) throws DaoException;
|
||||||
|
|
||||||
|
<T> List<T> fetch(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper) throws DaoException;
|
||||||
|
|
||||||
|
<T> List<T> fetch(Query query, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
<T> List<T> fetch(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
void executeOne(Query query) throws DaoException;
|
||||||
|
|
||||||
|
void executeOne(String namedSql, SqlParameterSource parameterSource) throws DaoException;
|
||||||
|
|
||||||
|
int execute(Query query) throws DaoException;
|
||||||
|
|
||||||
|
int execute(Query query, int expectedRowsAffected) throws DaoException;
|
||||||
|
|
||||||
|
int execute(Query query, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
int execute(String namedSql) throws DaoException;
|
||||||
|
|
||||||
|
int execute(String namedSql, SqlParameterSource parameterSource) throws DaoException;
|
||||||
|
|
||||||
|
int execute(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected) throws DaoException;
|
||||||
|
|
||||||
|
int execute(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException;
|
||||||
|
|
||||||
|
void executeOneWithReturn(Query query, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
void executeOneWithReturn(String namedSql, SqlParameterSource parameterSource, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(Query query, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(Query query, int expectedRowsAffected, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(Query query, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(String namedSql, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(String namedSql, SqlParameterSource parameterSource, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
int executeWithReturn(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate, KeyHolder keyHolder) throws DaoException;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,235 @@
|
|||||||
|
package com.rbkmoney.newway.dao.common.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.*;
|
||||||
|
import org.jooq.conf.ParamType;
|
||||||
|
import org.jooq.impl.DSL;
|
||||||
|
import org.jooq.impl.DefaultConfiguration;
|
||||||
|
import org.springframework.context.annotation.DependsOn;
|
||||||
|
import org.springframework.core.NestedRuntimeException;
|
||||||
|
import org.springframework.dao.EmptyResultDataAccessException;
|
||||||
|
import org.springframework.jdbc.JdbcUpdateAffectedIncorrectNumberOfRowsException;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.core.SingleColumnRowMapper;
|
||||||
|
import org.springframework.jdbc.core.namedparam.*;
|
||||||
|
import org.springframework.jdbc.support.KeyHolder;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.sql.Types;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@DependsOn("dbInitializer")
|
||||||
|
public abstract class AbstractGenericDao extends NamedParameterJdbcDaoSupport implements GenericDao {
|
||||||
|
|
||||||
|
private final DSLContext dslContext;
|
||||||
|
|
||||||
|
public AbstractGenericDao(DataSource dataSource) {
|
||||||
|
setDataSource(dataSource);
|
||||||
|
Configuration configuration = new DefaultConfiguration();
|
||||||
|
configuration.set(SQLDialect.POSTGRES_9_5);
|
||||||
|
this.dslContext = DSL.using(configuration);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected DSLContext getDslContext() {
|
||||||
|
return dslContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T fetchOne(Query query, Class<T> type) throws DaoException {
|
||||||
|
return fetchOne(query, type, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T fetchOne(Query query, Class<T> type, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
return fetchOne(query, new SingleColumnRowMapper<>(type), namedParameterJdbcTemplate);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T fetchOne(Query query, RowMapper<T> rowMapper) throws DaoException {
|
||||||
|
return fetchOne(query, rowMapper, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T fetchOne(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper) throws DaoException {
|
||||||
|
return fetchOne(namedSql, parameterSource, rowMapper, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T fetchOne(Query query, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
return fetchOne(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), rowMapper, namedParameterJdbcTemplate);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T fetchOne(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
try {
|
||||||
|
return namedParameterJdbcTemplate.queryForObject(
|
||||||
|
namedSql,
|
||||||
|
parameterSource,
|
||||||
|
rowMapper
|
||||||
|
);
|
||||||
|
} catch (EmptyResultDataAccessException ex) {
|
||||||
|
return null;
|
||||||
|
} catch (NestedRuntimeException ex) {
|
||||||
|
throw new DaoException(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> List<T> fetch(Query query, RowMapper<T> rowMapper) throws DaoException {
|
||||||
|
return fetch(query, rowMapper, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> List<T> fetch(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper) throws DaoException {
|
||||||
|
return fetch(namedSql, parameterSource, rowMapper, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> List<T> fetch(Query query, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
return fetch(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), rowMapper, namedParameterJdbcTemplate);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> List<T> fetch(String namedSql, SqlParameterSource parameterSource, RowMapper<T> rowMapper, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
try {
|
||||||
|
return namedParameterJdbcTemplate.query(
|
||||||
|
namedSql,
|
||||||
|
parameterSource,
|
||||||
|
rowMapper
|
||||||
|
);
|
||||||
|
} catch (NestedRuntimeException e) {
|
||||||
|
throw new DaoException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeOne(Query query) throws DaoException {
|
||||||
|
execute(query, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(Query query) throws DaoException {
|
||||||
|
return execute(query, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(Query query, int expectedRowsAffected) throws DaoException {
|
||||||
|
return execute(query, expectedRowsAffected, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(Query query, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
return execute(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), expectedRowsAffected, namedParameterJdbcTemplate);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeOne(String namedSql, SqlParameterSource parameterSource) throws DaoException {
|
||||||
|
execute(namedSql, parameterSource, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(String namedSql) throws DaoException {
|
||||||
|
return execute(namedSql, EmptySqlParameterSource.INSTANCE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(String namedSql, SqlParameterSource parameterSource) throws DaoException {
|
||||||
|
return execute(namedSql, parameterSource, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected) throws DaoException {
|
||||||
|
return execute(namedSql, parameterSource, expectedRowsAffected, getNamedParameterJdbcTemplate());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int execute(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate) throws DaoException {
|
||||||
|
try {
|
||||||
|
int rowsAffected = namedParameterJdbcTemplate.update(
|
||||||
|
namedSql,
|
||||||
|
parameterSource);
|
||||||
|
|
||||||
|
if (expectedRowsAffected != -1 && rowsAffected != expectedRowsAffected) {
|
||||||
|
throw new JdbcUpdateAffectedIncorrectNumberOfRowsException(namedSql, expectedRowsAffected, rowsAffected);
|
||||||
|
}
|
||||||
|
|
||||||
|
return rowsAffected;
|
||||||
|
} catch (NestedRuntimeException ex) {
|
||||||
|
throw new DaoException(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeOneWithReturn(Query query, KeyHolder keyHolder) throws DaoException {
|
||||||
|
executeOneWithReturn(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void executeOneWithReturn(String namedSql, SqlParameterSource parameterSource, KeyHolder keyHolder) throws DaoException {
|
||||||
|
executeWithReturn(namedSql, parameterSource, 1, keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(Query query, KeyHolder keyHolder) throws DaoException {
|
||||||
|
return executeWithReturn(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), -1, keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(Query query, int expectedRowsAffected, KeyHolder keyHolder) throws DaoException {
|
||||||
|
return executeWithReturn(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), expectedRowsAffected, getNamedParameterJdbcTemplate(), keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(Query query, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate, KeyHolder keyHolder) throws DaoException {
|
||||||
|
return executeWithReturn(query.getSQL(ParamType.NAMED), toSqlParameterSource(query.getParams()), expectedRowsAffected, namedParameterJdbcTemplate, keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(String namedSql, KeyHolder keyHolder) throws DaoException {
|
||||||
|
return executeWithReturn(namedSql, EmptySqlParameterSource.INSTANCE, keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(String namedSql, SqlParameterSource parameterSource, KeyHolder keyHolder) throws DaoException {
|
||||||
|
return executeWithReturn(namedSql, parameterSource, -1, keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected, KeyHolder keyHolder) throws DaoException {
|
||||||
|
return executeWithReturn(namedSql, parameterSource, expectedRowsAffected, getNamedParameterJdbcTemplate(), keyHolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int executeWithReturn(String namedSql, SqlParameterSource parameterSource, int expectedRowsAffected, NamedParameterJdbcTemplate namedParameterJdbcTemplate, KeyHolder keyHolder) throws DaoException {
|
||||||
|
try {
|
||||||
|
int rowsAffected = namedParameterJdbcTemplate.update(
|
||||||
|
namedSql,
|
||||||
|
parameterSource,
|
||||||
|
keyHolder);
|
||||||
|
|
||||||
|
if (expectedRowsAffected != -1 && rowsAffected != expectedRowsAffected) {
|
||||||
|
throw new JdbcUpdateAffectedIncorrectNumberOfRowsException(namedSql, expectedRowsAffected, rowsAffected);
|
||||||
|
}
|
||||||
|
return rowsAffected;
|
||||||
|
} catch (NestedRuntimeException ex) {
|
||||||
|
throw new DaoException(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public SqlParameterSource toSqlParameterSource(Map<String, Param<?>> params) {
|
||||||
|
MapSqlParameterSource sqlParameterSource = new MapSqlParameterSource();
|
||||||
|
for (Map.Entry<String, Param<?>> entry : params.entrySet()) {
|
||||||
|
Param<?> param = entry.getValue();
|
||||||
|
if (param.getValue() instanceof LocalDateTime || param.getValue() instanceof EnumType) {
|
||||||
|
sqlParameterSource.addValue(entry.getKey(), param.getValue(), Types.OTHER);
|
||||||
|
} else {
|
||||||
|
sqlParameterSource.addValue(entry.getKey(), param.getValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sqlParameterSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
package com.rbkmoney.newway.dao.common.mapper;
|
||||||
|
|
||||||
|
import com.rbkmoney.geck.common.util.TypeUtil;
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableRecord;
|
||||||
|
import org.jooq.impl.TableRecordImpl;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.ResultSetMetaData;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
|
||||||
|
public class RecordRowMapper<T> implements RowMapper<T> {
|
||||||
|
|
||||||
|
private final Table table;
|
||||||
|
|
||||||
|
private final Class<T> type;
|
||||||
|
|
||||||
|
public RecordRowMapper(Table table, Class<T> type) {
|
||||||
|
this.table = table;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public T mapRow(ResultSet resultSet, int i) throws SQLException {
|
||||||
|
ResultSetMetaData rsMetaData = resultSet.getMetaData();
|
||||||
|
int columnCount = rsMetaData.getColumnCount();
|
||||||
|
|
||||||
|
TableRecord record = new TableRecordImpl(table);
|
||||||
|
for (int column = 1; column <= columnCount; column++) {
|
||||||
|
String columnName = rsMetaData.getColumnName(column);
|
||||||
|
Field field = record.field(columnName);
|
||||||
|
|
||||||
|
Object value = getFieldValue(field, resultSet);
|
||||||
|
if (!resultSet.wasNull()) {
|
||||||
|
record.set(field, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return record.into(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Object getFieldValue(Field field, ResultSet resultSet) throws SQLException {
|
||||||
|
if (field.getDataType().isBinary()) {
|
||||||
|
return resultSet.getBytes(field.getName());
|
||||||
|
}
|
||||||
|
if (field.getType().isEnum()) {
|
||||||
|
return TypeUtil.toEnumField(resultSet.getString(field.getName()), field.getType());
|
||||||
|
}
|
||||||
|
return resultSet.getObject(field.getName(), field.getType());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Adjustment;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface AdjustmentDao extends GenericDao {
|
||||||
|
|
||||||
|
Long save(Adjustment adjustment) throws DaoException;
|
||||||
|
|
||||||
|
Adjustment get(String invoiceId, String paymentId, String adjustmentId) throws DaoException;
|
||||||
|
|
||||||
|
void update(String invoiceId, String paymentId, String adjustmentId) throws DaoException;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentcashflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentchangetype;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.CashFlow;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface CashFlowDao extends GenericDao {
|
||||||
|
|
||||||
|
void save(List<CashFlow> cashFlowList) throws DaoException;
|
||||||
|
|
||||||
|
List<CashFlow> getByObjId(Long objId, Paymentchangetype paymentchangetype) throws DaoException;
|
||||||
|
|
||||||
|
List<CashFlow> getForAdjustments(Long adjId, Adjustmentcashflowtype adjustmentcashflowtype) throws DaoException;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.InvoiceCart;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface InvoiceCartDao extends GenericDao {
|
||||||
|
|
||||||
|
void save(List<InvoiceCart> invoiceCartList) throws DaoException;
|
||||||
|
|
||||||
|
List<InvoiceCart> getByInvId(Long invId) throws DaoException;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Invoice;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface InvoiceDao extends GenericDao {
|
||||||
|
|
||||||
|
Long getLastEventId() throws DaoException;
|
||||||
|
|
||||||
|
Long save(Invoice invoice) throws DaoException;
|
||||||
|
|
||||||
|
Invoice get(String invoiceId) throws DaoException;
|
||||||
|
|
||||||
|
void update(String invoiceId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Payment;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface PaymentDao extends GenericDao {
|
||||||
|
|
||||||
|
Long save(Payment payment) throws DaoException;
|
||||||
|
|
||||||
|
Payment get(String invoiceId, String paymentId) throws DaoException;
|
||||||
|
|
||||||
|
void update(String invoiceId, String paymentId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Refund;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface RefundDao extends GenericDao {
|
||||||
|
|
||||||
|
Long save(Refund refund) throws DaoException;
|
||||||
|
|
||||||
|
Refund get(String invoiceId, String paymentId, String refundId) throws DaoException;
|
||||||
|
|
||||||
|
void update(String invoiceId, String paymentId, String refundId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.invoicing.iface.AdjustmentDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Adjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.AdjustmentRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.ADJUSTMENT;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class AdjustmentDaoImpl extends AbstractGenericDao implements AdjustmentDao {
|
||||||
|
|
||||||
|
private final RowMapper<Adjustment> adjustmentRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public AdjustmentDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
adjustmentRowMapper = new RecordRowMapper<>(ADJUSTMENT, Adjustment.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Adjustment adjustment) throws DaoException {
|
||||||
|
AdjustmentRecord record = getDslContext().newRecord(ADJUSTMENT, adjustment);
|
||||||
|
Query query = getDslContext().insertInto(ADJUSTMENT).set(record).returning(ADJUSTMENT.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Adjustment get(String invoiceId, String paymentId, String adjustmentId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(ADJUSTMENT)
|
||||||
|
.where(ADJUSTMENT.INVOICE_ID.eq(invoiceId)
|
||||||
|
.and(ADJUSTMENT.PAYMENT_ID.eq(paymentId))
|
||||||
|
.and(ADJUSTMENT.ADJUSTMENT_ID.eq(adjustmentId))
|
||||||
|
.and(ADJUSTMENT.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, adjustmentRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String invoiceId, String paymentId, String adjustmentId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(ADJUSTMENT).set(ADJUSTMENT.CURRENT, false)
|
||||||
|
.where(ADJUSTMENT.INVOICE_ID.eq(invoiceId)
|
||||||
|
.and(ADJUSTMENT.PAYMENT_ID.eq(paymentId)
|
||||||
|
.and(ADJUSTMENT.ADJUSTMENT_ID.eq(adjustmentId))
|
||||||
|
.and(ADJUSTMENT.CURRENT)));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.invoicing.iface.CashFlowDao;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentcashflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentchangetype;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.CashFlow;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.CashFlowRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.tables.CashFlow.CASH_FLOW;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class CashFlowDaoImpl extends AbstractGenericDao implements CashFlowDao {
|
||||||
|
|
||||||
|
private final RowMapper<CashFlow> cashFlowRowMapper;
|
||||||
|
|
||||||
|
public CashFlowDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
cashFlowRowMapper = new RecordRowMapper<>(CASH_FLOW, CashFlow.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save(List<CashFlow> cashFlowList) throws DaoException {
|
||||||
|
//todo: Batch insert
|
||||||
|
for (CashFlow paymentCashFlow : cashFlowList) {
|
||||||
|
CashFlowRecord record = getDslContext().newRecord(CASH_FLOW, paymentCashFlow);
|
||||||
|
Query query = getDslContext().insertInto(CASH_FLOW).set(record);
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CashFlow> getByObjId(Long objId, Paymentchangetype paymentchangetype) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(CASH_FLOW)
|
||||||
|
.where(CASH_FLOW.OBJ_ID.eq(objId).and(CASH_FLOW.OBJ_TYPE.eq(paymentchangetype)));
|
||||||
|
return fetch(query, cashFlowRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CashFlow> getForAdjustments(Long adjId, Adjustmentcashflowtype adjustmentcashflowtype) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(CASH_FLOW)
|
||||||
|
.where(CASH_FLOW.OBJ_ID.eq(adjId).and(CASH_FLOW.OBJ_TYPE.eq(Paymentchangetype.adjustment)).and(CASH_FLOW.ADJ_FLOW_TYPE.eq(adjustmentcashflowtype)));
|
||||||
|
return fetch(query, cashFlowRowMapper);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.invoicing.iface.InvoiceCartDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.InvoiceCart;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.InvoiceCartRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.tables.InvoiceCart.INVOICE_CART;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class InvoiceCartDaoImpl extends AbstractGenericDao implements InvoiceCartDao {
|
||||||
|
|
||||||
|
private final RowMapper<InvoiceCart> invoiceCartRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public InvoiceCartDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
invoiceCartRowMapper = new RecordRowMapper<>(INVOICE_CART, InvoiceCart.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save(List<InvoiceCart> invoiceCartList) throws DaoException {
|
||||||
|
//todo: Batch insert
|
||||||
|
for (InvoiceCart invoiceCart : invoiceCartList) {
|
||||||
|
InvoiceCartRecord record = getDslContext().newRecord(INVOICE_CART, invoiceCart);
|
||||||
|
Query query = getDslContext().insertInto(INVOICE_CART).set(record);
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<InvoiceCart> getByInvId(Long invId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(INVOICE_CART)
|
||||||
|
.where(INVOICE_CART.INV_ID.eq(invId));
|
||||||
|
return fetch(query, invoiceCartRowMapper);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.invoicing.iface.InvoiceDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Invoice;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.InvoiceRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.jooq.impl.DSL;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.ADJUSTMENT;
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.PAYMENT;
|
||||||
|
import static com.rbkmoney.newway.domain.tables.Invoice.INVOICE;
|
||||||
|
import static com.rbkmoney.newway.domain.tables.Refund.REFUND;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class InvoiceDaoImpl extends AbstractGenericDao implements InvoiceDao {
|
||||||
|
|
||||||
|
private final RowMapper<Invoice> invoiceRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public InvoiceDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
invoiceRowMapper = new RecordRowMapper<>(INVOICE, Invoice.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long getLastEventId() throws DaoException {
|
||||||
|
Query query = getDslContext().select(DSL.max(DSL.field("event_id"))).from(
|
||||||
|
getDslContext().select(INVOICE.EVENT_ID.max().as("event_id")).from(INVOICE)
|
||||||
|
.unionAll(getDslContext().select(PAYMENT.EVENT_ID.max().as("event_id")).from(PAYMENT))
|
||||||
|
.unionAll(getDslContext().select(REFUND.EVENT_ID.max().as("event_id")).from(REFUND))
|
||||||
|
.unionAll(getDslContext().select(ADJUSTMENT.EVENT_ID.max().as("event_id")).from(ADJUSTMENT))
|
||||||
|
);
|
||||||
|
return fetchOne(query, Long.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Invoice invoice) throws DaoException {
|
||||||
|
InvoiceRecord invoiceRecord = getDslContext().newRecord(INVOICE, invoice);
|
||||||
|
Query query = getDslContext().insertInto(INVOICE).set(invoiceRecord).returning(INVOICE.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Invoice get(String invoiceId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(INVOICE)
|
||||||
|
.where(INVOICE.INVOICE_ID.eq(invoiceId).and(INVOICE.CURRENT));
|
||||||
|
return fetchOne(query, invoiceRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String invoiceId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(INVOICE).set(INVOICE.CURRENT, false)
|
||||||
|
.where(INVOICE.INVOICE_ID.eq(invoiceId).and(INVOICE.CURRENT));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.invoicing.iface.PaymentDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Payment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PaymentRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.PAYMENT;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class PaymentDaoImpl extends AbstractGenericDao implements PaymentDao {
|
||||||
|
|
||||||
|
private final RowMapper<Payment> paymentRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public PaymentDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
paymentRowMapper = new RecordRowMapper<>(PAYMENT, Payment.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Payment payment) throws DaoException {
|
||||||
|
PaymentRecord paymentRecord = getDslContext().newRecord(PAYMENT, payment);
|
||||||
|
Query query = getDslContext().insertInto(PAYMENT).set(paymentRecord).returning(PAYMENT.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Payment get(String invoiceId, String paymentId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(PAYMENT)
|
||||||
|
.where(PAYMENT.INVOICE_ID.eq(invoiceId).and(PAYMENT.PAYMENT_ID.eq(paymentId)).and(PAYMENT.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, paymentRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String invoiceId, String paymentId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(PAYMENT).set(PAYMENT.CURRENT, false)
|
||||||
|
.where(PAYMENT.INVOICE_ID.eq(invoiceId).and(PAYMENT.PAYMENT_ID.eq(paymentId).and(PAYMENT.CURRENT)));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
package com.rbkmoney.newway.dao.invoicing.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.invoicing.iface.RefundDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Refund;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.RefundRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.tables.Refund.REFUND;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class RefundDaoImpl extends AbstractGenericDao implements RefundDao {
|
||||||
|
|
||||||
|
private final RowMapper<Refund> refundRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public RefundDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
refundRowMapper = new RecordRowMapper<>(REFUND, Refund.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Refund refund) throws DaoException {
|
||||||
|
RefundRecord record = getDslContext().newRecord(REFUND, refund);
|
||||||
|
Query query = getDslContext().insertInto(REFUND).set(record).returning(REFUND.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Refund get(String invoiceId, String paymentId, String refundId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(REFUND)
|
||||||
|
.where(REFUND.INVOICE_ID.eq(invoiceId)
|
||||||
|
.and(REFUND.PAYMENT_ID.eq(paymentId))
|
||||||
|
.and(REFUND.REFUND_ID.eq(refundId))
|
||||||
|
.and(REFUND.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, refundRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String invoiceId, String paymentId, String refundId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(REFUND).set(REFUND.CURRENT, false)
|
||||||
|
.where(REFUND.INVOICE_ID.eq(invoiceId)
|
||||||
|
.and(REFUND.PAYMENT_ID.eq(paymentId)
|
||||||
|
.and(REFUND.REFUND_ID.eq(refundId))
|
||||||
|
.and(REFUND.CURRENT)));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.ContractAdjustment;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ContractAdjustmentDao extends GenericDao {
|
||||||
|
void save(List<ContractAdjustment> contractAdjustmentList) throws DaoException;
|
||||||
|
List<ContractAdjustment> getByCntrctId(Long cntrctId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Contract;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface ContractDao extends GenericDao {
|
||||||
|
Long save(Contract contract) throws DaoException;
|
||||||
|
Contract get(String contractId) throws DaoException;
|
||||||
|
void update(String contractId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Contractor;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface ContractorDao extends GenericDao {
|
||||||
|
Long save(Contractor contractor) throws DaoException;
|
||||||
|
Contractor get(String contractorId) throws DaoException;
|
||||||
|
void update(String contractorId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Party;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface PartyDao extends GenericDao {
|
||||||
|
Long getLastEventId() throws DaoException;
|
||||||
|
Long save(Party party) throws DaoException;
|
||||||
|
Party get(String partyId) throws DaoException;
|
||||||
|
void update(String partyId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.PayoutTool;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface PayoutToolDao extends GenericDao {
|
||||||
|
void save(List<PayoutTool> payoutToolList) throws DaoException;
|
||||||
|
List<PayoutTool> getByCntrctId(Long cntrctId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Shop;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface ShopDao extends GenericDao {
|
||||||
|
Long save(Shop shop) throws DaoException;
|
||||||
|
Shop get(String shopId) throws DaoException;
|
||||||
|
void update(String shopId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.party.iface.ContractAdjustmentDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.ContractAdjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractAdjustmentRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.CONTRACT_ADJUSTMENT;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class ContractAdjustmentDaoImpl extends AbstractGenericDao implements ContractAdjustmentDao {
|
||||||
|
|
||||||
|
private final RowMapper<ContractAdjustment> contractAdjustmentRowMapper;
|
||||||
|
|
||||||
|
public ContractAdjustmentDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
this.contractAdjustmentRowMapper = new RecordRowMapper<>(CONTRACT_ADJUSTMENT, ContractAdjustment.class);;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save(List<ContractAdjustment> contractAdjustmentList) throws DaoException {
|
||||||
|
//todo: Batch insert
|
||||||
|
for (ContractAdjustment contractAdjustment : contractAdjustmentList) {
|
||||||
|
ContractAdjustmentRecord record = getDslContext().newRecord(CONTRACT_ADJUSTMENT, contractAdjustment);
|
||||||
|
Query query = getDslContext().insertInto(CONTRACT_ADJUSTMENT).set(record);
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ContractAdjustment> getByCntrctId(Long cntrctId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(CONTRACT_ADJUSTMENT)
|
||||||
|
.where(CONTRACT_ADJUSTMENT.CNTRCT_ID.eq(cntrctId));
|
||||||
|
return fetch(query, contractAdjustmentRowMapper);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.party.iface.ContractDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Contract;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.CONTRACT;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class ContractDaoImpl extends AbstractGenericDao implements ContractDao {
|
||||||
|
|
||||||
|
private final RowMapper<Contract> contractRowMapper;
|
||||||
|
|
||||||
|
public ContractDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
contractRowMapper = new RecordRowMapper<>(CONTRACT, Contract.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Contract contract) throws DaoException {
|
||||||
|
ContractRecord record = getDslContext().newRecord(CONTRACT, contract);
|
||||||
|
Query query = getDslContext().insertInto(CONTRACT).set(record).returning(CONTRACT.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Contract get(String contractId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(CONTRACT)
|
||||||
|
.where(CONTRACT.CONTRACT_ID.eq(contractId).and(CONTRACT.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, contractRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String contractId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(CONTRACT).set(CONTRACT.CURRENT, false)
|
||||||
|
.where(CONTRACT.CONTRACT_ID.eq(contractId).and(CONTRACT.CURRENT));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.party.iface.ContractorDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Contractor;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractorRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.CONTRACTOR;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class ContractorDaoImpl extends AbstractGenericDao implements ContractorDao {
|
||||||
|
|
||||||
|
private final RowMapper<Contractor> contractorRowMapper;
|
||||||
|
|
||||||
|
public ContractorDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
contractorRowMapper = new RecordRowMapper<>(CONTRACTOR, Contractor.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Contractor contractor) throws DaoException {
|
||||||
|
ContractorRecord record = getDslContext().newRecord(CONTRACTOR, contractor);
|
||||||
|
Query query = getDslContext().insertInto(CONTRACTOR).set(record).returning(CONTRACTOR.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Contractor get(String contractorId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(CONTRACTOR)
|
||||||
|
.where(CONTRACTOR.CONTRACTOR_ID.eq(contractorId).and(CONTRACTOR.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, contractorRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String contractId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(CONTRACTOR).set(CONTRACTOR.CURRENT, false)
|
||||||
|
.where(CONTRACTOR.CONTRACTOR_ID.eq(contractId).and(CONTRACTOR.CURRENT));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.party.iface.PartyDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Party;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PartyRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.jooq.impl.DSL;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.*;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class PartyDaoImpl extends AbstractGenericDao implements PartyDao {
|
||||||
|
|
||||||
|
private final RowMapper<Party> partyRowMapper;
|
||||||
|
|
||||||
|
public PartyDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
partyRowMapper = new RecordRowMapper<>(PARTY, Party.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long getLastEventId() throws DaoException {
|
||||||
|
Query query = getDslContext().select(DSL.max(DSL.field("event_id"))).from(
|
||||||
|
getDslContext().select(PARTY.EVENT_ID.max().as("event_id")).from(PARTY)
|
||||||
|
.unionAll(getDslContext().select(CONTRACT.EVENT_ID.max().as("event_id")).from(CONTRACT))
|
||||||
|
.unionAll(getDslContext().select(CONTRACTOR.EVENT_ID.max().as("event_id")).from(CONTRACTOR))
|
||||||
|
.unionAll(getDslContext().select(SHOP.EVENT_ID.max().as("event_id")).from(SHOP))
|
||||||
|
);
|
||||||
|
return fetchOne(query, Long.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Party party) throws DaoException {
|
||||||
|
PartyRecord record = getDslContext().newRecord(PARTY, party);
|
||||||
|
Query query = getDslContext().insertInto(PARTY).set(record).returning(PARTY.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Party get(String partyId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(PARTY)
|
||||||
|
.where(PARTY.PARTY_ID.eq(partyId).and(PARTY.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, partyRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String partyId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(PARTY).set(PARTY.CURRENT, false)
|
||||||
|
.where(PARTY.PARTY_ID.eq(partyId).and(PARTY.CURRENT));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.party.iface.PayoutToolDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.PayoutTool;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutToolRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.PAYOUT_TOOL;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class PayoutToolDaoImpl extends AbstractGenericDao implements PayoutToolDao {
|
||||||
|
|
||||||
|
private final RowMapper<PayoutTool> payoutToolRowMapper;
|
||||||
|
|
||||||
|
public PayoutToolDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
this.payoutToolRowMapper = new RecordRowMapper<>(PAYOUT_TOOL, PayoutTool.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save(List<PayoutTool> payoutToolList) throws DaoException {
|
||||||
|
//todo: Batch insert
|
||||||
|
for (PayoutTool payoutTool : payoutToolList) {
|
||||||
|
PayoutToolRecord record = getDslContext().newRecord(PAYOUT_TOOL, payoutTool);
|
||||||
|
Query query = getDslContext().insertInto(PAYOUT_TOOL).set(record);
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PayoutTool> getByCntrctId(Long cntrctId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(PAYOUT_TOOL)
|
||||||
|
.where(PAYOUT_TOOL.CNTRCT_ID.eq(cntrctId));
|
||||||
|
return fetch(query, payoutToolRowMapper);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.rbkmoney.newway.dao.party.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.party.iface.ShopDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Shop;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ShopRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.SHOP;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class ShopDaoImpl extends AbstractGenericDao implements ShopDao {
|
||||||
|
|
||||||
|
private final RowMapper<Shop> shopRowMapper;
|
||||||
|
|
||||||
|
public ShopDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
shopRowMapper = new RecordRowMapper<>(SHOP, Shop.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Shop shop) throws DaoException {
|
||||||
|
ShopRecord record = getDslContext().newRecord(SHOP, shop);
|
||||||
|
Query query = getDslContext().insertInto(SHOP).set(record).returning(SHOP.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Shop get(String shopId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(SHOP)
|
||||||
|
.where(SHOP.SHOP_ID.eq(shopId).and(SHOP.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, shopRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String shopId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(SHOP).set(SHOP.CURRENT, false)
|
||||||
|
.where(SHOP.SHOP_ID.eq(shopId).and(SHOP.CURRENT));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.rbkmoney.newway.dao.payout.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Payout;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
public interface PayoutDao extends GenericDao {
|
||||||
|
|
||||||
|
Long getLastEventId() throws DaoException;
|
||||||
|
|
||||||
|
Long save(Payout payout) throws DaoException;
|
||||||
|
|
||||||
|
Payout get(String payoutId) throws DaoException;
|
||||||
|
|
||||||
|
void update(String payoutId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.rbkmoney.newway.dao.payout.iface;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.iface.GenericDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.PayoutSummary;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface PayoutSummaryDao extends GenericDao {
|
||||||
|
|
||||||
|
void save(List<PayoutSummary> payoutSummaryList) throws DaoException;
|
||||||
|
|
||||||
|
List<PayoutSummary> getByPytId(Long pytId) throws DaoException;
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
package com.rbkmoney.newway.dao.payout.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.payout.iface.PayoutDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.Payout;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.jooq.impl.DSL;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.jdbc.support.GeneratedKeyHolder;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.PAYOUT;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class PayoutDaoImpl extends AbstractGenericDao implements PayoutDao {
|
||||||
|
|
||||||
|
private final RowMapper<Payout> payoutRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public PayoutDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
payoutRowMapper = new RecordRowMapper<>(PAYOUT, Payout.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long getLastEventId() throws DaoException {
|
||||||
|
Query query = getDslContext().select(DSL.max(DSL.field("event_id"))).from(
|
||||||
|
getDslContext().select(PAYOUT.EVENT_ID.max().as("event_id")).from(PAYOUT)
|
||||||
|
);
|
||||||
|
return fetchOne(query, Long.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long save(Payout payout) throws DaoException {
|
||||||
|
PayoutRecord payoutRecord = getDslContext().newRecord(PAYOUT, payout);
|
||||||
|
Query query = getDslContext().insertInto(PAYOUT).set(payoutRecord).returning(PAYOUT.ID);
|
||||||
|
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
|
||||||
|
executeOneWithReturn(query, keyHolder);
|
||||||
|
return keyHolder.getKey().longValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Payout get(String payoutId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(PAYOUT)
|
||||||
|
.where(PAYOUT.PAYOUT_ID.eq(payoutId).and(PAYOUT.CURRENT));
|
||||||
|
|
||||||
|
return fetchOne(query, payoutRowMapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(String payoutId) throws DaoException {
|
||||||
|
Query query = getDslContext().update(PAYOUT).set(PAYOUT.CURRENT, false)
|
||||||
|
.where(PAYOUT.PAYOUT_ID.eq(payoutId).and(PAYOUT.CURRENT));
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
package com.rbkmoney.newway.dao.payout.impl;
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
|
||||||
|
import com.rbkmoney.newway.dao.common.mapper.RecordRowMapper;
|
||||||
|
import com.rbkmoney.newway.dao.payout.iface.PayoutSummaryDao;
|
||||||
|
import com.rbkmoney.newway.domain.tables.pojos.PayoutSummary;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutSummaryRecord;
|
||||||
|
import com.rbkmoney.newway.exception.DaoException;
|
||||||
|
import org.jooq.Query;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.rbkmoney.newway.domain.Tables.PAYOUT_SUMMARY;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class PayoutSummaryDaoImpl extends AbstractGenericDao implements PayoutSummaryDao {
|
||||||
|
|
||||||
|
private final RowMapper<PayoutSummary> payoutSummaryRowMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public PayoutSummaryDaoImpl(DataSource dataSource) {
|
||||||
|
super(dataSource);
|
||||||
|
payoutSummaryRowMapper = new RecordRowMapper<>(PAYOUT_SUMMARY, PayoutSummary.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save(List<PayoutSummary> payoutSummaryList) throws DaoException {
|
||||||
|
//todo: Batch insert
|
||||||
|
for (PayoutSummary payoutSummary : payoutSummaryList) {
|
||||||
|
PayoutSummaryRecord record = getDslContext().newRecord(PAYOUT_SUMMARY, payoutSummary);
|
||||||
|
Query query = getDslContext().insertInto(PAYOUT_SUMMARY).set(record);
|
||||||
|
executeOne(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PayoutSummary> getByPytId(Long pytId) throws DaoException {
|
||||||
|
Query query = getDslContext().selectFrom(PAYOUT_SUMMARY)
|
||||||
|
.where(PAYOUT_SUMMARY.PYT_ID.eq(pytId));
|
||||||
|
return fetch(query, payoutSummaryRowMapper);
|
||||||
|
}
|
||||||
|
}
|
60
src/main/java/com/rbkmoney/newway/domain/DefaultCatalog.java
Normal file
60
src/main/java/com/rbkmoney/newway/domain/DefaultCatalog.java
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.impl.CatalogImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class DefaultCatalog extends CatalogImpl {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 895553025;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code></code>
|
||||||
|
*/
|
||||||
|
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The schema <code>nw</code>.
|
||||||
|
*/
|
||||||
|
public final Nw NW = com.rbkmoney.newway.domain.Nw.NW;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No further instances allowed
|
||||||
|
*/
|
||||||
|
private DefaultCatalog() {
|
||||||
|
super("");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final List<Schema> getSchemas() {
|
||||||
|
List result = new ArrayList();
|
||||||
|
result.addAll(getSchemas0());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final List<Schema> getSchemas0() {
|
||||||
|
return Arrays.<Schema>asList(
|
||||||
|
Nw.NW);
|
||||||
|
}
|
||||||
|
}
|
149
src/main/java/com/rbkmoney/newway/domain/Keys.java
Normal file
149
src/main/java/com/rbkmoney/newway/domain/Keys.java
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.tables.Adjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.CashFlow;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contract;
|
||||||
|
import com.rbkmoney.newway.domain.tables.ContractAdjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contractor;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Invoice;
|
||||||
|
import com.rbkmoney.newway.domain.tables.InvoiceCart;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Party;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Payment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Payout;
|
||||||
|
import com.rbkmoney.newway.domain.tables.PayoutSummary;
|
||||||
|
import com.rbkmoney.newway.domain.tables.PayoutTool;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Refund;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Shop;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.AdjustmentRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.CashFlowRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractAdjustmentRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractorRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.InvoiceCartRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.InvoiceRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PartyRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PaymentRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutSummaryRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutToolRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.RefundRecord;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ShopRecord;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.ForeignKey;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.AbstractKeys;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A class modelling foreign key relationships between tables of the <code>nw</code>
|
||||||
|
* schema
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Keys {
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// IDENTITY definitions
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
public static final Identity<AdjustmentRecord, Long> IDENTITY_ADJUSTMENT = Identities0.IDENTITY_ADJUSTMENT;
|
||||||
|
public static final Identity<CashFlowRecord, Long> IDENTITY_CASH_FLOW = Identities0.IDENTITY_CASH_FLOW;
|
||||||
|
public static final Identity<ContractRecord, Long> IDENTITY_CONTRACT = Identities0.IDENTITY_CONTRACT;
|
||||||
|
public static final Identity<ContractAdjustmentRecord, Long> IDENTITY_CONTRACT_ADJUSTMENT = Identities0.IDENTITY_CONTRACT_ADJUSTMENT;
|
||||||
|
public static final Identity<ContractorRecord, Long> IDENTITY_CONTRACTOR = Identities0.IDENTITY_CONTRACTOR;
|
||||||
|
public static final Identity<InvoiceRecord, Long> IDENTITY_INVOICE = Identities0.IDENTITY_INVOICE;
|
||||||
|
public static final Identity<InvoiceCartRecord, Long> IDENTITY_INVOICE_CART = Identities0.IDENTITY_INVOICE_CART;
|
||||||
|
public static final Identity<PartyRecord, Long> IDENTITY_PARTY = Identities0.IDENTITY_PARTY;
|
||||||
|
public static final Identity<PaymentRecord, Long> IDENTITY_PAYMENT = Identities0.IDENTITY_PAYMENT;
|
||||||
|
public static final Identity<PayoutRecord, Long> IDENTITY_PAYOUT = Identities0.IDENTITY_PAYOUT;
|
||||||
|
public static final Identity<PayoutSummaryRecord, Long> IDENTITY_PAYOUT_SUMMARY = Identities0.IDENTITY_PAYOUT_SUMMARY;
|
||||||
|
public static final Identity<PayoutToolRecord, Long> IDENTITY_PAYOUT_TOOL = Identities0.IDENTITY_PAYOUT_TOOL;
|
||||||
|
public static final Identity<RefundRecord, Long> IDENTITY_REFUND = Identities0.IDENTITY_REFUND;
|
||||||
|
public static final Identity<ShopRecord, Long> IDENTITY_SHOP = Identities0.IDENTITY_SHOP;
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// UNIQUE and PRIMARY KEY definitions
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
public static final UniqueKey<AdjustmentRecord> ADJUSTMENT_PKEY = UniqueKeys0.ADJUSTMENT_PKEY;
|
||||||
|
public static final UniqueKey<CashFlowRecord> CASH_FLOW_PKEY = UniqueKeys0.CASH_FLOW_PKEY;
|
||||||
|
public static final UniqueKey<ContractRecord> CONTRACT_PKEY = UniqueKeys0.CONTRACT_PKEY;
|
||||||
|
public static final UniqueKey<ContractAdjustmentRecord> CONTRACT_ADJUSTMENT_PKEY = UniqueKeys0.CONTRACT_ADJUSTMENT_PKEY;
|
||||||
|
public static final UniqueKey<ContractorRecord> CONTRACTOR_PKEY = UniqueKeys0.CONTRACTOR_PKEY;
|
||||||
|
public static final UniqueKey<InvoiceRecord> INVOICE_PKEY = UniqueKeys0.INVOICE_PKEY;
|
||||||
|
public static final UniqueKey<InvoiceCartRecord> INVOICE_CART_PKEY = UniqueKeys0.INVOICE_CART_PKEY;
|
||||||
|
public static final UniqueKey<PartyRecord> PARTY_PKEY = UniqueKeys0.PARTY_PKEY;
|
||||||
|
public static final UniqueKey<PaymentRecord> PAYMENT_PKEY = UniqueKeys0.PAYMENT_PKEY;
|
||||||
|
public static final UniqueKey<PayoutRecord> PAYOUT_PKEY = UniqueKeys0.PAYOUT_PKEY;
|
||||||
|
public static final UniqueKey<PayoutSummaryRecord> PAYOUT_SUMMARY_PKEY = UniqueKeys0.PAYOUT_SUMMARY_PKEY;
|
||||||
|
public static final UniqueKey<PayoutToolRecord> PAYOUT_TOOL_PKEY = UniqueKeys0.PAYOUT_TOOL_PKEY;
|
||||||
|
public static final UniqueKey<RefundRecord> REFUND_PKEY = UniqueKeys0.REFUND_PKEY;
|
||||||
|
public static final UniqueKey<ShopRecord> SHOP_PKEY = UniqueKeys0.SHOP_PKEY;
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// FOREIGN KEY definitions
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
public static final ForeignKey<ContractAdjustmentRecord, ContractRecord> CONTRACT_ADJUSTMENT__FK_ADJUSTMENT_TO_CONTRACT = ForeignKeys0.CONTRACT_ADJUSTMENT__FK_ADJUSTMENT_TO_CONTRACT;
|
||||||
|
public static final ForeignKey<InvoiceCartRecord, InvoiceRecord> INVOICE_CART__FK_CART_TO_INVOICE = ForeignKeys0.INVOICE_CART__FK_CART_TO_INVOICE;
|
||||||
|
public static final ForeignKey<PayoutSummaryRecord, PayoutRecord> PAYOUT_SUMMARY__FK_SUMMARY_TO_PAYOUT = ForeignKeys0.PAYOUT_SUMMARY__FK_SUMMARY_TO_PAYOUT;
|
||||||
|
public static final ForeignKey<PayoutToolRecord, ContractRecord> PAYOUT_TOOL__FK_PAYOUT_TOOL_TO_CONTRACT = ForeignKeys0.PAYOUT_TOOL__FK_PAYOUT_TOOL_TO_CONTRACT;
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// [#1459] distribute members to avoid static initialisers > 64kb
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
private static class Identities0 extends AbstractKeys {
|
||||||
|
public static Identity<AdjustmentRecord, Long> IDENTITY_ADJUSTMENT = createIdentity(Adjustment.ADJUSTMENT, Adjustment.ADJUSTMENT.ID);
|
||||||
|
public static Identity<CashFlowRecord, Long> IDENTITY_CASH_FLOW = createIdentity(CashFlow.CASH_FLOW, CashFlow.CASH_FLOW.ID);
|
||||||
|
public static Identity<ContractRecord, Long> IDENTITY_CONTRACT = createIdentity(Contract.CONTRACT, Contract.CONTRACT.ID);
|
||||||
|
public static Identity<ContractAdjustmentRecord, Long> IDENTITY_CONTRACT_ADJUSTMENT = createIdentity(ContractAdjustment.CONTRACT_ADJUSTMENT, ContractAdjustment.CONTRACT_ADJUSTMENT.ID);
|
||||||
|
public static Identity<ContractorRecord, Long> IDENTITY_CONTRACTOR = createIdentity(Contractor.CONTRACTOR, Contractor.CONTRACTOR.ID);
|
||||||
|
public static Identity<InvoiceRecord, Long> IDENTITY_INVOICE = createIdentity(Invoice.INVOICE, Invoice.INVOICE.ID);
|
||||||
|
public static Identity<InvoiceCartRecord, Long> IDENTITY_INVOICE_CART = createIdentity(InvoiceCart.INVOICE_CART, InvoiceCart.INVOICE_CART.ID);
|
||||||
|
public static Identity<PartyRecord, Long> IDENTITY_PARTY = createIdentity(Party.PARTY, Party.PARTY.ID);
|
||||||
|
public static Identity<PaymentRecord, Long> IDENTITY_PAYMENT = createIdentity(Payment.PAYMENT, Payment.PAYMENT.ID);
|
||||||
|
public static Identity<PayoutRecord, Long> IDENTITY_PAYOUT = createIdentity(Payout.PAYOUT, Payout.PAYOUT.ID);
|
||||||
|
public static Identity<PayoutSummaryRecord, Long> IDENTITY_PAYOUT_SUMMARY = createIdentity(PayoutSummary.PAYOUT_SUMMARY, PayoutSummary.PAYOUT_SUMMARY.ID);
|
||||||
|
public static Identity<PayoutToolRecord, Long> IDENTITY_PAYOUT_TOOL = createIdentity(PayoutTool.PAYOUT_TOOL, PayoutTool.PAYOUT_TOOL.ID);
|
||||||
|
public static Identity<RefundRecord, Long> IDENTITY_REFUND = createIdentity(Refund.REFUND, Refund.REFUND.ID);
|
||||||
|
public static Identity<ShopRecord, Long> IDENTITY_SHOP = createIdentity(Shop.SHOP, Shop.SHOP.ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class UniqueKeys0 extends AbstractKeys {
|
||||||
|
public static final UniqueKey<AdjustmentRecord> ADJUSTMENT_PKEY = createUniqueKey(Adjustment.ADJUSTMENT, "adjustment_pkey", Adjustment.ADJUSTMENT.ID);
|
||||||
|
public static final UniqueKey<CashFlowRecord> CASH_FLOW_PKEY = createUniqueKey(CashFlow.CASH_FLOW, "cash_flow_pkey", CashFlow.CASH_FLOW.ID);
|
||||||
|
public static final UniqueKey<ContractRecord> CONTRACT_PKEY = createUniqueKey(Contract.CONTRACT, "contract_pkey", Contract.CONTRACT.ID);
|
||||||
|
public static final UniqueKey<ContractAdjustmentRecord> CONTRACT_ADJUSTMENT_PKEY = createUniqueKey(ContractAdjustment.CONTRACT_ADJUSTMENT, "contract_adjustment_pkey", ContractAdjustment.CONTRACT_ADJUSTMENT.ID);
|
||||||
|
public static final UniqueKey<ContractorRecord> CONTRACTOR_PKEY = createUniqueKey(Contractor.CONTRACTOR, "contractor_pkey", Contractor.CONTRACTOR.ID);
|
||||||
|
public static final UniqueKey<InvoiceRecord> INVOICE_PKEY = createUniqueKey(Invoice.INVOICE, "invoice_pkey", Invoice.INVOICE.ID);
|
||||||
|
public static final UniqueKey<InvoiceCartRecord> INVOICE_CART_PKEY = createUniqueKey(InvoiceCart.INVOICE_CART, "invoice_cart_pkey", InvoiceCart.INVOICE_CART.ID);
|
||||||
|
public static final UniqueKey<PartyRecord> PARTY_PKEY = createUniqueKey(Party.PARTY, "party_pkey", Party.PARTY.ID);
|
||||||
|
public static final UniqueKey<PaymentRecord> PAYMENT_PKEY = createUniqueKey(Payment.PAYMENT, "payment_pkey", Payment.PAYMENT.ID);
|
||||||
|
public static final UniqueKey<PayoutRecord> PAYOUT_PKEY = createUniqueKey(Payout.PAYOUT, "payout_pkey", Payout.PAYOUT.ID);
|
||||||
|
public static final UniqueKey<PayoutSummaryRecord> PAYOUT_SUMMARY_PKEY = createUniqueKey(PayoutSummary.PAYOUT_SUMMARY, "payout_summary_pkey", PayoutSummary.PAYOUT_SUMMARY.ID);
|
||||||
|
public static final UniqueKey<PayoutToolRecord> PAYOUT_TOOL_PKEY = createUniqueKey(PayoutTool.PAYOUT_TOOL, "payout_tool_pkey", PayoutTool.PAYOUT_TOOL.ID);
|
||||||
|
public static final UniqueKey<RefundRecord> REFUND_PKEY = createUniqueKey(Refund.REFUND, "refund_pkey", Refund.REFUND.ID);
|
||||||
|
public static final UniqueKey<ShopRecord> SHOP_PKEY = createUniqueKey(Shop.SHOP, "shop_pkey", Shop.SHOP.ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class ForeignKeys0 extends AbstractKeys {
|
||||||
|
public static final ForeignKey<ContractAdjustmentRecord, ContractRecord> CONTRACT_ADJUSTMENT__FK_ADJUSTMENT_TO_CONTRACT = createForeignKey(com.rbkmoney.newway.domain.Keys.CONTRACT_PKEY, ContractAdjustment.CONTRACT_ADJUSTMENT, "contract_adjustment__fk_adjustment_to_contract", ContractAdjustment.CONTRACT_ADJUSTMENT.CNTRCT_ID);
|
||||||
|
public static final ForeignKey<InvoiceCartRecord, InvoiceRecord> INVOICE_CART__FK_CART_TO_INVOICE = createForeignKey(com.rbkmoney.newway.domain.Keys.INVOICE_PKEY, InvoiceCart.INVOICE_CART, "invoice_cart__fk_cart_to_invoice", InvoiceCart.INVOICE_CART.INV_ID);
|
||||||
|
public static final ForeignKey<PayoutSummaryRecord, PayoutRecord> PAYOUT_SUMMARY__FK_SUMMARY_TO_PAYOUT = createForeignKey(com.rbkmoney.newway.domain.Keys.PAYOUT_PKEY, PayoutSummary.PAYOUT_SUMMARY, "payout_summary__fk_summary_to_payout", PayoutSummary.PAYOUT_SUMMARY.PYT_ID);
|
||||||
|
public static final ForeignKey<PayoutToolRecord, ContractRecord> PAYOUT_TOOL__FK_PAYOUT_TOOL_TO_CONTRACT = createForeignKey(com.rbkmoney.newway.domain.Keys.CONTRACT_PKEY, PayoutTool.PAYOUT_TOOL, "payout_tool__fk_payout_tool_to_contract", PayoutTool.PAYOUT_TOOL.CNTRCT_ID);
|
||||||
|
}
|
||||||
|
}
|
189
src/main/java/com/rbkmoney/newway/domain/Nw.java
Normal file
189
src/main/java/com/rbkmoney/newway/domain/Nw.java
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.tables.Adjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.CashFlow;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contract;
|
||||||
|
import com.rbkmoney.newway.domain.tables.ContractAdjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contractor;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Invoice;
|
||||||
|
import com.rbkmoney.newway.domain.tables.InvoiceCart;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Party;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Payment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Payout;
|
||||||
|
import com.rbkmoney.newway.domain.tables.PayoutSummary;
|
||||||
|
import com.rbkmoney.newway.domain.tables.PayoutTool;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Refund;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Shop;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.Sequence;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.impl.SchemaImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Nw extends SchemaImpl {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 113080781;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw</code>
|
||||||
|
*/
|
||||||
|
public static final Nw NW = new Nw();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.adjustment</code>.
|
||||||
|
*/
|
||||||
|
public final Adjustment ADJUSTMENT = com.rbkmoney.newway.domain.tables.Adjustment.ADJUSTMENT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.cash_flow</code>.
|
||||||
|
*/
|
||||||
|
public final CashFlow CASH_FLOW = com.rbkmoney.newway.domain.tables.CashFlow.CASH_FLOW;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.contract</code>.
|
||||||
|
*/
|
||||||
|
public final Contract CONTRACT = com.rbkmoney.newway.domain.tables.Contract.CONTRACT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.contract_adjustment</code>.
|
||||||
|
*/
|
||||||
|
public final ContractAdjustment CONTRACT_ADJUSTMENT = com.rbkmoney.newway.domain.tables.ContractAdjustment.CONTRACT_ADJUSTMENT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.contractor</code>.
|
||||||
|
*/
|
||||||
|
public final Contractor CONTRACTOR = com.rbkmoney.newway.domain.tables.Contractor.CONTRACTOR;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.invoice</code>.
|
||||||
|
*/
|
||||||
|
public final Invoice INVOICE = com.rbkmoney.newway.domain.tables.Invoice.INVOICE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.invoice_cart</code>.
|
||||||
|
*/
|
||||||
|
public final InvoiceCart INVOICE_CART = com.rbkmoney.newway.domain.tables.InvoiceCart.INVOICE_CART;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.party</code>.
|
||||||
|
*/
|
||||||
|
public final Party PARTY = com.rbkmoney.newway.domain.tables.Party.PARTY;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payment</code>.
|
||||||
|
*/
|
||||||
|
public final Payment PAYMENT = com.rbkmoney.newway.domain.tables.Payment.PAYMENT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payout</code>.
|
||||||
|
*/
|
||||||
|
public final Payout PAYOUT = com.rbkmoney.newway.domain.tables.Payout.PAYOUT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payout_summary</code>.
|
||||||
|
*/
|
||||||
|
public final PayoutSummary PAYOUT_SUMMARY = com.rbkmoney.newway.domain.tables.PayoutSummary.PAYOUT_SUMMARY;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payout_tool</code>.
|
||||||
|
*/
|
||||||
|
public final PayoutTool PAYOUT_TOOL = com.rbkmoney.newway.domain.tables.PayoutTool.PAYOUT_TOOL;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.refund</code>.
|
||||||
|
*/
|
||||||
|
public final Refund REFUND = com.rbkmoney.newway.domain.tables.Refund.REFUND;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.shop</code>.
|
||||||
|
*/
|
||||||
|
public final Shop SHOP = com.rbkmoney.newway.domain.tables.Shop.SHOP;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No further instances allowed
|
||||||
|
*/
|
||||||
|
private Nw() {
|
||||||
|
super("nw", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return DefaultCatalog.DEFAULT_CATALOG;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final List<Sequence<?>> getSequences() {
|
||||||
|
List result = new ArrayList();
|
||||||
|
result.addAll(getSequences0());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final List<Sequence<?>> getSequences0() {
|
||||||
|
return Arrays.<Sequence<?>>asList(
|
||||||
|
Sequences.ADJUSTMENT_ID_SEQ,
|
||||||
|
Sequences.CASH_FLOW_ID_SEQ,
|
||||||
|
Sequences.CONTRACT_ADJUSTMENT_ID_SEQ,
|
||||||
|
Sequences.CONTRACT_ID_SEQ,
|
||||||
|
Sequences.CONTRACTOR_ID_SEQ,
|
||||||
|
Sequences.INVOICE_CART_ID_SEQ,
|
||||||
|
Sequences.INVOICE_ID_SEQ,
|
||||||
|
Sequences.PARTY_ID_SEQ,
|
||||||
|
Sequences.PAYMENT_ID_SEQ,
|
||||||
|
Sequences.PAYOUT_ID_SEQ,
|
||||||
|
Sequences.PAYOUT_SUMMARY_ID_SEQ,
|
||||||
|
Sequences.PAYOUT_TOOL_ID_SEQ,
|
||||||
|
Sequences.REFUND_ID_SEQ,
|
||||||
|
Sequences.SHOP_ID_SEQ);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final List<Table<?>> getTables() {
|
||||||
|
List result = new ArrayList();
|
||||||
|
result.addAll(getTables0());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final List<Table<?>> getTables0() {
|
||||||
|
return Arrays.<Table<?>>asList(
|
||||||
|
Adjustment.ADJUSTMENT,
|
||||||
|
CashFlow.CASH_FLOW,
|
||||||
|
Contract.CONTRACT,
|
||||||
|
ContractAdjustment.CONTRACT_ADJUSTMENT,
|
||||||
|
Contractor.CONTRACTOR,
|
||||||
|
Invoice.INVOICE,
|
||||||
|
InvoiceCart.INVOICE_CART,
|
||||||
|
Party.PARTY,
|
||||||
|
Payment.PAYMENT,
|
||||||
|
Payout.PAYOUT,
|
||||||
|
PayoutSummary.PAYOUT_SUMMARY,
|
||||||
|
PayoutTool.PAYOUT_TOOL,
|
||||||
|
Refund.REFUND,
|
||||||
|
Shop.SHOP);
|
||||||
|
}
|
||||||
|
}
|
95
src/main/java/com/rbkmoney/newway/domain/Sequences.java
Normal file
95
src/main/java/com/rbkmoney/newway/domain/Sequences.java
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Sequence;
|
||||||
|
import org.jooq.impl.SequenceImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience access to all sequences in nw
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Sequences {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.adjustment_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> ADJUSTMENT_ID_SEQ = new SequenceImpl<Long>("adjustment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.cash_flow_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> CASH_FLOW_ID_SEQ = new SequenceImpl<Long>("cash_flow_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.contract_adjustment_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> CONTRACT_ADJUSTMENT_ID_SEQ = new SequenceImpl<Long>("contract_adjustment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.contract_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> CONTRACT_ID_SEQ = new SequenceImpl<Long>("contract_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.contractor_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> CONTRACTOR_ID_SEQ = new SequenceImpl<Long>("contractor_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.invoice_cart_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> INVOICE_CART_ID_SEQ = new SequenceImpl<Long>("invoice_cart_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.invoice_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> INVOICE_ID_SEQ = new SequenceImpl<Long>("invoice_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.party_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> PARTY_ID_SEQ = new SequenceImpl<Long>("party_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.payment_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> PAYMENT_ID_SEQ = new SequenceImpl<Long>("payment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.payout_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> PAYOUT_ID_SEQ = new SequenceImpl<Long>("payout_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.payout_summary_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> PAYOUT_SUMMARY_ID_SEQ = new SequenceImpl<Long>("payout_summary_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.payout_tool_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> PAYOUT_TOOL_ID_SEQ = new SequenceImpl<Long>("payout_tool_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.refund_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> REFUND_ID_SEQ = new SequenceImpl<Long>("refund_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The sequence <code>nw.shop_id_seq</code>
|
||||||
|
*/
|
||||||
|
public static final Sequence<Long> SHOP_ID_SEQ = new SequenceImpl<Long>("shop_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
|
||||||
|
}
|
107
src/main/java/com/rbkmoney/newway/domain/Tables.java
Normal file
107
src/main/java/com/rbkmoney/newway/domain/Tables.java
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.tables.Adjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.CashFlow;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contract;
|
||||||
|
import com.rbkmoney.newway.domain.tables.ContractAdjustment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contractor;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Invoice;
|
||||||
|
import com.rbkmoney.newway.domain.tables.InvoiceCart;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Party;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Payment;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Payout;
|
||||||
|
import com.rbkmoney.newway.domain.tables.PayoutSummary;
|
||||||
|
import com.rbkmoney.newway.domain.tables.PayoutTool;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Refund;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Shop;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience access to all tables in nw
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Tables {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.adjustment</code>.
|
||||||
|
*/
|
||||||
|
public static final Adjustment ADJUSTMENT = com.rbkmoney.newway.domain.tables.Adjustment.ADJUSTMENT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.cash_flow</code>.
|
||||||
|
*/
|
||||||
|
public static final CashFlow CASH_FLOW = com.rbkmoney.newway.domain.tables.CashFlow.CASH_FLOW;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.contract</code>.
|
||||||
|
*/
|
||||||
|
public static final Contract CONTRACT = com.rbkmoney.newway.domain.tables.Contract.CONTRACT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.contract_adjustment</code>.
|
||||||
|
*/
|
||||||
|
public static final ContractAdjustment CONTRACT_ADJUSTMENT = com.rbkmoney.newway.domain.tables.ContractAdjustment.CONTRACT_ADJUSTMENT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.contractor</code>.
|
||||||
|
*/
|
||||||
|
public static final Contractor CONTRACTOR = com.rbkmoney.newway.domain.tables.Contractor.CONTRACTOR;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.invoice</code>.
|
||||||
|
*/
|
||||||
|
public static final Invoice INVOICE = com.rbkmoney.newway.domain.tables.Invoice.INVOICE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.invoice_cart</code>.
|
||||||
|
*/
|
||||||
|
public static final InvoiceCart INVOICE_CART = com.rbkmoney.newway.domain.tables.InvoiceCart.INVOICE_CART;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.party</code>.
|
||||||
|
*/
|
||||||
|
public static final Party PARTY = com.rbkmoney.newway.domain.tables.Party.PARTY;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payment</code>.
|
||||||
|
*/
|
||||||
|
public static final Payment PAYMENT = com.rbkmoney.newway.domain.tables.Payment.PAYMENT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payout</code>.
|
||||||
|
*/
|
||||||
|
public static final Payout PAYOUT = com.rbkmoney.newway.domain.tables.Payout.PAYOUT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payout_summary</code>.
|
||||||
|
*/
|
||||||
|
public static final PayoutSummary PAYOUT_SUMMARY = com.rbkmoney.newway.domain.tables.PayoutSummary.PAYOUT_SUMMARY;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.payout_tool</code>.
|
||||||
|
*/
|
||||||
|
public static final PayoutTool PAYOUT_TOOL = com.rbkmoney.newway.domain.tables.PayoutTool.PAYOUT_TOOL;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.refund</code>.
|
||||||
|
*/
|
||||||
|
public static final Refund REFUND = com.rbkmoney.newway.domain.tables.Refund.REFUND;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>nw.shop</code>.
|
||||||
|
*/
|
||||||
|
public static final Shop SHOP = com.rbkmoney.newway.domain.tables.Shop.SHOP;
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Adjustmentcashflowtype implements EnumType {
|
||||||
|
|
||||||
|
new_cash_flow("new_cash_flow"),
|
||||||
|
|
||||||
|
old_cash_flow_inverse("old_cash_flow_inverse");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Adjustmentcashflowtype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "adjustmentcashflowtype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Adjustmentstatus implements EnumType {
|
||||||
|
|
||||||
|
pending("pending"),
|
||||||
|
|
||||||
|
captured("captured"),
|
||||||
|
|
||||||
|
cancelled("cancelled");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Adjustmentstatus(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "adjustmentstatus";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
70
src/main/java/com/rbkmoney/newway/domain/enums/Blocking.java
Normal file
70
src/main/java/com/rbkmoney/newway/domain/enums/Blocking.java
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Blocking implements EnumType {
|
||||||
|
|
||||||
|
unblocked("unblocked"),
|
||||||
|
|
||||||
|
blocked("blocked");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Blocking(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "blocking";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Cashflowaccount implements EnumType {
|
||||||
|
|
||||||
|
merchant("merchant"),
|
||||||
|
|
||||||
|
provider("provider"),
|
||||||
|
|
||||||
|
system("system"),
|
||||||
|
|
||||||
|
external("external"),
|
||||||
|
|
||||||
|
wallet("wallet");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Cashflowaccount(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "cashflowaccount";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Contractortype implements EnumType {
|
||||||
|
|
||||||
|
registered_user("registered_user"),
|
||||||
|
|
||||||
|
legal_entity("legal_entity"),
|
||||||
|
|
||||||
|
private_entity("private_entity");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Contractortype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "contractortype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Contractstatus implements EnumType {
|
||||||
|
|
||||||
|
active("active"),
|
||||||
|
|
||||||
|
terminated("terminated"),
|
||||||
|
|
||||||
|
expired("expired");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Contractstatus(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "contractstatus";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Invoicestatus implements EnumType {
|
||||||
|
|
||||||
|
unpaid("unpaid"),
|
||||||
|
|
||||||
|
paid("paid"),
|
||||||
|
|
||||||
|
cancelled("cancelled"),
|
||||||
|
|
||||||
|
fulfilled("fulfilled");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Invoicestatus(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "invoicestatus";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Legalentity implements EnumType {
|
||||||
|
|
||||||
|
russian_legal_entity("russian_legal_entity"),
|
||||||
|
|
||||||
|
international_legal_entity("international_legal_entity");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Legalentity(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "legalentity";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Payertype implements EnumType {
|
||||||
|
|
||||||
|
payment_resource("payment_resource"),
|
||||||
|
|
||||||
|
customer("customer");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Payertype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "payertype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Paymentchangetype implements EnumType {
|
||||||
|
|
||||||
|
payment("payment"),
|
||||||
|
|
||||||
|
refund("refund"),
|
||||||
|
|
||||||
|
adjustment("adjustment"),
|
||||||
|
|
||||||
|
payout("payout");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Paymentchangetype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "paymentchangetype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Paymentflowtype implements EnumType {
|
||||||
|
|
||||||
|
instant("instant"),
|
||||||
|
|
||||||
|
hold("hold");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Paymentflowtype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "paymentflowtype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,78 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Paymentstatus implements EnumType {
|
||||||
|
|
||||||
|
pending("pending"),
|
||||||
|
|
||||||
|
processed("processed"),
|
||||||
|
|
||||||
|
captured("captured"),
|
||||||
|
|
||||||
|
cancelled("cancelled"),
|
||||||
|
|
||||||
|
refunded("refunded"),
|
||||||
|
|
||||||
|
failed("failed");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Paymentstatus(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "paymentstatus";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Paymenttooltype implements EnumType {
|
||||||
|
|
||||||
|
bank_card("bank_card"),
|
||||||
|
|
||||||
|
payment_terminal("payment_terminal"),
|
||||||
|
|
||||||
|
digital_wallet("digital_wallet");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Paymenttooltype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "paymenttooltype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Payoutaccounttype implements EnumType {
|
||||||
|
|
||||||
|
russian_payout_account("russian_payout_account"),
|
||||||
|
|
||||||
|
international_payout_account("international_payout_account");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Payoutaccounttype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "payoutaccounttype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Payoutpaidstatusdetails implements EnumType {
|
||||||
|
|
||||||
|
card_details("card_details"),
|
||||||
|
|
||||||
|
account_details("account_details");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Payoutpaidstatusdetails(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "payoutpaidstatusdetails";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Payoutstatus implements EnumType {
|
||||||
|
|
||||||
|
unpaid("unpaid"),
|
||||||
|
|
||||||
|
paid("paid"),
|
||||||
|
|
||||||
|
cancelled("cancelled"),
|
||||||
|
|
||||||
|
confirmed("confirmed");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Payoutstatus(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "payoutstatus";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Payouttoolinfo implements EnumType {
|
||||||
|
|
||||||
|
russian_bank_account("russian_bank_account"),
|
||||||
|
|
||||||
|
international_bank_account("international_bank_account");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Payouttoolinfo(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "payouttoolinfo";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Payouttype implements EnumType {
|
||||||
|
|
||||||
|
bank_card("bank_card"),
|
||||||
|
|
||||||
|
bank_account("bank_account");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Payouttype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "payouttype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Privateentity implements EnumType {
|
||||||
|
|
||||||
|
russian_private_entity("russian_private_entity");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Privateentity(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "privateentity";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Refundstatus implements EnumType {
|
||||||
|
|
||||||
|
pending("pending"),
|
||||||
|
|
||||||
|
succeeded("succeeded"),
|
||||||
|
|
||||||
|
failed("failed");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Refundstatus(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "refundstatus";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Representativedocument implements EnumType {
|
||||||
|
|
||||||
|
articles_of_association("articles_of_association"),
|
||||||
|
|
||||||
|
power_of_attorney("power_of_attorney"),
|
||||||
|
|
||||||
|
expired("expired");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Representativedocument(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "representativedocument";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Riskscore implements EnumType {
|
||||||
|
|
||||||
|
low("low"),
|
||||||
|
|
||||||
|
high("high"),
|
||||||
|
|
||||||
|
fatal("fatal");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Riskscore(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "riskscore";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Suspension implements EnumType {
|
||||||
|
|
||||||
|
active("active"),
|
||||||
|
|
||||||
|
suspended("suspended");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Suspension(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "suspension";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
72
src/main/java/com/rbkmoney/newway/domain/enums/Usertype.java
Normal file
72
src/main/java/com/rbkmoney/newway/domain/enums/Usertype.java
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Catalog;
|
||||||
|
import org.jooq.EnumType;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public enum Usertype implements EnumType {
|
||||||
|
|
||||||
|
internal_user("internal_user"),
|
||||||
|
|
||||||
|
external_user("external_user"),
|
||||||
|
|
||||||
|
service_user("service_user");
|
||||||
|
|
||||||
|
private final String literal;
|
||||||
|
|
||||||
|
private Usertype(String literal) {
|
||||||
|
this.literal = literal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Catalog getCatalog() {
|
||||||
|
return getSchema() == null ? null : getSchema().getCatalog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "usertype";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getLiteral() {
|
||||||
|
return literal;
|
||||||
|
}
|
||||||
|
}
|
204
src/main/java/com/rbkmoney/newway/domain/tables/Adjustment.java
Normal file
204
src/main/java/com/rbkmoney/newway/domain/tables/Adjustment.java
Normal file
@ -0,0 +1,204 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentstatus;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.AdjustmentRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Adjustment extends TableImpl<AdjustmentRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 305192427;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.adjustment</code>
|
||||||
|
*/
|
||||||
|
public static final Adjustment ADJUSTMENT = new Adjustment();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<AdjustmentRecord> getRecordType() {
|
||||||
|
return AdjustmentRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.adjustment_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.domain_revision</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, Long> DOMAIN_REVISION = createField("domain_revision", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.adjustment_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, String> ADJUSTMENT_ID = createField("adjustment_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.payment_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, String> PAYMENT_ID = createField("payment_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.invoice_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, String> INVOICE_ID = createField("invoice_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, String> SHOP_ID = createField("shop_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.status</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, Adjustmentstatus> STATUS = createField("status", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Adjustmentstatus.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.status_captured_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, LocalDateTime> STATUS_CAPTURED_AT = createField("status_captured_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.status_cancelled_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, LocalDateTime> STATUS_CANCELLED_AT = createField("status_cancelled_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, String> REASON = createField("reason", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.adjustment.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<AdjustmentRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.adjustment</code> table reference
|
||||||
|
*/
|
||||||
|
public Adjustment() {
|
||||||
|
this("adjustment", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.adjustment</code> table reference
|
||||||
|
*/
|
||||||
|
public Adjustment(String alias) {
|
||||||
|
this(alias, ADJUSTMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Adjustment(String alias, Table<AdjustmentRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Adjustment(String alias, Table<AdjustmentRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<AdjustmentRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_ADJUSTMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<AdjustmentRecord> getPrimaryKey() {
|
||||||
|
return Keys.ADJUSTMENT_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<AdjustmentRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<AdjustmentRecord>>asList(Keys.ADJUSTMENT_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Adjustment as(String alias) {
|
||||||
|
return new Adjustment(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Adjustment rename(String name) {
|
||||||
|
return new Adjustment(name, null);
|
||||||
|
}
|
||||||
|
}
|
190
src/main/java/com/rbkmoney/newway/domain/tables/CashFlow.java
Normal file
190
src/main/java/com/rbkmoney/newway/domain/tables/CashFlow.java
Normal file
@ -0,0 +1,190 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentcashflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Cashflowaccount;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentchangetype;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.CashFlowRecord;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class CashFlow extends TableImpl<CashFlowRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1910466688;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.cash_flow</code>
|
||||||
|
*/
|
||||||
|
public static final CashFlow CASH_FLOW = new CashFlow();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<CashFlowRecord> getRecordType() {
|
||||||
|
return CashFlowRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.cash_flow_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.obj_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Long> OBJ_ID = createField("obj_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.obj_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Paymentchangetype> OBJ_TYPE = createField("obj_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Paymentchangetype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.adj_flow_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Adjustmentcashflowtype> ADJ_FLOW_TYPE = createField("adj_flow_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Adjustmentcashflowtype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.source_account_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Cashflowaccount> SOURCE_ACCOUNT_TYPE = createField("source_account_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Cashflowaccount.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.source_account_type_value</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, String> SOURCE_ACCOUNT_TYPE_VALUE = createField("source_account_type_value", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.source_account_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Long> SOURCE_ACCOUNT_ID = createField("source_account_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.destination_account_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Cashflowaccount> DESTINATION_ACCOUNT_TYPE = createField("destination_account_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Cashflowaccount.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.destination_account_type_value</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, String> DESTINATION_ACCOUNT_TYPE_VALUE = createField("destination_account_type_value", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.destination_account_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Long> DESTINATION_ACCOUNT_ID = createField("destination_account_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.amount</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, Long> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.cash_flow.details</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<CashFlowRecord, String> DETAILS = createField("details", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.cash_flow</code> table reference
|
||||||
|
*/
|
||||||
|
public CashFlow() {
|
||||||
|
this("cash_flow", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.cash_flow</code> table reference
|
||||||
|
*/
|
||||||
|
public CashFlow(String alias) {
|
||||||
|
this(alias, CASH_FLOW);
|
||||||
|
}
|
||||||
|
|
||||||
|
private CashFlow(String alias, Table<CashFlowRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private CashFlow(String alias, Table<CashFlowRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<CashFlowRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_CASH_FLOW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<CashFlowRecord> getPrimaryKey() {
|
||||||
|
return Keys.CASH_FLOW_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<CashFlowRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<CashFlowRecord>>asList(Keys.CASH_FLOW_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlow as(String alias) {
|
||||||
|
return new CashFlow(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlow rename(String name) {
|
||||||
|
return new CashFlow(name, null);
|
||||||
|
}
|
||||||
|
}
|
250
src/main/java/com/rbkmoney/newway/domain/tables/Contract.java
Normal file
250
src/main/java/com/rbkmoney/newway/domain/tables/Contract.java
Normal file
@ -0,0 +1,250 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Contractstatus;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Representativedocument;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Contract extends TableImpl<ContractRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1587651656;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.contract</code>
|
||||||
|
*/
|
||||||
|
public static final Contract CONTRACT = new Contract();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<ContractRecord> getRecordType() {
|
||||||
|
return ContractRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.contract_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.contract_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> CONTRACT_ID = createField("contract_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.payment_institution_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Integer> PAYMENT_INSTITUTION_ID = createField("payment_institution_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.valid_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> VALID_SINCE = createField("valid_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.valid_until</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> VALID_UNTIL = createField("valid_until", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.status</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Contractstatus> STATUS = createField("status", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Contractstatus.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.status_terminated_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> STATUS_TERMINATED_AT = createField("status_terminated_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.terms_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Integer> TERMS_ID = createField("terms_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.legal_agreement_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> LEGAL_AGREEMENT_SIGNED_AT = createField("legal_agreement_signed_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> LEGAL_AGREEMENT_ID = createField("legal_agreement_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.legal_agreement_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> LEGAL_AGREEMENT_VALID_UNTIL = createField("legal_agreement_valid_until", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_schedule_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Integer> REPORT_ACT_SCHEDULE_ID = createField("report_act_schedule_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_signer_position</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> REPORT_ACT_SIGNER_POSITION = createField("report_act_signer_position", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_signer_full_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> REPORT_ACT_SIGNER_FULL_NAME = createField("report_act_signer_full_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_signer_document</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Representativedocument> REPORT_ACT_SIGNER_DOCUMENT = createField("report_act_signer_document", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Representativedocument.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_signer_doc_power_of_attorney_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> REPORT_ACT_SIGNER_DOC_POWER_OF_ATTORNEY_SIGNED_AT = createField("report_act_signer_doc_power_of_attorney_signed_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_signer_doc_power_of_attorney_legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> REPORT_ACT_SIGNER_DOC_POWER_OF_ATTORNEY_LEGAL_AGREEMENT_ID = createField("report_act_signer_doc_power_of_attorney_legal_agreement_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.report_act_signer_doc_power_of_attorney_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> REPORT_ACT_SIGNER_DOC_POWER_OF_ATTORNEY_VALID_UNTIL = createField("report_act_signer_doc_power_of_attorney_valid_until", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.contractor_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, String> CONTRACTOR_ID = createField("contractor_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.contract</code> table reference
|
||||||
|
*/
|
||||||
|
public Contract() {
|
||||||
|
this("contract", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.contract</code> table reference
|
||||||
|
*/
|
||||||
|
public Contract(String alias) {
|
||||||
|
this(alias, CONTRACT);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Contract(String alias, Table<ContractRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Contract(String alias, Table<ContractRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<ContractRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_CONTRACT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<ContractRecord> getPrimaryKey() {
|
||||||
|
return Keys.CONTRACT_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<ContractRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<ContractRecord>>asList(Keys.CONTRACT_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Contract as(String alias) {
|
||||||
|
return new Contract(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Contract rename(String name) {
|
||||||
|
return new Contract(name, null);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,167 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractAdjustmentRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.ForeignKey;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class ContractAdjustment extends TableImpl<ContractAdjustmentRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -2080711086;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.contract_adjustment</code>
|
||||||
|
*/
|
||||||
|
public static final ContractAdjustment CONTRACT_ADJUSTMENT = new ContractAdjustment();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<ContractAdjustmentRecord> getRecordType() {
|
||||||
|
return ContractAdjustmentRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.contract_adjustment_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.cntrct_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, Long> CNTRCT_ID = createField("cntrct_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.contract_adjustment_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, String> CONTRACT_ADJUSTMENT_ID = createField("contract_adjustment_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.valid_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, LocalDateTime> VALID_SINCE = createField("valid_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.valid_until</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, LocalDateTime> VALID_UNTIL = createField("valid_until", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contract_adjustment.terms_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractAdjustmentRecord, Integer> TERMS_ID = createField("terms_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.contract_adjustment</code> table reference
|
||||||
|
*/
|
||||||
|
public ContractAdjustment() {
|
||||||
|
this("contract_adjustment", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.contract_adjustment</code> table reference
|
||||||
|
*/
|
||||||
|
public ContractAdjustment(String alias) {
|
||||||
|
this(alias, CONTRACT_ADJUSTMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
private ContractAdjustment(String alias, Table<ContractAdjustmentRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private ContractAdjustment(String alias, Table<ContractAdjustmentRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<ContractAdjustmentRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_CONTRACT_ADJUSTMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<ContractAdjustmentRecord> getPrimaryKey() {
|
||||||
|
return Keys.CONTRACT_ADJUSTMENT_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<ContractAdjustmentRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<ContractAdjustmentRecord>>asList(Keys.CONTRACT_ADJUSTMENT_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ForeignKey<ContractAdjustmentRecord, ?>> getReferences() {
|
||||||
|
return Arrays.<ForeignKey<ContractAdjustmentRecord, ?>>asList(Keys.CONTRACT_ADJUSTMENT__FK_ADJUSTMENT_TO_CONTRACT);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustment as(String alias) {
|
||||||
|
return new ContractAdjustment(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustment rename(String name) {
|
||||||
|
return new ContractAdjustment(name, null);
|
||||||
|
}
|
||||||
|
}
|
296
src/main/java/com/rbkmoney/newway/domain/tables/Contractor.java
Normal file
296
src/main/java/com/rbkmoney/newway/domain/tables/Contractor.java
Normal file
@ -0,0 +1,296 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Contractortype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Legalentity;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Privateentity;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ContractorRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Contractor extends TableImpl<ContractorRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 906862139;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.contractor</code>
|
||||||
|
*/
|
||||||
|
public static final Contractor CONTRACTOR = new Contractor();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<ContractorRecord> getRecordType() {
|
||||||
|
return ContractorRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.contractor_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.contractor_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> CONTRACTOR_ID = createField("contractor_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, Contractortype> TYPE = createField("type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Contractortype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.identificational_level</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> IDENTIFICATIONAL_LEVEL = createField("identificational_level", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.registered_user_email</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> REGISTERED_USER_EMAIL = createField("registered_user_email", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.legal_entity</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, Legalentity> LEGAL_ENTITY = createField("legal_entity", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Legalentity.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_registered_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_REGISTERED_NAME = createField("russian_legal_entity_registered_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_REGISTERED_NUMBER = createField("russian_legal_entity_registered_number", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_inn</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_INN = createField("russian_legal_entity_inn", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_ACTUAL_ADDRESS = createField("russian_legal_entity_actual_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_post_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_POST_ADDRESS = createField("russian_legal_entity_post_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_representative_position</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_REPRESENTATIVE_POSITION = createField("russian_legal_entity_representative_position", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_representative_full_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_REPRESENTATIVE_FULL_NAME = createField("russian_legal_entity_representative_full_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_representative_document</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_REPRESENTATIVE_DOCUMENT = createField("russian_legal_entity_representative_document", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_russian_bank_account</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_RUSSIAN_BANK_ACCOUNT = createField("russian_legal_entity_russian_bank_account", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_russian_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_RUSSIAN_BANK_NAME = createField("russian_legal_entity_russian_bank_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_russian_bank_post_account</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_RUSSIAN_BANK_POST_ACCOUNT = createField("russian_legal_entity_russian_bank_post_account", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_legal_entity_russian_bank_bik</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_LEGAL_ENTITY_RUSSIAN_BANK_BIK = createField("russian_legal_entity_russian_bank_bik", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.international_legal_entity_legal_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> INTERNATIONAL_LEGAL_ENTITY_LEGAL_NAME = createField("international_legal_entity_legal_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.international_legal_entity_trading_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> INTERNATIONAL_LEGAL_ENTITY_TRADING_NAME = createField("international_legal_entity_trading_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.international_legal_entity_registered_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> INTERNATIONAL_LEGAL_ENTITY_REGISTERED_ADDRESS = createField("international_legal_entity_registered_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.international_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> INTERNATIONAL_LEGAL_ENTITY_ACTUAL_ADDRESS = createField("international_legal_entity_actual_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.international_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> INTERNATIONAL_LEGAL_ENTITY_REGISTERED_NUMBER = createField("international_legal_entity_registered_number", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.private_entity</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, Privateentity> PRIVATE_ENTITY = createField("private_entity", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Privateentity.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_private_entity_first_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_PRIVATE_ENTITY_FIRST_NAME = createField("russian_private_entity_first_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_private_entity_second_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_PRIVATE_ENTITY_SECOND_NAME = createField("russian_private_entity_second_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_private_entity_middle_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_PRIVATE_ENTITY_MIDDLE_NAME = createField("russian_private_entity_middle_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_private_entity_phone_number</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_PRIVATE_ENTITY_PHONE_NUMBER = createField("russian_private_entity_phone_number", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.russian_private_entity_email</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, String> RUSSIAN_PRIVATE_ENTITY_EMAIL = createField("russian_private_entity_email", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.contractor.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ContractorRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.contractor</code> table reference
|
||||||
|
*/
|
||||||
|
public Contractor() {
|
||||||
|
this("contractor", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.contractor</code> table reference
|
||||||
|
*/
|
||||||
|
public Contractor(String alias) {
|
||||||
|
this(alias, CONTRACTOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Contractor(String alias, Table<ContractorRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Contractor(String alias, Table<ContractorRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<ContractorRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_CONTRACTOR;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<ContractorRecord> getPrimaryKey() {
|
||||||
|
return Keys.CONTRACTOR_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<ContractorRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<ContractorRecord>>asList(Keys.CONTRACTOR_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Contractor as(String alias) {
|
||||||
|
return new Contractor(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Contractor rename(String name) {
|
||||||
|
return new Contractor(name, null);
|
||||||
|
}
|
||||||
|
}
|
224
src/main/java/com/rbkmoney/newway/domain/tables/Invoice.java
Normal file
224
src/main/java/com/rbkmoney/newway/domain/tables/Invoice.java
Normal file
@ -0,0 +1,224 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Invoicestatus;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.InvoiceRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Invoice extends TableImpl<InvoiceRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1600395966;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.invoice</code>
|
||||||
|
*/
|
||||||
|
public static final Invoice INVOICE = new Invoice();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<InvoiceRecord> getRecordType() {
|
||||||
|
return InvoiceRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.invoice_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.invoice_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> INVOICE_ID = createField("invoice_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> SHOP_ID = createField("shop_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.party_revision</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, Long> PARTY_REVISION = createField("party_revision", org.jooq.impl.SQLDataType.BIGINT, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.status</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, Invoicestatus> STATUS = createField("status", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Invoicestatus.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.status_cancelled_details</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> STATUS_CANCELLED_DETAILS = createField("status_cancelled_details", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.status_fulfilled_details</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> STATUS_FULFILLED_DETAILS = createField("status_fulfilled_details", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.details_product</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> DETAILS_PRODUCT = createField("details_product", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.details_description</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> DETAILS_DESCRIPTION = createField("details_description", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.due</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, LocalDateTime> DUE = createField("due", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.amount</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, Long> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.context</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, byte[]> CONTEXT = createField("context", org.jooq.impl.SQLDataType.BLOB, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.template_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, String> TEMPLATE_ID = createField("template_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.invoice</code> table reference
|
||||||
|
*/
|
||||||
|
public Invoice() {
|
||||||
|
this("invoice", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.invoice</code> table reference
|
||||||
|
*/
|
||||||
|
public Invoice(String alias) {
|
||||||
|
this(alias, INVOICE);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Invoice(String alias, Table<InvoiceRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Invoice(String alias, Table<InvoiceRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<InvoiceRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_INVOICE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<InvoiceRecord> getPrimaryKey() {
|
||||||
|
return Keys.INVOICE_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<InvoiceRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<InvoiceRecord>>asList(Keys.INVOICE_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Invoice as(String alias) {
|
||||||
|
return new Invoice(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Invoice rename(String name) {
|
||||||
|
return new Invoice(name, null);
|
||||||
|
}
|
||||||
|
}
|
166
src/main/java/com/rbkmoney/newway/domain/tables/InvoiceCart.java
Normal file
166
src/main/java/com/rbkmoney/newway/domain/tables/InvoiceCart.java
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.InvoiceCartRecord;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.ForeignKey;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class InvoiceCart extends TableImpl<InvoiceCartRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1100823167;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.invoice_cart</code>
|
||||||
|
*/
|
||||||
|
public static final InvoiceCart INVOICE_CART = new InvoiceCart();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<InvoiceCartRecord> getRecordType() {
|
||||||
|
return InvoiceCartRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.invoice_cart_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.inv_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, Long> INV_ID = createField("inv_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.product</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, String> PRODUCT = createField("product", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.quantity</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, Integer> QUANTITY = createField("quantity", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.amount</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, Long> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.invoice_cart.metadata_json</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<InvoiceCartRecord, String> METADATA_JSON = createField("metadata_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.invoice_cart</code> table reference
|
||||||
|
*/
|
||||||
|
public InvoiceCart() {
|
||||||
|
this("invoice_cart", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.invoice_cart</code> table reference
|
||||||
|
*/
|
||||||
|
public InvoiceCart(String alias) {
|
||||||
|
this(alias, INVOICE_CART);
|
||||||
|
}
|
||||||
|
|
||||||
|
private InvoiceCart(String alias, Table<InvoiceCartRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private InvoiceCart(String alias, Table<InvoiceCartRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<InvoiceCartRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_INVOICE_CART;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<InvoiceCartRecord> getPrimaryKey() {
|
||||||
|
return Keys.INVOICE_CART_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<InvoiceCartRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<InvoiceCartRecord>>asList(Keys.INVOICE_CART_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ForeignKey<InvoiceCartRecord, ?>> getReferences() {
|
||||||
|
return Arrays.<ForeignKey<InvoiceCartRecord, ?>>asList(Keys.INVOICE_CART__FK_CART_TO_INVOICE);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public InvoiceCart as(String alias) {
|
||||||
|
return new InvoiceCart(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public InvoiceCart rename(String name) {
|
||||||
|
return new InvoiceCart(name, null);
|
||||||
|
}
|
||||||
|
}
|
225
src/main/java/com/rbkmoney/newway/domain/tables/Party.java
Normal file
225
src/main/java/com/rbkmoney/newway/domain/tables/Party.java
Normal file
@ -0,0 +1,225 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Blocking;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Suspension;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PartyRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Party extends TableImpl<PartyRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1694050587;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.party</code>
|
||||||
|
*/
|
||||||
|
public static final Party PARTY = new Party();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<PartyRecord> getRecordType() {
|
||||||
|
return PartyRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.party_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.contact_info_email</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, String> CONTACT_INFO_EMAIL = createField("contact_info_email", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.blocking</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, Blocking> BLOCKING = createField("blocking", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Blocking.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.blocking_unblocked_reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, String> BLOCKING_UNBLOCKED_REASON = createField("blocking_unblocked_reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.blocking_unblocked_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> BLOCKING_UNBLOCKED_SINCE = createField("blocking_unblocked_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.blocking_blocked_reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, String> BLOCKING_BLOCKED_REASON = createField("blocking_blocked_reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.blocking_blocked_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> BLOCKING_BLOCKED_SINCE = createField("blocking_blocked_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.suspension</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, Suspension> SUSPENSION = createField("suspension", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Suspension.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.suspension_active_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> SUSPENSION_ACTIVE_SINCE = createField("suspension_active_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.suspension_suspended_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> SUSPENSION_SUSPENDED_SINCE = createField("suspension_suspended_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.revision</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, Long> REVISION = createField("revision", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.revision_changed_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> REVISION_CHANGED_AT = createField("revision_changed_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.party_meta_set_ns</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, String> PARTY_META_SET_NS = createField("party_meta_set_ns", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.party_meta_set_data_json</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, String> PARTY_META_SET_DATA_JSON = createField("party_meta_set_data_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.party.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PartyRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.party</code> table reference
|
||||||
|
*/
|
||||||
|
public Party() {
|
||||||
|
this("party", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.party</code> table reference
|
||||||
|
*/
|
||||||
|
public Party(String alias) {
|
||||||
|
this(alias, PARTY);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Party(String alias, Table<PartyRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Party(String alias, Table<PartyRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<PartyRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_PARTY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<PartyRecord> getPrimaryKey() {
|
||||||
|
return Keys.PARTY_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<PartyRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<PartyRecord>>asList(Keys.PARTY_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Party as(String alias) {
|
||||||
|
return new Party(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Party rename(String name) {
|
||||||
|
return new Party(name, null);
|
||||||
|
}
|
||||||
|
}
|
338
src/main/java/com/rbkmoney/newway/domain/tables/Payment.java
Normal file
338
src/main/java/com/rbkmoney/newway/domain/tables/Payment.java
Normal file
@ -0,0 +1,338 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payertype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentstatus;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymenttooltype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Riskscore;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PaymentRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Payment extends TableImpl<PaymentRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1512605995;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.payment</code>
|
||||||
|
*/
|
||||||
|
public static final Payment PAYMENT = new Payment();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<PaymentRecord> getRecordType() {
|
||||||
|
return PaymentRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payment_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payment_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYMENT_ID = createField("payment_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.invoice_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> INVOICE_ID = createField("invoice_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> SHOP_ID = createField("shop_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.domain_revision</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Long> DOMAIN_REVISION = createField("domain_revision", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.status</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Paymentstatus> STATUS = createField("status", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Paymentstatus.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.status_cancelled_reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> STATUS_CANCELLED_REASON = createField("status_cancelled_reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.status_captured_reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> STATUS_CAPTURED_REASON = createField("status_captured_reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.status_failed_failure</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> STATUS_FAILED_FAILURE = createField("status_failed_failure", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.amount</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Long> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Payertype> PAYER_TYPE = createField("payer_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Payertype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_payment_tool_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Paymenttooltype> PAYER_PAYMENT_TOOL_TYPE = createField("payer_payment_tool_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Paymenttooltype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_bank_card_token</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_BANK_CARD_TOKEN = createField("payer_bank_card_token", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_bank_card_payment_system</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_BANK_CARD_PAYMENT_SYSTEM = createField("payer_bank_card_payment_system", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_bank_card_bin</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_BANK_CARD_BIN = createField("payer_bank_card_bin", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_bank_card_masked_pan</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_BANK_CARD_MASKED_PAN = createField("payer_bank_card_masked_pan", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_bank_card_token_provider</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_BANK_CARD_TOKEN_PROVIDER = createField("payer_bank_card_token_provider", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_payment_terminal_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_PAYMENT_TERMINAL_TYPE = createField("payer_payment_terminal_type", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_digital_wallet_provider</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_DIGITAL_WALLET_PROVIDER = createField("payer_digital_wallet_provider", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_digital_wallet_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_DIGITAL_WALLET_ID = createField("payer_digital_wallet_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_payment_session_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_PAYMENT_SESSION_ID = createField("payer_payment_session_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_ip_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_IP_ADDRESS = createField("payer_ip_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_fingerprint</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_FINGERPRINT = createField("payer_fingerprint", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_phone_number</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_PHONE_NUMBER = createField("payer_phone_number", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_email</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_EMAIL = createField("payer_email", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_customer_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_CUSTOMER_ID = createField("payer_customer_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_customer_binding_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_CUSTOMER_BINDING_ID = createField("payer_customer_binding_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payer_customer_rec_payment_tool_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYER_CUSTOMER_REC_PAYMENT_TOOL_ID = createField("payer_customer_rec_payment_tool_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.context</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, byte[]> CONTEXT = createField("context", org.jooq.impl.SQLDataType.BLOB, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payment_flow_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Paymentflowtype> PAYMENT_FLOW_TYPE = createField("payment_flow_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Paymentflowtype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payment_flow_on_hold_expiration</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, String> PAYMENT_FLOW_ON_HOLD_EXPIRATION = createField("payment_flow_on_hold_expiration", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.payment_flow_held_until</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, LocalDateTime> PAYMENT_FLOW_HELD_UNTIL = createField("payment_flow_held_until", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.risk_score</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Riskscore> RISK_SCORE = createField("risk_score", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Riskscore.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.route_provider_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Integer> ROUTE_PROVIDER_ID = createField("route_provider_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.route_terminal_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Integer> ROUTE_TERMINAL_ID = createField("route_terminal_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payment.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PaymentRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.payment</code> table reference
|
||||||
|
*/
|
||||||
|
public Payment() {
|
||||||
|
this("payment", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.payment</code> table reference
|
||||||
|
*/
|
||||||
|
public Payment(String alias) {
|
||||||
|
this(alias, PAYMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Payment(String alias, Table<PaymentRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Payment(String alias, Table<PaymentRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<PaymentRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_PAYMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<PaymentRecord> getPrimaryKey() {
|
||||||
|
return Keys.PAYMENT_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<PaymentRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<PaymentRecord>>asList(Keys.PAYMENT_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Payment as(String alias) {
|
||||||
|
return new Payment(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Payment rename(String name) {
|
||||||
|
return new Payment(name, null);
|
||||||
|
}
|
||||||
|
}
|
368
src/main/java/com/rbkmoney/newway/domain/tables/Payout.java
Normal file
368
src/main/java/com/rbkmoney/newway/domain/tables/Payout.java
Normal file
@ -0,0 +1,368 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payoutaccounttype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payoutpaidstatusdetails;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payoutstatus;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payouttype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Usertype;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Payout extends TableImpl<PayoutRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -369751764;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.payout</code>
|
||||||
|
*/
|
||||||
|
public static final Payout PAYOUT = new Payout();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<PayoutRecord> getRecordType() {
|
||||||
|
return PayoutRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payout_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.payout_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> PAYOUT_ID = createField("payout_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> SHOP_ID = createField("shop_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.contract_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> CONTRACT_ID = createField("contract_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Payoutstatus> STATUS = createField("status", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Payoutstatus.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_paid_details</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Payoutpaidstatusdetails> STATUS_PAID_DETAILS = createField("status_paid_details", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Payoutpaidstatusdetails.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_paid_details_card_provider_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> STATUS_PAID_DETAILS_CARD_PROVIDER_NAME = createField("status_paid_details_card_provider_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_paid_details_card_provider_transaction_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> STATUS_PAID_DETAILS_CARD_PROVIDER_TRANSACTION_ID = createField("status_paid_details_card_provider_transaction_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_cancelled_user_info_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> STATUS_CANCELLED_USER_INFO_ID = createField("status_cancelled_user_info_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_cancelled_user_info_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Usertype> STATUS_CANCELLED_USER_INFO_TYPE = createField("status_cancelled_user_info_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Usertype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_cancelled_details</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> STATUS_CANCELLED_DETAILS = createField("status_cancelled_details", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_confirmed_user_info_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> STATUS_CONFIRMED_USER_INFO_ID = createField("status_confirmed_user_info_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.status_confirmed_user_info_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Usertype> STATUS_CONFIRMED_USER_INFO_TYPE = createField("status_confirmed_user_info_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Usertype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Payouttype> TYPE = createField("type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Payouttype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_card_token</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_CARD_TOKEN = createField("type_card_token", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_card_payment_system</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_CARD_PAYMENT_SYSTEM = createField("type_card_payment_system", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_card_bin</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_CARD_BIN = createField("type_card_bin", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_card_masked_pan</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_CARD_MASKED_PAN = createField("type_card_masked_pan", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_card_token_provider</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_CARD_TOKEN_PROVIDER = createField("type_card_token_provider", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Payoutaccounttype> TYPE_ACCOUNT_TYPE = createField("type_account_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Payoutaccounttype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_russian_account</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_RUSSIAN_ACCOUNT = createField("type_account_russian_account", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_russian_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_RUSSIAN_BANK_NAME = createField("type_account_russian_bank_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_russian_bank_post_account</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_RUSSIAN_BANK_POST_ACCOUNT = createField("type_account_russian_bank_post_account", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_russian_bank_bik</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_RUSSIAN_BANK_BIK = createField("type_account_russian_bank_bik", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_russian_inn</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_RUSSIAN_INN = createField("type_account_russian_inn", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_account_holder</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_ACCOUNT_HOLDER = createField("type_account_international_account_holder", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_BANK_NAME = createField("type_account_international_bank_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_bank_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_BANK_ADDRESS = createField("type_account_international_bank_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_iban</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_IBAN = createField("type_account_international_iban", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_bic</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_BIC = createField("type_account_international_bic", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_local_bank_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_LOCAL_BANK_CODE = createField("type_account_international_local_bank_code", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_legal_entity_legal_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_LEGAL_ENTITY_LEGAL_NAME = createField("type_account_international_legal_entity_legal_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_legal_entity_trading_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_LEGAL_ENTITY_TRADING_NAME = createField("type_account_international_legal_entity_trading_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_legal_entity_registered_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_LEGAL_ENTITY_REGISTERED_ADDRESS = createField("type_account_international_legal_entity_registered_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_LEGAL_ENTITY_ACTUAL_ADDRESS = createField("type_account_international_legal_entity_actual_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_international_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_INTERNATIONAL_LEGAL_ENTITY_REGISTERED_NUMBER = createField("type_account_international_legal_entity_registered_number", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_purpose</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_PURPOSE = createField("type_account_purpose", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_legal_agreement_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, LocalDateTime> TYPE_ACCOUNT_LEGAL_AGREEMENT_SIGNED_AT = createField("type_account_legal_agreement_signed_at", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> TYPE_ACCOUNT_LEGAL_AGREEMENT_ID = createField("type_account_legal_agreement_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.type_account_legal_agreement_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, LocalDateTime> TYPE_ACCOUNT_LEGAL_AGREEMENT_VALID_UNTIL = createField("type_account_legal_agreement_valid_until", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.initiator_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, String> INITIATOR_ID = createField("initiator_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.initiator_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Usertype> INITIATOR_TYPE = createField("initiator_type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Usertype.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.payout</code> table reference
|
||||||
|
*/
|
||||||
|
public Payout() {
|
||||||
|
this("payout", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.payout</code> table reference
|
||||||
|
*/
|
||||||
|
public Payout(String alias) {
|
||||||
|
this(alias, PAYOUT);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Payout(String alias, Table<PayoutRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Payout(String alias, Table<PayoutRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<PayoutRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_PAYOUT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<PayoutRecord> getPrimaryKey() {
|
||||||
|
return Keys.PAYOUT_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<PayoutRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<PayoutRecord>>asList(Keys.PAYOUT_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Payout as(String alias) {
|
||||||
|
return new Payout(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Payout rename(String name) {
|
||||||
|
return new Payout(name, null);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,177 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutSummaryRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.ForeignKey;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class PayoutSummary extends TableImpl<PayoutSummaryRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -200743666;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.payout_summary</code>
|
||||||
|
*/
|
||||||
|
public static final PayoutSummary PAYOUT_SUMMARY = new PayoutSummary();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<PayoutSummaryRecord> getRecordType() {
|
||||||
|
return PayoutSummaryRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payout_summary_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.pyt_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, Long> PYT_ID = createField("pyt_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.amount</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, Long> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.fee</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, Long> FEE = createField("fee", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.from_time</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, LocalDateTime> FROM_TIME = createField("from_time", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.to_time</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, LocalDateTime> TO_TIME = createField("to_time", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.operation_type</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, String> OPERATION_TYPE = createField("operation_type", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_summary.count</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutSummaryRecord, Integer> COUNT = createField("count", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.payout_summary</code> table reference
|
||||||
|
*/
|
||||||
|
public PayoutSummary() {
|
||||||
|
this("payout_summary", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.payout_summary</code> table reference
|
||||||
|
*/
|
||||||
|
public PayoutSummary(String alias) {
|
||||||
|
this(alias, PAYOUT_SUMMARY);
|
||||||
|
}
|
||||||
|
|
||||||
|
private PayoutSummary(String alias, Table<PayoutSummaryRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private PayoutSummary(String alias, Table<PayoutSummaryRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<PayoutSummaryRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_PAYOUT_SUMMARY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<PayoutSummaryRecord> getPrimaryKey() {
|
||||||
|
return Keys.PAYOUT_SUMMARY_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<PayoutSummaryRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<PayoutSummaryRecord>>asList(Keys.PAYOUT_SUMMARY_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ForeignKey<PayoutSummaryRecord, ?>> getReferences() {
|
||||||
|
return Arrays.<ForeignKey<PayoutSummaryRecord, ?>>asList(Keys.PAYOUT_SUMMARY__FK_SUMMARY_TO_PAYOUT);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PayoutSummary as(String alias) {
|
||||||
|
return new PayoutSummary(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PayoutSummary rename(String name) {
|
||||||
|
return new PayoutSummary(name, null);
|
||||||
|
}
|
||||||
|
}
|
213
src/main/java/com/rbkmoney/newway/domain/tables/PayoutTool.java
Normal file
213
src/main/java/com/rbkmoney/newway/domain/tables/PayoutTool.java
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payouttoolinfo;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.PayoutToolRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.ForeignKey;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class PayoutTool extends TableImpl<PayoutToolRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1022247712;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.payout_tool</code>
|
||||||
|
*/
|
||||||
|
public static final PayoutTool PAYOUT_TOOL = new PayoutTool();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<PayoutToolRecord> getRecordType() {
|
||||||
|
return PayoutToolRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payout_tool_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.cntrct_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, Long> CNTRCT_ID = createField("cntrct_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_ID = createField("payout_tool_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, Payouttoolinfo> PAYOUT_TOOL_INFO = createField("payout_tool_info", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Payouttoolinfo.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_russian_bank_account</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_RUSSIAN_BANK_ACCOUNT = createField("payout_tool_info_russian_bank_account", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_russian_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_RUSSIAN_BANK_NAME = createField("payout_tool_info_russian_bank_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_russian_bank_post_account</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_RUSSIAN_BANK_POST_ACCOUNT = createField("payout_tool_info_russian_bank_post_account", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_russian_bank_bik</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_RUSSIAN_BANK_BIK = createField("payout_tool_info_russian_bank_bik", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_international_bank_account_holder</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_INTERNATIONAL_BANK_ACCOUNT_HOLDER = createField("payout_tool_info_international_bank_account_holder", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_international_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_INTERNATIONAL_BANK_NAME = createField("payout_tool_info_international_bank_name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_international_bank_address</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_INTERNATIONAL_BANK_ADDRESS = createField("payout_tool_info_international_bank_address", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_international_bank_iban</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_INTERNATIONAL_BANK_IBAN = createField("payout_tool_info_international_bank_iban", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_international_bank_bic</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_INTERNATIONAL_BANK_BIC = createField("payout_tool_info_international_bank_bic", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.payout_tool.payout_tool_info_international_bank_local_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<PayoutToolRecord, String> PAYOUT_TOOL_INFO_INTERNATIONAL_BANK_LOCAL_CODE = createField("payout_tool_info_international_bank_local_code", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.payout_tool</code> table reference
|
||||||
|
*/
|
||||||
|
public PayoutTool() {
|
||||||
|
this("payout_tool", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.payout_tool</code> table reference
|
||||||
|
*/
|
||||||
|
public PayoutTool(String alias) {
|
||||||
|
this(alias, PAYOUT_TOOL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private PayoutTool(String alias, Table<PayoutToolRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private PayoutTool(String alias, Table<PayoutToolRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<PayoutToolRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_PAYOUT_TOOL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<PayoutToolRecord> getPrimaryKey() {
|
||||||
|
return Keys.PAYOUT_TOOL_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<PayoutToolRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<PayoutToolRecord>>asList(Keys.PAYOUT_TOOL_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ForeignKey<PayoutToolRecord, ?>> getReferences() {
|
||||||
|
return Arrays.<ForeignKey<PayoutToolRecord, ?>>asList(Keys.PAYOUT_TOOL__FK_PAYOUT_TOOL_TO_CONTRACT);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PayoutTool as(String alias) {
|
||||||
|
return new PayoutTool(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PayoutTool rename(String name) {
|
||||||
|
return new PayoutTool(name, null);
|
||||||
|
}
|
||||||
|
}
|
209
src/main/java/com/rbkmoney/newway/domain/tables/Refund.java
Normal file
209
src/main/java/com/rbkmoney/newway/domain/tables/Refund.java
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Refundstatus;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.RefundRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Refund extends TableImpl<RefundRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -830881922;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.refund</code>
|
||||||
|
*/
|
||||||
|
public static final Refund REFUND = new Refund();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<RefundRecord> getRecordType() {
|
||||||
|
return RefundRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.refund_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.domain_revision</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, Long> DOMAIN_REVISION = createField("domain_revision", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.refund_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> REFUND_ID = createField("refund_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.payment_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> PAYMENT_ID = createField("payment_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.invoice_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> INVOICE_ID = createField("invoice_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> SHOP_ID = createField("shop_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.status</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, Refundstatus> STATUS = createField("status", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Refundstatus.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.status_failed_failure</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> STATUS_FAILED_FAILURE = createField("status_failed_failure", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.amount</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, Long> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.BIGINT, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> CURRENCY_CODE = createField("currency_code", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, String> REASON = createField("reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.refund.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<RefundRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.refund</code> table reference
|
||||||
|
*/
|
||||||
|
public Refund() {
|
||||||
|
this("refund", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.refund</code> table reference
|
||||||
|
*/
|
||||||
|
public Refund(String alias) {
|
||||||
|
this(alias, REFUND);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Refund(String alias, Table<RefundRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Refund(String alias, Table<RefundRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<RefundRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_REFUND;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<RefundRecord> getPrimaryKey() {
|
||||||
|
return Keys.REFUND_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<RefundRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<RefundRecord>>asList(Keys.REFUND_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Refund as(String alias) {
|
||||||
|
return new Refund(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Refund rename(String name) {
|
||||||
|
return new Refund(name, null);
|
||||||
|
}
|
||||||
|
}
|
260
src/main/java/com/rbkmoney/newway/domain/tables/Shop.java
Normal file
260
src/main/java/com/rbkmoney/newway/domain/tables/Shop.java
Normal file
@ -0,0 +1,260 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.Keys;
|
||||||
|
import com.rbkmoney.newway.domain.Nw;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Blocking;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Suspension;
|
||||||
|
import com.rbkmoney.newway.domain.tables.records.ShopRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
import org.jooq.Table;
|
||||||
|
import org.jooq.TableField;
|
||||||
|
import org.jooq.UniqueKey;
|
||||||
|
import org.jooq.impl.TableImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Shop extends TableImpl<ShopRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 171487107;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>nw.shop</code>
|
||||||
|
*/
|
||||||
|
public static final Shop SHOP = new Shop();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<ShopRecord> getRecordType() {
|
||||||
|
return ShopRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.shop_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.event_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Long> EVENT_ID = createField("event_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> EVENT_CREATED_AT = createField("event_created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.party_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> PARTY_ID = createField("party_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> SHOP_ID = createField("shop_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.created_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.blocking</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Blocking> BLOCKING = createField("blocking", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Blocking.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.blocking_unblocked_reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> BLOCKING_UNBLOCKED_REASON = createField("blocking_unblocked_reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.blocking_unblocked_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> BLOCKING_UNBLOCKED_SINCE = createField("blocking_unblocked_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.blocking_blocked_reason</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> BLOCKING_BLOCKED_REASON = createField("blocking_blocked_reason", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.blocking_blocked_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> BLOCKING_BLOCKED_SINCE = createField("blocking_blocked_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.suspension</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Suspension> SUSPENSION = createField("suspension", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.Suspension.class), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.suspension_active_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> SUSPENSION_ACTIVE_SINCE = createField("suspension_active_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.suspension_suspended_since</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> SUSPENSION_SUSPENDED_SINCE = createField("suspension_suspended_since", org.jooq.impl.SQLDataType.LOCALDATETIME, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.details_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> DETAILS_NAME = createField("details_name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.details_description</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> DETAILS_DESCRIPTION = createField("details_description", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.location_url</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> LOCATION_URL = createField("location_url", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.category_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Integer> CATEGORY_ID = createField("category_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.account_currency_code</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> ACCOUNT_CURRENCY_CODE = createField("account_currency_code", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.account_settlement</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Long> ACCOUNT_SETTLEMENT = createField("account_settlement", org.jooq.impl.SQLDataType.BIGINT, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.account_guarantee</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Long> ACCOUNT_GUARANTEE = createField("account_guarantee", org.jooq.impl.SQLDataType.BIGINT, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.account_payout</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Long> ACCOUNT_PAYOUT = createField("account_payout", org.jooq.impl.SQLDataType.BIGINT, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.contract_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> CONTRACT_ID = createField("contract_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.payout_tool_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, String> PAYOUT_TOOL_ID = createField("payout_tool_id", org.jooq.impl.SQLDataType.VARCHAR, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.payout_schedule_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Integer> PAYOUT_SCHEDULE_ID = createField("payout_schedule_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.wtime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>nw.shop.current</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ShopRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>nw.shop</code> table reference
|
||||||
|
*/
|
||||||
|
public Shop() {
|
||||||
|
this("shop", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>nw.shop</code> table reference
|
||||||
|
*/
|
||||||
|
public Shop(String alias) {
|
||||||
|
this(alias, SHOP);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Shop(String alias, Table<ShopRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Shop(String alias, Table<ShopRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return Nw.NW;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Identity<ShopRecord, Long> getIdentity() {
|
||||||
|
return Keys.IDENTITY_SHOP;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UniqueKey<ShopRecord> getPrimaryKey() {
|
||||||
|
return Keys.SHOP_PKEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<ShopRecord>> getKeys() {
|
||||||
|
return Arrays.<UniqueKey<ShopRecord>>asList(Keys.SHOP_PKEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Shop as(String alias) {
|
||||||
|
return new Shop(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Shop rename(String name) {
|
||||||
|
return new Shop(name, null);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,387 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentstatus;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Adjustment implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -77312749;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private Long domainRevision;
|
||||||
|
private String adjustmentId;
|
||||||
|
private String paymentId;
|
||||||
|
private String invoiceId;
|
||||||
|
private String partyId;
|
||||||
|
private String shopId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private Adjustmentstatus status;
|
||||||
|
private LocalDateTime statusCapturedAt;
|
||||||
|
private LocalDateTime statusCancelledAt;
|
||||||
|
private String reason;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Adjustment() {}
|
||||||
|
|
||||||
|
public Adjustment(Adjustment value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.domainRevision = value.domainRevision;
|
||||||
|
this.adjustmentId = value.adjustmentId;
|
||||||
|
this.paymentId = value.paymentId;
|
||||||
|
this.invoiceId = value.invoiceId;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.shopId = value.shopId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.status = value.status;
|
||||||
|
this.statusCapturedAt = value.statusCapturedAt;
|
||||||
|
this.statusCancelledAt = value.statusCancelledAt;
|
||||||
|
this.reason = value.reason;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Adjustment(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
Long domainRevision,
|
||||||
|
String adjustmentId,
|
||||||
|
String paymentId,
|
||||||
|
String invoiceId,
|
||||||
|
String partyId,
|
||||||
|
String shopId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
Adjustmentstatus status,
|
||||||
|
LocalDateTime statusCapturedAt,
|
||||||
|
LocalDateTime statusCancelledAt,
|
||||||
|
String reason,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.domainRevision = domainRevision;
|
||||||
|
this.adjustmentId = adjustmentId;
|
||||||
|
this.paymentId = paymentId;
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.shopId = shopId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.status = status;
|
||||||
|
this.statusCapturedAt = statusCapturedAt;
|
||||||
|
this.statusCancelledAt = statusCancelledAt;
|
||||||
|
this.reason = reason;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDomainRevision() {
|
||||||
|
return this.domainRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDomainRevision(Long domainRevision) {
|
||||||
|
this.domainRevision = domainRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAdjustmentId() {
|
||||||
|
return this.adjustmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdjustmentId(String adjustmentId) {
|
||||||
|
this.adjustmentId = adjustmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPaymentId() {
|
||||||
|
return this.paymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentId(String paymentId) {
|
||||||
|
this.paymentId = paymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInvoiceId() {
|
||||||
|
return this.invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvoiceId(String invoiceId) {
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShopId() {
|
||||||
|
return this.shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopId(String shopId) {
|
||||||
|
this.shopId = shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Adjustmentstatus getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Adjustmentstatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getStatusCapturedAt() {
|
||||||
|
return this.statusCapturedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusCapturedAt(LocalDateTime statusCapturedAt) {
|
||||||
|
this.statusCapturedAt = statusCapturedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getStatusCancelledAt() {
|
||||||
|
return this.statusCancelledAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusCancelledAt(LocalDateTime statusCancelledAt) {
|
||||||
|
this.statusCancelledAt = statusCancelledAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReason() {
|
||||||
|
return this.reason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReason(String reason) {
|
||||||
|
this.reason = reason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Adjustment other = (Adjustment) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (domainRevision == null) {
|
||||||
|
if (other.domainRevision != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!domainRevision.equals(other.domainRevision))
|
||||||
|
return false;
|
||||||
|
if (adjustmentId == null) {
|
||||||
|
if (other.adjustmentId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!adjustmentId.equals(other.adjustmentId))
|
||||||
|
return false;
|
||||||
|
if (paymentId == null) {
|
||||||
|
if (other.paymentId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentId.equals(other.paymentId))
|
||||||
|
return false;
|
||||||
|
if (invoiceId == null) {
|
||||||
|
if (other.invoiceId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!invoiceId.equals(other.invoiceId))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (shopId == null) {
|
||||||
|
if (other.shopId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!shopId.equals(other.shopId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (status == null) {
|
||||||
|
if (other.status != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!status.equals(other.status))
|
||||||
|
return false;
|
||||||
|
if (statusCapturedAt == null) {
|
||||||
|
if (other.statusCapturedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusCapturedAt.equals(other.statusCapturedAt))
|
||||||
|
return false;
|
||||||
|
if (statusCancelledAt == null) {
|
||||||
|
if (other.statusCancelledAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusCancelledAt.equals(other.statusCancelledAt))
|
||||||
|
return false;
|
||||||
|
if (reason == null) {
|
||||||
|
if (other.reason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reason.equals(other.reason))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.domainRevision == null) ? 0 : this.domainRevision.hashCode());
|
||||||
|
result = prime * result + ((this.adjustmentId == null) ? 0 : this.adjustmentId.hashCode());
|
||||||
|
result = prime * result + ((this.paymentId == null) ? 0 : this.paymentId.hashCode());
|
||||||
|
result = prime * result + ((this.invoiceId == null) ? 0 : this.invoiceId.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.shopId == null) ? 0 : this.shopId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.status == null) ? 0 : this.status.hashCode());
|
||||||
|
result = prime * result + ((this.statusCapturedAt == null) ? 0 : this.statusCapturedAt.hashCode());
|
||||||
|
result = prime * result + ((this.statusCancelledAt == null) ? 0 : this.statusCancelledAt.hashCode());
|
||||||
|
result = prime * result + ((this.reason == null) ? 0 : this.reason.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Adjustment (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(domainRevision);
|
||||||
|
sb.append(", ").append(adjustmentId);
|
||||||
|
sb.append(", ").append(paymentId);
|
||||||
|
sb.append(", ").append(invoiceId);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(shopId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(status);
|
||||||
|
sb.append(", ").append(statusCapturedAt);
|
||||||
|
sb.append(", ").append(statusCancelledAt);
|
||||||
|
sb.append(", ").append(reason);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,328 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentcashflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Cashflowaccount;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentchangetype;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class CashFlow implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 2015911549;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long objId;
|
||||||
|
private Paymentchangetype objType;
|
||||||
|
private Adjustmentcashflowtype adjFlowType;
|
||||||
|
private Cashflowaccount sourceAccountType;
|
||||||
|
private String sourceAccountTypeValue;
|
||||||
|
private Long sourceAccountId;
|
||||||
|
private Cashflowaccount destinationAccountType;
|
||||||
|
private String destinationAccountTypeValue;
|
||||||
|
private Long destinationAccountId;
|
||||||
|
private Long amount;
|
||||||
|
private String currencyCode;
|
||||||
|
private String details;
|
||||||
|
|
||||||
|
public CashFlow() {}
|
||||||
|
|
||||||
|
public CashFlow(CashFlow value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.objId = value.objId;
|
||||||
|
this.objType = value.objType;
|
||||||
|
this.adjFlowType = value.adjFlowType;
|
||||||
|
this.sourceAccountType = value.sourceAccountType;
|
||||||
|
this.sourceAccountTypeValue = value.sourceAccountTypeValue;
|
||||||
|
this.sourceAccountId = value.sourceAccountId;
|
||||||
|
this.destinationAccountType = value.destinationAccountType;
|
||||||
|
this.destinationAccountTypeValue = value.destinationAccountTypeValue;
|
||||||
|
this.destinationAccountId = value.destinationAccountId;
|
||||||
|
this.amount = value.amount;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.details = value.details;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CashFlow(
|
||||||
|
Long id,
|
||||||
|
Long objId,
|
||||||
|
Paymentchangetype objType,
|
||||||
|
Adjustmentcashflowtype adjFlowType,
|
||||||
|
Cashflowaccount sourceAccountType,
|
||||||
|
String sourceAccountTypeValue,
|
||||||
|
Long sourceAccountId,
|
||||||
|
Cashflowaccount destinationAccountType,
|
||||||
|
String destinationAccountTypeValue,
|
||||||
|
Long destinationAccountId,
|
||||||
|
Long amount,
|
||||||
|
String currencyCode,
|
||||||
|
String details
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.objId = objId;
|
||||||
|
this.objType = objType;
|
||||||
|
this.adjFlowType = adjFlowType;
|
||||||
|
this.sourceAccountType = sourceAccountType;
|
||||||
|
this.sourceAccountTypeValue = sourceAccountTypeValue;
|
||||||
|
this.sourceAccountId = sourceAccountId;
|
||||||
|
this.destinationAccountType = destinationAccountType;
|
||||||
|
this.destinationAccountTypeValue = destinationAccountTypeValue;
|
||||||
|
this.destinationAccountId = destinationAccountId;
|
||||||
|
this.amount = amount;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.details = details;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getObjId() {
|
||||||
|
return this.objId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjId(Long objId) {
|
||||||
|
this.objId = objId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paymentchangetype getObjType() {
|
||||||
|
return this.objType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjType(Paymentchangetype objType) {
|
||||||
|
this.objType = objType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Adjustmentcashflowtype getAdjFlowType() {
|
||||||
|
return this.adjFlowType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdjFlowType(Adjustmentcashflowtype adjFlowType) {
|
||||||
|
this.adjFlowType = adjFlowType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Cashflowaccount getSourceAccountType() {
|
||||||
|
return this.sourceAccountType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSourceAccountType(Cashflowaccount sourceAccountType) {
|
||||||
|
this.sourceAccountType = sourceAccountType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSourceAccountTypeValue() {
|
||||||
|
return this.sourceAccountTypeValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSourceAccountTypeValue(String sourceAccountTypeValue) {
|
||||||
|
this.sourceAccountTypeValue = sourceAccountTypeValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSourceAccountId() {
|
||||||
|
return this.sourceAccountId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSourceAccountId(Long sourceAccountId) {
|
||||||
|
this.sourceAccountId = sourceAccountId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Cashflowaccount getDestinationAccountType() {
|
||||||
|
return this.destinationAccountType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDestinationAccountType(Cashflowaccount destinationAccountType) {
|
||||||
|
this.destinationAccountType = destinationAccountType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDestinationAccountTypeValue() {
|
||||||
|
return this.destinationAccountTypeValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDestinationAccountTypeValue(String destinationAccountTypeValue) {
|
||||||
|
this.destinationAccountTypeValue = destinationAccountTypeValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDestinationAccountId() {
|
||||||
|
return this.destinationAccountId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDestinationAccountId(Long destinationAccountId) {
|
||||||
|
this.destinationAccountId = destinationAccountId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAmount() {
|
||||||
|
return this.amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(Long amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetails() {
|
||||||
|
return this.details;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetails(String details) {
|
||||||
|
this.details = details;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final CashFlow other = (CashFlow) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (objId == null) {
|
||||||
|
if (other.objId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!objId.equals(other.objId))
|
||||||
|
return false;
|
||||||
|
if (objType == null) {
|
||||||
|
if (other.objType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!objType.equals(other.objType))
|
||||||
|
return false;
|
||||||
|
if (adjFlowType == null) {
|
||||||
|
if (other.adjFlowType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!adjFlowType.equals(other.adjFlowType))
|
||||||
|
return false;
|
||||||
|
if (sourceAccountType == null) {
|
||||||
|
if (other.sourceAccountType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!sourceAccountType.equals(other.sourceAccountType))
|
||||||
|
return false;
|
||||||
|
if (sourceAccountTypeValue == null) {
|
||||||
|
if (other.sourceAccountTypeValue != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!sourceAccountTypeValue.equals(other.sourceAccountTypeValue))
|
||||||
|
return false;
|
||||||
|
if (sourceAccountId == null) {
|
||||||
|
if (other.sourceAccountId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!sourceAccountId.equals(other.sourceAccountId))
|
||||||
|
return false;
|
||||||
|
if (destinationAccountType == null) {
|
||||||
|
if (other.destinationAccountType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!destinationAccountType.equals(other.destinationAccountType))
|
||||||
|
return false;
|
||||||
|
if (destinationAccountTypeValue == null) {
|
||||||
|
if (other.destinationAccountTypeValue != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!destinationAccountTypeValue.equals(other.destinationAccountTypeValue))
|
||||||
|
return false;
|
||||||
|
if (destinationAccountId == null) {
|
||||||
|
if (other.destinationAccountId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!destinationAccountId.equals(other.destinationAccountId))
|
||||||
|
return false;
|
||||||
|
if (amount == null) {
|
||||||
|
if (other.amount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!amount.equals(other.amount))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (details == null) {
|
||||||
|
if (other.details != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!details.equals(other.details))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.objId == null) ? 0 : this.objId.hashCode());
|
||||||
|
result = prime * result + ((this.objType == null) ? 0 : this.objType.hashCode());
|
||||||
|
result = prime * result + ((this.adjFlowType == null) ? 0 : this.adjFlowType.hashCode());
|
||||||
|
result = prime * result + ((this.sourceAccountType == null) ? 0 : this.sourceAccountType.hashCode());
|
||||||
|
result = prime * result + ((this.sourceAccountTypeValue == null) ? 0 : this.sourceAccountTypeValue.hashCode());
|
||||||
|
result = prime * result + ((this.sourceAccountId == null) ? 0 : this.sourceAccountId.hashCode());
|
||||||
|
result = prime * result + ((this.destinationAccountType == null) ? 0 : this.destinationAccountType.hashCode());
|
||||||
|
result = prime * result + ((this.destinationAccountTypeValue == null) ? 0 : this.destinationAccountTypeValue.hashCode());
|
||||||
|
result = prime * result + ((this.destinationAccountId == null) ? 0 : this.destinationAccountId.hashCode());
|
||||||
|
result = prime * result + ((this.amount == null) ? 0 : this.amount.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.details == null) ? 0 : this.details.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("CashFlow (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(objId);
|
||||||
|
sb.append(", ").append(objType);
|
||||||
|
sb.append(", ").append(adjFlowType);
|
||||||
|
sb.append(", ").append(sourceAccountType);
|
||||||
|
sb.append(", ").append(sourceAccountTypeValue);
|
||||||
|
sb.append(", ").append(sourceAccountId);
|
||||||
|
sb.append(", ").append(destinationAccountType);
|
||||||
|
sb.append(", ").append(destinationAccountTypeValue);
|
||||||
|
sb.append(", ").append(destinationAccountId);
|
||||||
|
sb.append(", ").append(amount);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append(details);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,568 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Contractstatus;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Representativedocument;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Contract implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 892803761;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private String contractId;
|
||||||
|
private String partyId;
|
||||||
|
private Integer paymentInstitutionId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private LocalDateTime validSince;
|
||||||
|
private LocalDateTime validUntil;
|
||||||
|
private Contractstatus status;
|
||||||
|
private LocalDateTime statusTerminatedAt;
|
||||||
|
private Integer termsId;
|
||||||
|
private LocalDateTime legalAgreementSignedAt;
|
||||||
|
private String legalAgreementId;
|
||||||
|
private LocalDateTime legalAgreementValidUntil;
|
||||||
|
private Integer reportActScheduleId;
|
||||||
|
private String reportActSignerPosition;
|
||||||
|
private String reportActSignerFullName;
|
||||||
|
private Representativedocument reportActSignerDocument;
|
||||||
|
private LocalDateTime reportActSignerDocPowerOfAttorneySignedAt;
|
||||||
|
private String reportActSignerDocPowerOfAttorneyLegalAgreementId;
|
||||||
|
private LocalDateTime reportActSignerDocPowerOfAttorneyValidUntil;
|
||||||
|
private String contractorId;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Contract() {}
|
||||||
|
|
||||||
|
public Contract(Contract value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.contractId = value.contractId;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.paymentInstitutionId = value.paymentInstitutionId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.validSince = value.validSince;
|
||||||
|
this.validUntil = value.validUntil;
|
||||||
|
this.status = value.status;
|
||||||
|
this.statusTerminatedAt = value.statusTerminatedAt;
|
||||||
|
this.termsId = value.termsId;
|
||||||
|
this.legalAgreementSignedAt = value.legalAgreementSignedAt;
|
||||||
|
this.legalAgreementId = value.legalAgreementId;
|
||||||
|
this.legalAgreementValidUntil = value.legalAgreementValidUntil;
|
||||||
|
this.reportActScheduleId = value.reportActScheduleId;
|
||||||
|
this.reportActSignerPosition = value.reportActSignerPosition;
|
||||||
|
this.reportActSignerFullName = value.reportActSignerFullName;
|
||||||
|
this.reportActSignerDocument = value.reportActSignerDocument;
|
||||||
|
this.reportActSignerDocPowerOfAttorneySignedAt = value.reportActSignerDocPowerOfAttorneySignedAt;
|
||||||
|
this.reportActSignerDocPowerOfAttorneyLegalAgreementId = value.reportActSignerDocPowerOfAttorneyLegalAgreementId;
|
||||||
|
this.reportActSignerDocPowerOfAttorneyValidUntil = value.reportActSignerDocPowerOfAttorneyValidUntil;
|
||||||
|
this.contractorId = value.contractorId;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Contract(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
String contractId,
|
||||||
|
String partyId,
|
||||||
|
Integer paymentInstitutionId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
LocalDateTime validSince,
|
||||||
|
LocalDateTime validUntil,
|
||||||
|
Contractstatus status,
|
||||||
|
LocalDateTime statusTerminatedAt,
|
||||||
|
Integer termsId,
|
||||||
|
LocalDateTime legalAgreementSignedAt,
|
||||||
|
String legalAgreementId,
|
||||||
|
LocalDateTime legalAgreementValidUntil,
|
||||||
|
Integer reportActScheduleId,
|
||||||
|
String reportActSignerPosition,
|
||||||
|
String reportActSignerFullName,
|
||||||
|
Representativedocument reportActSignerDocument,
|
||||||
|
LocalDateTime reportActSignerDocPowerOfAttorneySignedAt,
|
||||||
|
String reportActSignerDocPowerOfAttorneyLegalAgreementId,
|
||||||
|
LocalDateTime reportActSignerDocPowerOfAttorneyValidUntil,
|
||||||
|
String contractorId,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.contractId = contractId;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.paymentInstitutionId = paymentInstitutionId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.validSince = validSince;
|
||||||
|
this.validUntil = validUntil;
|
||||||
|
this.status = status;
|
||||||
|
this.statusTerminatedAt = statusTerminatedAt;
|
||||||
|
this.termsId = termsId;
|
||||||
|
this.legalAgreementSignedAt = legalAgreementSignedAt;
|
||||||
|
this.legalAgreementId = legalAgreementId;
|
||||||
|
this.legalAgreementValidUntil = legalAgreementValidUntil;
|
||||||
|
this.reportActScheduleId = reportActScheduleId;
|
||||||
|
this.reportActSignerPosition = reportActSignerPosition;
|
||||||
|
this.reportActSignerFullName = reportActSignerFullName;
|
||||||
|
this.reportActSignerDocument = reportActSignerDocument;
|
||||||
|
this.reportActSignerDocPowerOfAttorneySignedAt = reportActSignerDocPowerOfAttorneySignedAt;
|
||||||
|
this.reportActSignerDocPowerOfAttorneyLegalAgreementId = reportActSignerDocPowerOfAttorneyLegalAgreementId;
|
||||||
|
this.reportActSignerDocPowerOfAttorneyValidUntil = reportActSignerDocPowerOfAttorneyValidUntil;
|
||||||
|
this.contractorId = contractorId;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContractId() {
|
||||||
|
return this.contractId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContractId(String contractId) {
|
||||||
|
this.contractId = contractId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPaymentInstitutionId() {
|
||||||
|
return this.paymentInstitutionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentInstitutionId(Integer paymentInstitutionId) {
|
||||||
|
this.paymentInstitutionId = paymentInstitutionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getValidSince() {
|
||||||
|
return this.validSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValidSince(LocalDateTime validSince) {
|
||||||
|
this.validSince = validSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getValidUntil() {
|
||||||
|
return this.validUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValidUntil(LocalDateTime validUntil) {
|
||||||
|
this.validUntil = validUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Contractstatus getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Contractstatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getStatusTerminatedAt() {
|
||||||
|
return this.statusTerminatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusTerminatedAt(LocalDateTime statusTerminatedAt) {
|
||||||
|
this.statusTerminatedAt = statusTerminatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTermsId() {
|
||||||
|
return this.termsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTermsId(Integer termsId) {
|
||||||
|
this.termsId = termsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getLegalAgreementSignedAt() {
|
||||||
|
return this.legalAgreementSignedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLegalAgreementSignedAt(LocalDateTime legalAgreementSignedAt) {
|
||||||
|
this.legalAgreementSignedAt = legalAgreementSignedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLegalAgreementId() {
|
||||||
|
return this.legalAgreementId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLegalAgreementId(String legalAgreementId) {
|
||||||
|
this.legalAgreementId = legalAgreementId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getLegalAgreementValidUntil() {
|
||||||
|
return this.legalAgreementValidUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLegalAgreementValidUntil(LocalDateTime legalAgreementValidUntil) {
|
||||||
|
this.legalAgreementValidUntil = legalAgreementValidUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getReportActScheduleId() {
|
||||||
|
return this.reportActScheduleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActScheduleId(Integer reportActScheduleId) {
|
||||||
|
this.reportActScheduleId = reportActScheduleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReportActSignerPosition() {
|
||||||
|
return this.reportActSignerPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActSignerPosition(String reportActSignerPosition) {
|
||||||
|
this.reportActSignerPosition = reportActSignerPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReportActSignerFullName() {
|
||||||
|
return this.reportActSignerFullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActSignerFullName(String reportActSignerFullName) {
|
||||||
|
this.reportActSignerFullName = reportActSignerFullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Representativedocument getReportActSignerDocument() {
|
||||||
|
return this.reportActSignerDocument;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActSignerDocument(Representativedocument reportActSignerDocument) {
|
||||||
|
this.reportActSignerDocument = reportActSignerDocument;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getReportActSignerDocPowerOfAttorneySignedAt() {
|
||||||
|
return this.reportActSignerDocPowerOfAttorneySignedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActSignerDocPowerOfAttorneySignedAt(LocalDateTime reportActSignerDocPowerOfAttorneySignedAt) {
|
||||||
|
this.reportActSignerDocPowerOfAttorneySignedAt = reportActSignerDocPowerOfAttorneySignedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReportActSignerDocPowerOfAttorneyLegalAgreementId() {
|
||||||
|
return this.reportActSignerDocPowerOfAttorneyLegalAgreementId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActSignerDocPowerOfAttorneyLegalAgreementId(String reportActSignerDocPowerOfAttorneyLegalAgreementId) {
|
||||||
|
this.reportActSignerDocPowerOfAttorneyLegalAgreementId = reportActSignerDocPowerOfAttorneyLegalAgreementId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getReportActSignerDocPowerOfAttorneyValidUntil() {
|
||||||
|
return this.reportActSignerDocPowerOfAttorneyValidUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportActSignerDocPowerOfAttorneyValidUntil(LocalDateTime reportActSignerDocPowerOfAttorneyValidUntil) {
|
||||||
|
this.reportActSignerDocPowerOfAttorneyValidUntil = reportActSignerDocPowerOfAttorneyValidUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContractorId() {
|
||||||
|
return this.contractorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContractorId(String contractorId) {
|
||||||
|
this.contractorId = contractorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Contract other = (Contract) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (contractId == null) {
|
||||||
|
if (other.contractId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!contractId.equals(other.contractId))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (paymentInstitutionId == null) {
|
||||||
|
if (other.paymentInstitutionId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentInstitutionId.equals(other.paymentInstitutionId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (validSince == null) {
|
||||||
|
if (other.validSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!validSince.equals(other.validSince))
|
||||||
|
return false;
|
||||||
|
if (validUntil == null) {
|
||||||
|
if (other.validUntil != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!validUntil.equals(other.validUntil))
|
||||||
|
return false;
|
||||||
|
if (status == null) {
|
||||||
|
if (other.status != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!status.equals(other.status))
|
||||||
|
return false;
|
||||||
|
if (statusTerminatedAt == null) {
|
||||||
|
if (other.statusTerminatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusTerminatedAt.equals(other.statusTerminatedAt))
|
||||||
|
return false;
|
||||||
|
if (termsId == null) {
|
||||||
|
if (other.termsId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!termsId.equals(other.termsId))
|
||||||
|
return false;
|
||||||
|
if (legalAgreementSignedAt == null) {
|
||||||
|
if (other.legalAgreementSignedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!legalAgreementSignedAt.equals(other.legalAgreementSignedAt))
|
||||||
|
return false;
|
||||||
|
if (legalAgreementId == null) {
|
||||||
|
if (other.legalAgreementId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!legalAgreementId.equals(other.legalAgreementId))
|
||||||
|
return false;
|
||||||
|
if (legalAgreementValidUntil == null) {
|
||||||
|
if (other.legalAgreementValidUntil != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!legalAgreementValidUntil.equals(other.legalAgreementValidUntil))
|
||||||
|
return false;
|
||||||
|
if (reportActScheduleId == null) {
|
||||||
|
if (other.reportActScheduleId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActScheduleId.equals(other.reportActScheduleId))
|
||||||
|
return false;
|
||||||
|
if (reportActSignerPosition == null) {
|
||||||
|
if (other.reportActSignerPosition != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActSignerPosition.equals(other.reportActSignerPosition))
|
||||||
|
return false;
|
||||||
|
if (reportActSignerFullName == null) {
|
||||||
|
if (other.reportActSignerFullName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActSignerFullName.equals(other.reportActSignerFullName))
|
||||||
|
return false;
|
||||||
|
if (reportActSignerDocument == null) {
|
||||||
|
if (other.reportActSignerDocument != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActSignerDocument.equals(other.reportActSignerDocument))
|
||||||
|
return false;
|
||||||
|
if (reportActSignerDocPowerOfAttorneySignedAt == null) {
|
||||||
|
if (other.reportActSignerDocPowerOfAttorneySignedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActSignerDocPowerOfAttorneySignedAt.equals(other.reportActSignerDocPowerOfAttorneySignedAt))
|
||||||
|
return false;
|
||||||
|
if (reportActSignerDocPowerOfAttorneyLegalAgreementId == null) {
|
||||||
|
if (other.reportActSignerDocPowerOfAttorneyLegalAgreementId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActSignerDocPowerOfAttorneyLegalAgreementId.equals(other.reportActSignerDocPowerOfAttorneyLegalAgreementId))
|
||||||
|
return false;
|
||||||
|
if (reportActSignerDocPowerOfAttorneyValidUntil == null) {
|
||||||
|
if (other.reportActSignerDocPowerOfAttorneyValidUntil != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reportActSignerDocPowerOfAttorneyValidUntil.equals(other.reportActSignerDocPowerOfAttorneyValidUntil))
|
||||||
|
return false;
|
||||||
|
if (contractorId == null) {
|
||||||
|
if (other.contractorId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!contractorId.equals(other.contractorId))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.contractId == null) ? 0 : this.contractId.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.paymentInstitutionId == null) ? 0 : this.paymentInstitutionId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.validSince == null) ? 0 : this.validSince.hashCode());
|
||||||
|
result = prime * result + ((this.validUntil == null) ? 0 : this.validUntil.hashCode());
|
||||||
|
result = prime * result + ((this.status == null) ? 0 : this.status.hashCode());
|
||||||
|
result = prime * result + ((this.statusTerminatedAt == null) ? 0 : this.statusTerminatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.termsId == null) ? 0 : this.termsId.hashCode());
|
||||||
|
result = prime * result + ((this.legalAgreementSignedAt == null) ? 0 : this.legalAgreementSignedAt.hashCode());
|
||||||
|
result = prime * result + ((this.legalAgreementId == null) ? 0 : this.legalAgreementId.hashCode());
|
||||||
|
result = prime * result + ((this.legalAgreementValidUntil == null) ? 0 : this.legalAgreementValidUntil.hashCode());
|
||||||
|
result = prime * result + ((this.reportActScheduleId == null) ? 0 : this.reportActScheduleId.hashCode());
|
||||||
|
result = prime * result + ((this.reportActSignerPosition == null) ? 0 : this.reportActSignerPosition.hashCode());
|
||||||
|
result = prime * result + ((this.reportActSignerFullName == null) ? 0 : this.reportActSignerFullName.hashCode());
|
||||||
|
result = prime * result + ((this.reportActSignerDocument == null) ? 0 : this.reportActSignerDocument.hashCode());
|
||||||
|
result = prime * result + ((this.reportActSignerDocPowerOfAttorneySignedAt == null) ? 0 : this.reportActSignerDocPowerOfAttorneySignedAt.hashCode());
|
||||||
|
result = prime * result + ((this.reportActSignerDocPowerOfAttorneyLegalAgreementId == null) ? 0 : this.reportActSignerDocPowerOfAttorneyLegalAgreementId.hashCode());
|
||||||
|
result = prime * result + ((this.reportActSignerDocPowerOfAttorneyValidUntil == null) ? 0 : this.reportActSignerDocPowerOfAttorneyValidUntil.hashCode());
|
||||||
|
result = prime * result + ((this.contractorId == null) ? 0 : this.contractorId.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Contract (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(contractId);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(paymentInstitutionId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(validSince);
|
||||||
|
sb.append(", ").append(validUntil);
|
||||||
|
sb.append(", ").append(status);
|
||||||
|
sb.append(", ").append(statusTerminatedAt);
|
||||||
|
sb.append(", ").append(termsId);
|
||||||
|
sb.append(", ").append(legalAgreementSignedAt);
|
||||||
|
sb.append(", ").append(legalAgreementId);
|
||||||
|
sb.append(", ").append(legalAgreementValidUntil);
|
||||||
|
sb.append(", ").append(reportActScheduleId);
|
||||||
|
sb.append(", ").append(reportActSignerPosition);
|
||||||
|
sb.append(", ").append(reportActSignerFullName);
|
||||||
|
sb.append(", ").append(reportActSignerDocument);
|
||||||
|
sb.append(", ").append(reportActSignerDocPowerOfAttorneySignedAt);
|
||||||
|
sb.append(", ").append(reportActSignerDocPowerOfAttorneyLegalAgreementId);
|
||||||
|
sb.append(", ").append(reportActSignerDocPowerOfAttorneyValidUntil);
|
||||||
|
sb.append(", ").append(contractorId);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,205 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class ContractAdjustment implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -21844886;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long cntrctId;
|
||||||
|
private String contractAdjustmentId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private LocalDateTime validSince;
|
||||||
|
private LocalDateTime validUntil;
|
||||||
|
private Integer termsId;
|
||||||
|
|
||||||
|
public ContractAdjustment() {}
|
||||||
|
|
||||||
|
public ContractAdjustment(ContractAdjustment value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.cntrctId = value.cntrctId;
|
||||||
|
this.contractAdjustmentId = value.contractAdjustmentId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.validSince = value.validSince;
|
||||||
|
this.validUntil = value.validUntil;
|
||||||
|
this.termsId = value.termsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ContractAdjustment(
|
||||||
|
Long id,
|
||||||
|
Long cntrctId,
|
||||||
|
String contractAdjustmentId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
LocalDateTime validSince,
|
||||||
|
LocalDateTime validUntil,
|
||||||
|
Integer termsId
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.cntrctId = cntrctId;
|
||||||
|
this.contractAdjustmentId = contractAdjustmentId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.validSince = validSince;
|
||||||
|
this.validUntil = validUntil;
|
||||||
|
this.termsId = termsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCntrctId() {
|
||||||
|
return this.cntrctId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCntrctId(Long cntrctId) {
|
||||||
|
this.cntrctId = cntrctId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContractAdjustmentId() {
|
||||||
|
return this.contractAdjustmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContractAdjustmentId(String contractAdjustmentId) {
|
||||||
|
this.contractAdjustmentId = contractAdjustmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getValidSince() {
|
||||||
|
return this.validSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValidSince(LocalDateTime validSince) {
|
||||||
|
this.validSince = validSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getValidUntil() {
|
||||||
|
return this.validUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValidUntil(LocalDateTime validUntil) {
|
||||||
|
this.validUntil = validUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTermsId() {
|
||||||
|
return this.termsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTermsId(Integer termsId) {
|
||||||
|
this.termsId = termsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final ContractAdjustment other = (ContractAdjustment) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (cntrctId == null) {
|
||||||
|
if (other.cntrctId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!cntrctId.equals(other.cntrctId))
|
||||||
|
return false;
|
||||||
|
if (contractAdjustmentId == null) {
|
||||||
|
if (other.contractAdjustmentId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!contractAdjustmentId.equals(other.contractAdjustmentId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (validSince == null) {
|
||||||
|
if (other.validSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!validSince.equals(other.validSince))
|
||||||
|
return false;
|
||||||
|
if (validUntil == null) {
|
||||||
|
if (other.validUntil != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!validUntil.equals(other.validUntil))
|
||||||
|
return false;
|
||||||
|
if (termsId == null) {
|
||||||
|
if (other.termsId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!termsId.equals(other.termsId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.cntrctId == null) ? 0 : this.cntrctId.hashCode());
|
||||||
|
result = prime * result + ((this.contractAdjustmentId == null) ? 0 : this.contractAdjustmentId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.validSince == null) ? 0 : this.validSince.hashCode());
|
||||||
|
result = prime * result + ((this.validUntil == null) ? 0 : this.validUntil.hashCode());
|
||||||
|
result = prime * result + ((this.termsId == null) ? 0 : this.termsId.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("ContractAdjustment (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(cntrctId);
|
||||||
|
sb.append(", ").append(contractAdjustmentId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(validSince);
|
||||||
|
sb.append(", ").append(validUntil);
|
||||||
|
sb.append(", ").append(termsId);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,749 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Contractortype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Legalentity;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Privateentity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Contractor implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1313262204;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private String partyId;
|
||||||
|
private String contractorId;
|
||||||
|
private Contractortype type;
|
||||||
|
private String identificationalLevel;
|
||||||
|
private String registeredUserEmail;
|
||||||
|
private Legalentity legalEntity;
|
||||||
|
private String russianLegalEntityRegisteredName;
|
||||||
|
private String russianLegalEntityRegisteredNumber;
|
||||||
|
private String russianLegalEntityInn;
|
||||||
|
private String russianLegalEntityActualAddress;
|
||||||
|
private String russianLegalEntityPostAddress;
|
||||||
|
private String russianLegalEntityRepresentativePosition;
|
||||||
|
private String russianLegalEntityRepresentativeFullName;
|
||||||
|
private String russianLegalEntityRepresentativeDocument;
|
||||||
|
private String russianLegalEntityRussianBankAccount;
|
||||||
|
private String russianLegalEntityRussianBankName;
|
||||||
|
private String russianLegalEntityRussianBankPostAccount;
|
||||||
|
private String russianLegalEntityRussianBankBik;
|
||||||
|
private String internationalLegalEntityLegalName;
|
||||||
|
private String internationalLegalEntityTradingName;
|
||||||
|
private String internationalLegalEntityRegisteredAddress;
|
||||||
|
private String internationalLegalEntityActualAddress;
|
||||||
|
private String internationalLegalEntityRegisteredNumber;
|
||||||
|
private Privateentity privateEntity;
|
||||||
|
private String russianPrivateEntityFirstName;
|
||||||
|
private String russianPrivateEntitySecondName;
|
||||||
|
private String russianPrivateEntityMiddleName;
|
||||||
|
private String russianPrivateEntityPhoneNumber;
|
||||||
|
private String russianPrivateEntityEmail;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Contractor() {}
|
||||||
|
|
||||||
|
public Contractor(Contractor value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.contractorId = value.contractorId;
|
||||||
|
this.type = value.type;
|
||||||
|
this.identificationalLevel = value.identificationalLevel;
|
||||||
|
this.registeredUserEmail = value.registeredUserEmail;
|
||||||
|
this.legalEntity = value.legalEntity;
|
||||||
|
this.russianLegalEntityRegisteredName = value.russianLegalEntityRegisteredName;
|
||||||
|
this.russianLegalEntityRegisteredNumber = value.russianLegalEntityRegisteredNumber;
|
||||||
|
this.russianLegalEntityInn = value.russianLegalEntityInn;
|
||||||
|
this.russianLegalEntityActualAddress = value.russianLegalEntityActualAddress;
|
||||||
|
this.russianLegalEntityPostAddress = value.russianLegalEntityPostAddress;
|
||||||
|
this.russianLegalEntityRepresentativePosition = value.russianLegalEntityRepresentativePosition;
|
||||||
|
this.russianLegalEntityRepresentativeFullName = value.russianLegalEntityRepresentativeFullName;
|
||||||
|
this.russianLegalEntityRepresentativeDocument = value.russianLegalEntityRepresentativeDocument;
|
||||||
|
this.russianLegalEntityRussianBankAccount = value.russianLegalEntityRussianBankAccount;
|
||||||
|
this.russianLegalEntityRussianBankName = value.russianLegalEntityRussianBankName;
|
||||||
|
this.russianLegalEntityRussianBankPostAccount = value.russianLegalEntityRussianBankPostAccount;
|
||||||
|
this.russianLegalEntityRussianBankBik = value.russianLegalEntityRussianBankBik;
|
||||||
|
this.internationalLegalEntityLegalName = value.internationalLegalEntityLegalName;
|
||||||
|
this.internationalLegalEntityTradingName = value.internationalLegalEntityTradingName;
|
||||||
|
this.internationalLegalEntityRegisteredAddress = value.internationalLegalEntityRegisteredAddress;
|
||||||
|
this.internationalLegalEntityActualAddress = value.internationalLegalEntityActualAddress;
|
||||||
|
this.internationalLegalEntityRegisteredNumber = value.internationalLegalEntityRegisteredNumber;
|
||||||
|
this.privateEntity = value.privateEntity;
|
||||||
|
this.russianPrivateEntityFirstName = value.russianPrivateEntityFirstName;
|
||||||
|
this.russianPrivateEntitySecondName = value.russianPrivateEntitySecondName;
|
||||||
|
this.russianPrivateEntityMiddleName = value.russianPrivateEntityMiddleName;
|
||||||
|
this.russianPrivateEntityPhoneNumber = value.russianPrivateEntityPhoneNumber;
|
||||||
|
this.russianPrivateEntityEmail = value.russianPrivateEntityEmail;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Contractor(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
String partyId,
|
||||||
|
String contractorId,
|
||||||
|
Contractortype type,
|
||||||
|
String identificationalLevel,
|
||||||
|
String registeredUserEmail,
|
||||||
|
Legalentity legalEntity,
|
||||||
|
String russianLegalEntityRegisteredName,
|
||||||
|
String russianLegalEntityRegisteredNumber,
|
||||||
|
String russianLegalEntityInn,
|
||||||
|
String russianLegalEntityActualAddress,
|
||||||
|
String russianLegalEntityPostAddress,
|
||||||
|
String russianLegalEntityRepresentativePosition,
|
||||||
|
String russianLegalEntityRepresentativeFullName,
|
||||||
|
String russianLegalEntityRepresentativeDocument,
|
||||||
|
String russianLegalEntityRussianBankAccount,
|
||||||
|
String russianLegalEntityRussianBankName,
|
||||||
|
String russianLegalEntityRussianBankPostAccount,
|
||||||
|
String russianLegalEntityRussianBankBik,
|
||||||
|
String internationalLegalEntityLegalName,
|
||||||
|
String internationalLegalEntityTradingName,
|
||||||
|
String internationalLegalEntityRegisteredAddress,
|
||||||
|
String internationalLegalEntityActualAddress,
|
||||||
|
String internationalLegalEntityRegisteredNumber,
|
||||||
|
Privateentity privateEntity,
|
||||||
|
String russianPrivateEntityFirstName,
|
||||||
|
String russianPrivateEntitySecondName,
|
||||||
|
String russianPrivateEntityMiddleName,
|
||||||
|
String russianPrivateEntityPhoneNumber,
|
||||||
|
String russianPrivateEntityEmail,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.contractorId = contractorId;
|
||||||
|
this.type = type;
|
||||||
|
this.identificationalLevel = identificationalLevel;
|
||||||
|
this.registeredUserEmail = registeredUserEmail;
|
||||||
|
this.legalEntity = legalEntity;
|
||||||
|
this.russianLegalEntityRegisteredName = russianLegalEntityRegisteredName;
|
||||||
|
this.russianLegalEntityRegisteredNumber = russianLegalEntityRegisteredNumber;
|
||||||
|
this.russianLegalEntityInn = russianLegalEntityInn;
|
||||||
|
this.russianLegalEntityActualAddress = russianLegalEntityActualAddress;
|
||||||
|
this.russianLegalEntityPostAddress = russianLegalEntityPostAddress;
|
||||||
|
this.russianLegalEntityRepresentativePosition = russianLegalEntityRepresentativePosition;
|
||||||
|
this.russianLegalEntityRepresentativeFullName = russianLegalEntityRepresentativeFullName;
|
||||||
|
this.russianLegalEntityRepresentativeDocument = russianLegalEntityRepresentativeDocument;
|
||||||
|
this.russianLegalEntityRussianBankAccount = russianLegalEntityRussianBankAccount;
|
||||||
|
this.russianLegalEntityRussianBankName = russianLegalEntityRussianBankName;
|
||||||
|
this.russianLegalEntityRussianBankPostAccount = russianLegalEntityRussianBankPostAccount;
|
||||||
|
this.russianLegalEntityRussianBankBik = russianLegalEntityRussianBankBik;
|
||||||
|
this.internationalLegalEntityLegalName = internationalLegalEntityLegalName;
|
||||||
|
this.internationalLegalEntityTradingName = internationalLegalEntityTradingName;
|
||||||
|
this.internationalLegalEntityRegisteredAddress = internationalLegalEntityRegisteredAddress;
|
||||||
|
this.internationalLegalEntityActualAddress = internationalLegalEntityActualAddress;
|
||||||
|
this.internationalLegalEntityRegisteredNumber = internationalLegalEntityRegisteredNumber;
|
||||||
|
this.privateEntity = privateEntity;
|
||||||
|
this.russianPrivateEntityFirstName = russianPrivateEntityFirstName;
|
||||||
|
this.russianPrivateEntitySecondName = russianPrivateEntitySecondName;
|
||||||
|
this.russianPrivateEntityMiddleName = russianPrivateEntityMiddleName;
|
||||||
|
this.russianPrivateEntityPhoneNumber = russianPrivateEntityPhoneNumber;
|
||||||
|
this.russianPrivateEntityEmail = russianPrivateEntityEmail;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContractorId() {
|
||||||
|
return this.contractorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContractorId(String contractorId) {
|
||||||
|
this.contractorId = contractorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Contractortype getType() {
|
||||||
|
return this.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(Contractortype type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdentificationalLevel() {
|
||||||
|
return this.identificationalLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdentificationalLevel(String identificationalLevel) {
|
||||||
|
this.identificationalLevel = identificationalLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRegisteredUserEmail() {
|
||||||
|
return this.registeredUserEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRegisteredUserEmail(String registeredUserEmail) {
|
||||||
|
this.registeredUserEmail = registeredUserEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Legalentity getLegalEntity() {
|
||||||
|
return this.legalEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLegalEntity(Legalentity legalEntity) {
|
||||||
|
this.legalEntity = legalEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRegisteredName() {
|
||||||
|
return this.russianLegalEntityRegisteredName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRegisteredName(String russianLegalEntityRegisteredName) {
|
||||||
|
this.russianLegalEntityRegisteredName = russianLegalEntityRegisteredName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRegisteredNumber() {
|
||||||
|
return this.russianLegalEntityRegisteredNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRegisteredNumber(String russianLegalEntityRegisteredNumber) {
|
||||||
|
this.russianLegalEntityRegisteredNumber = russianLegalEntityRegisteredNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityInn() {
|
||||||
|
return this.russianLegalEntityInn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityInn(String russianLegalEntityInn) {
|
||||||
|
this.russianLegalEntityInn = russianLegalEntityInn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityActualAddress() {
|
||||||
|
return this.russianLegalEntityActualAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityActualAddress(String russianLegalEntityActualAddress) {
|
||||||
|
this.russianLegalEntityActualAddress = russianLegalEntityActualAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityPostAddress() {
|
||||||
|
return this.russianLegalEntityPostAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityPostAddress(String russianLegalEntityPostAddress) {
|
||||||
|
this.russianLegalEntityPostAddress = russianLegalEntityPostAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRepresentativePosition() {
|
||||||
|
return this.russianLegalEntityRepresentativePosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRepresentativePosition(String russianLegalEntityRepresentativePosition) {
|
||||||
|
this.russianLegalEntityRepresentativePosition = russianLegalEntityRepresentativePosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRepresentativeFullName() {
|
||||||
|
return this.russianLegalEntityRepresentativeFullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRepresentativeFullName(String russianLegalEntityRepresentativeFullName) {
|
||||||
|
this.russianLegalEntityRepresentativeFullName = russianLegalEntityRepresentativeFullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRepresentativeDocument() {
|
||||||
|
return this.russianLegalEntityRepresentativeDocument;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRepresentativeDocument(String russianLegalEntityRepresentativeDocument) {
|
||||||
|
this.russianLegalEntityRepresentativeDocument = russianLegalEntityRepresentativeDocument;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRussianBankAccount() {
|
||||||
|
return this.russianLegalEntityRussianBankAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRussianBankAccount(String russianLegalEntityRussianBankAccount) {
|
||||||
|
this.russianLegalEntityRussianBankAccount = russianLegalEntityRussianBankAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRussianBankName() {
|
||||||
|
return this.russianLegalEntityRussianBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRussianBankName(String russianLegalEntityRussianBankName) {
|
||||||
|
this.russianLegalEntityRussianBankName = russianLegalEntityRussianBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRussianBankPostAccount() {
|
||||||
|
return this.russianLegalEntityRussianBankPostAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRussianBankPostAccount(String russianLegalEntityRussianBankPostAccount) {
|
||||||
|
this.russianLegalEntityRussianBankPostAccount = russianLegalEntityRussianBankPostAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianLegalEntityRussianBankBik() {
|
||||||
|
return this.russianLegalEntityRussianBankBik;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianLegalEntityRussianBankBik(String russianLegalEntityRussianBankBik) {
|
||||||
|
this.russianLegalEntityRussianBankBik = russianLegalEntityRussianBankBik;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInternationalLegalEntityLegalName() {
|
||||||
|
return this.internationalLegalEntityLegalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInternationalLegalEntityLegalName(String internationalLegalEntityLegalName) {
|
||||||
|
this.internationalLegalEntityLegalName = internationalLegalEntityLegalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInternationalLegalEntityTradingName() {
|
||||||
|
return this.internationalLegalEntityTradingName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInternationalLegalEntityTradingName(String internationalLegalEntityTradingName) {
|
||||||
|
this.internationalLegalEntityTradingName = internationalLegalEntityTradingName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInternationalLegalEntityRegisteredAddress() {
|
||||||
|
return this.internationalLegalEntityRegisteredAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInternationalLegalEntityRegisteredAddress(String internationalLegalEntityRegisteredAddress) {
|
||||||
|
this.internationalLegalEntityRegisteredAddress = internationalLegalEntityRegisteredAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInternationalLegalEntityActualAddress() {
|
||||||
|
return this.internationalLegalEntityActualAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInternationalLegalEntityActualAddress(String internationalLegalEntityActualAddress) {
|
||||||
|
this.internationalLegalEntityActualAddress = internationalLegalEntityActualAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInternationalLegalEntityRegisteredNumber() {
|
||||||
|
return this.internationalLegalEntityRegisteredNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInternationalLegalEntityRegisteredNumber(String internationalLegalEntityRegisteredNumber) {
|
||||||
|
this.internationalLegalEntityRegisteredNumber = internationalLegalEntityRegisteredNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Privateentity getPrivateEntity() {
|
||||||
|
return this.privateEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrivateEntity(Privateentity privateEntity) {
|
||||||
|
this.privateEntity = privateEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianPrivateEntityFirstName() {
|
||||||
|
return this.russianPrivateEntityFirstName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianPrivateEntityFirstName(String russianPrivateEntityFirstName) {
|
||||||
|
this.russianPrivateEntityFirstName = russianPrivateEntityFirstName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianPrivateEntitySecondName() {
|
||||||
|
return this.russianPrivateEntitySecondName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianPrivateEntitySecondName(String russianPrivateEntitySecondName) {
|
||||||
|
this.russianPrivateEntitySecondName = russianPrivateEntitySecondName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianPrivateEntityMiddleName() {
|
||||||
|
return this.russianPrivateEntityMiddleName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianPrivateEntityMiddleName(String russianPrivateEntityMiddleName) {
|
||||||
|
this.russianPrivateEntityMiddleName = russianPrivateEntityMiddleName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianPrivateEntityPhoneNumber() {
|
||||||
|
return this.russianPrivateEntityPhoneNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianPrivateEntityPhoneNumber(String russianPrivateEntityPhoneNumber) {
|
||||||
|
this.russianPrivateEntityPhoneNumber = russianPrivateEntityPhoneNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRussianPrivateEntityEmail() {
|
||||||
|
return this.russianPrivateEntityEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRussianPrivateEntityEmail(String russianPrivateEntityEmail) {
|
||||||
|
this.russianPrivateEntityEmail = russianPrivateEntityEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Contractor other = (Contractor) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (contractorId == null) {
|
||||||
|
if (other.contractorId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!contractorId.equals(other.contractorId))
|
||||||
|
return false;
|
||||||
|
if (type == null) {
|
||||||
|
if (other.type != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!type.equals(other.type))
|
||||||
|
return false;
|
||||||
|
if (identificationalLevel == null) {
|
||||||
|
if (other.identificationalLevel != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!identificationalLevel.equals(other.identificationalLevel))
|
||||||
|
return false;
|
||||||
|
if (registeredUserEmail == null) {
|
||||||
|
if (other.registeredUserEmail != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!registeredUserEmail.equals(other.registeredUserEmail))
|
||||||
|
return false;
|
||||||
|
if (legalEntity == null) {
|
||||||
|
if (other.legalEntity != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!legalEntity.equals(other.legalEntity))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRegisteredName == null) {
|
||||||
|
if (other.russianLegalEntityRegisteredName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRegisteredName.equals(other.russianLegalEntityRegisteredName))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRegisteredNumber == null) {
|
||||||
|
if (other.russianLegalEntityRegisteredNumber != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRegisteredNumber.equals(other.russianLegalEntityRegisteredNumber))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityInn == null) {
|
||||||
|
if (other.russianLegalEntityInn != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityInn.equals(other.russianLegalEntityInn))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityActualAddress == null) {
|
||||||
|
if (other.russianLegalEntityActualAddress != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityActualAddress.equals(other.russianLegalEntityActualAddress))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityPostAddress == null) {
|
||||||
|
if (other.russianLegalEntityPostAddress != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityPostAddress.equals(other.russianLegalEntityPostAddress))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRepresentativePosition == null) {
|
||||||
|
if (other.russianLegalEntityRepresentativePosition != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRepresentativePosition.equals(other.russianLegalEntityRepresentativePosition))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRepresentativeFullName == null) {
|
||||||
|
if (other.russianLegalEntityRepresentativeFullName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRepresentativeFullName.equals(other.russianLegalEntityRepresentativeFullName))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRepresentativeDocument == null) {
|
||||||
|
if (other.russianLegalEntityRepresentativeDocument != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRepresentativeDocument.equals(other.russianLegalEntityRepresentativeDocument))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRussianBankAccount == null) {
|
||||||
|
if (other.russianLegalEntityRussianBankAccount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRussianBankAccount.equals(other.russianLegalEntityRussianBankAccount))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRussianBankName == null) {
|
||||||
|
if (other.russianLegalEntityRussianBankName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRussianBankName.equals(other.russianLegalEntityRussianBankName))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRussianBankPostAccount == null) {
|
||||||
|
if (other.russianLegalEntityRussianBankPostAccount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRussianBankPostAccount.equals(other.russianLegalEntityRussianBankPostAccount))
|
||||||
|
return false;
|
||||||
|
if (russianLegalEntityRussianBankBik == null) {
|
||||||
|
if (other.russianLegalEntityRussianBankBik != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianLegalEntityRussianBankBik.equals(other.russianLegalEntityRussianBankBik))
|
||||||
|
return false;
|
||||||
|
if (internationalLegalEntityLegalName == null) {
|
||||||
|
if (other.internationalLegalEntityLegalName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!internationalLegalEntityLegalName.equals(other.internationalLegalEntityLegalName))
|
||||||
|
return false;
|
||||||
|
if (internationalLegalEntityTradingName == null) {
|
||||||
|
if (other.internationalLegalEntityTradingName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!internationalLegalEntityTradingName.equals(other.internationalLegalEntityTradingName))
|
||||||
|
return false;
|
||||||
|
if (internationalLegalEntityRegisteredAddress == null) {
|
||||||
|
if (other.internationalLegalEntityRegisteredAddress != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!internationalLegalEntityRegisteredAddress.equals(other.internationalLegalEntityRegisteredAddress))
|
||||||
|
return false;
|
||||||
|
if (internationalLegalEntityActualAddress == null) {
|
||||||
|
if (other.internationalLegalEntityActualAddress != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!internationalLegalEntityActualAddress.equals(other.internationalLegalEntityActualAddress))
|
||||||
|
return false;
|
||||||
|
if (internationalLegalEntityRegisteredNumber == null) {
|
||||||
|
if (other.internationalLegalEntityRegisteredNumber != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!internationalLegalEntityRegisteredNumber.equals(other.internationalLegalEntityRegisteredNumber))
|
||||||
|
return false;
|
||||||
|
if (privateEntity == null) {
|
||||||
|
if (other.privateEntity != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!privateEntity.equals(other.privateEntity))
|
||||||
|
return false;
|
||||||
|
if (russianPrivateEntityFirstName == null) {
|
||||||
|
if (other.russianPrivateEntityFirstName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianPrivateEntityFirstName.equals(other.russianPrivateEntityFirstName))
|
||||||
|
return false;
|
||||||
|
if (russianPrivateEntitySecondName == null) {
|
||||||
|
if (other.russianPrivateEntitySecondName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianPrivateEntitySecondName.equals(other.russianPrivateEntitySecondName))
|
||||||
|
return false;
|
||||||
|
if (russianPrivateEntityMiddleName == null) {
|
||||||
|
if (other.russianPrivateEntityMiddleName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianPrivateEntityMiddleName.equals(other.russianPrivateEntityMiddleName))
|
||||||
|
return false;
|
||||||
|
if (russianPrivateEntityPhoneNumber == null) {
|
||||||
|
if (other.russianPrivateEntityPhoneNumber != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianPrivateEntityPhoneNumber.equals(other.russianPrivateEntityPhoneNumber))
|
||||||
|
return false;
|
||||||
|
if (russianPrivateEntityEmail == null) {
|
||||||
|
if (other.russianPrivateEntityEmail != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!russianPrivateEntityEmail.equals(other.russianPrivateEntityEmail))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.contractorId == null) ? 0 : this.contractorId.hashCode());
|
||||||
|
result = prime * result + ((this.type == null) ? 0 : this.type.hashCode());
|
||||||
|
result = prime * result + ((this.identificationalLevel == null) ? 0 : this.identificationalLevel.hashCode());
|
||||||
|
result = prime * result + ((this.registeredUserEmail == null) ? 0 : this.registeredUserEmail.hashCode());
|
||||||
|
result = prime * result + ((this.legalEntity == null) ? 0 : this.legalEntity.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRegisteredName == null) ? 0 : this.russianLegalEntityRegisteredName.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRegisteredNumber == null) ? 0 : this.russianLegalEntityRegisteredNumber.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityInn == null) ? 0 : this.russianLegalEntityInn.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityActualAddress == null) ? 0 : this.russianLegalEntityActualAddress.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityPostAddress == null) ? 0 : this.russianLegalEntityPostAddress.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRepresentativePosition == null) ? 0 : this.russianLegalEntityRepresentativePosition.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRepresentativeFullName == null) ? 0 : this.russianLegalEntityRepresentativeFullName.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRepresentativeDocument == null) ? 0 : this.russianLegalEntityRepresentativeDocument.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRussianBankAccount == null) ? 0 : this.russianLegalEntityRussianBankAccount.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRussianBankName == null) ? 0 : this.russianLegalEntityRussianBankName.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRussianBankPostAccount == null) ? 0 : this.russianLegalEntityRussianBankPostAccount.hashCode());
|
||||||
|
result = prime * result + ((this.russianLegalEntityRussianBankBik == null) ? 0 : this.russianLegalEntityRussianBankBik.hashCode());
|
||||||
|
result = prime * result + ((this.internationalLegalEntityLegalName == null) ? 0 : this.internationalLegalEntityLegalName.hashCode());
|
||||||
|
result = prime * result + ((this.internationalLegalEntityTradingName == null) ? 0 : this.internationalLegalEntityTradingName.hashCode());
|
||||||
|
result = prime * result + ((this.internationalLegalEntityRegisteredAddress == null) ? 0 : this.internationalLegalEntityRegisteredAddress.hashCode());
|
||||||
|
result = prime * result + ((this.internationalLegalEntityActualAddress == null) ? 0 : this.internationalLegalEntityActualAddress.hashCode());
|
||||||
|
result = prime * result + ((this.internationalLegalEntityRegisteredNumber == null) ? 0 : this.internationalLegalEntityRegisteredNumber.hashCode());
|
||||||
|
result = prime * result + ((this.privateEntity == null) ? 0 : this.privateEntity.hashCode());
|
||||||
|
result = prime * result + ((this.russianPrivateEntityFirstName == null) ? 0 : this.russianPrivateEntityFirstName.hashCode());
|
||||||
|
result = prime * result + ((this.russianPrivateEntitySecondName == null) ? 0 : this.russianPrivateEntitySecondName.hashCode());
|
||||||
|
result = prime * result + ((this.russianPrivateEntityMiddleName == null) ? 0 : this.russianPrivateEntityMiddleName.hashCode());
|
||||||
|
result = prime * result + ((this.russianPrivateEntityPhoneNumber == null) ? 0 : this.russianPrivateEntityPhoneNumber.hashCode());
|
||||||
|
result = prime * result + ((this.russianPrivateEntityEmail == null) ? 0 : this.russianPrivateEntityEmail.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Contractor (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(contractorId);
|
||||||
|
sb.append(", ").append(type);
|
||||||
|
sb.append(", ").append(identificationalLevel);
|
||||||
|
sb.append(", ").append(registeredUserEmail);
|
||||||
|
sb.append(", ").append(legalEntity);
|
||||||
|
sb.append(", ").append(russianLegalEntityRegisteredName);
|
||||||
|
sb.append(", ").append(russianLegalEntityRegisteredNumber);
|
||||||
|
sb.append(", ").append(russianLegalEntityInn);
|
||||||
|
sb.append(", ").append(russianLegalEntityActualAddress);
|
||||||
|
sb.append(", ").append(russianLegalEntityPostAddress);
|
||||||
|
sb.append(", ").append(russianLegalEntityRepresentativePosition);
|
||||||
|
sb.append(", ").append(russianLegalEntityRepresentativeFullName);
|
||||||
|
sb.append(", ").append(russianLegalEntityRepresentativeDocument);
|
||||||
|
sb.append(", ").append(russianLegalEntityRussianBankAccount);
|
||||||
|
sb.append(", ").append(russianLegalEntityRussianBankName);
|
||||||
|
sb.append(", ").append(russianLegalEntityRussianBankPostAccount);
|
||||||
|
sb.append(", ").append(russianLegalEntityRussianBankBik);
|
||||||
|
sb.append(", ").append(internationalLegalEntityLegalName);
|
||||||
|
sb.append(", ").append(internationalLegalEntityTradingName);
|
||||||
|
sb.append(", ").append(internationalLegalEntityRegisteredAddress);
|
||||||
|
sb.append(", ").append(internationalLegalEntityActualAddress);
|
||||||
|
sb.append(", ").append(internationalLegalEntityRegisteredNumber);
|
||||||
|
sb.append(", ").append(privateEntity);
|
||||||
|
sb.append(", ").append(russianPrivateEntityFirstName);
|
||||||
|
sb.append(", ").append(russianPrivateEntitySecondName);
|
||||||
|
sb.append(", ").append(russianPrivateEntityMiddleName);
|
||||||
|
sb.append(", ").append(russianPrivateEntityPhoneNumber);
|
||||||
|
sb.append(", ").append(russianPrivateEntityEmail);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,468 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Invoicestatus;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Invoice implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1890278354;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private String invoiceId;
|
||||||
|
private String partyId;
|
||||||
|
private String shopId;
|
||||||
|
private Long partyRevision;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private Invoicestatus status;
|
||||||
|
private String statusCancelledDetails;
|
||||||
|
private String statusFulfilledDetails;
|
||||||
|
private String detailsProduct;
|
||||||
|
private String detailsDescription;
|
||||||
|
private LocalDateTime due;
|
||||||
|
private Long amount;
|
||||||
|
private String currencyCode;
|
||||||
|
private byte[] context;
|
||||||
|
private String templateId;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Invoice() {}
|
||||||
|
|
||||||
|
public Invoice(Invoice value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.invoiceId = value.invoiceId;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.shopId = value.shopId;
|
||||||
|
this.partyRevision = value.partyRevision;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.status = value.status;
|
||||||
|
this.statusCancelledDetails = value.statusCancelledDetails;
|
||||||
|
this.statusFulfilledDetails = value.statusFulfilledDetails;
|
||||||
|
this.detailsProduct = value.detailsProduct;
|
||||||
|
this.detailsDescription = value.detailsDescription;
|
||||||
|
this.due = value.due;
|
||||||
|
this.amount = value.amount;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.context = value.context;
|
||||||
|
this.templateId = value.templateId;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Invoice(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
String invoiceId,
|
||||||
|
String partyId,
|
||||||
|
String shopId,
|
||||||
|
Long partyRevision,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
Invoicestatus status,
|
||||||
|
String statusCancelledDetails,
|
||||||
|
String statusFulfilledDetails,
|
||||||
|
String detailsProduct,
|
||||||
|
String detailsDescription,
|
||||||
|
LocalDateTime due,
|
||||||
|
Long amount,
|
||||||
|
String currencyCode,
|
||||||
|
byte[] context,
|
||||||
|
String templateId,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.shopId = shopId;
|
||||||
|
this.partyRevision = partyRevision;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.status = status;
|
||||||
|
this.statusCancelledDetails = statusCancelledDetails;
|
||||||
|
this.statusFulfilledDetails = statusFulfilledDetails;
|
||||||
|
this.detailsProduct = detailsProduct;
|
||||||
|
this.detailsDescription = detailsDescription;
|
||||||
|
this.due = due;
|
||||||
|
this.amount = amount;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.context = context;
|
||||||
|
this.templateId = templateId;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInvoiceId() {
|
||||||
|
return this.invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvoiceId(String invoiceId) {
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShopId() {
|
||||||
|
return this.shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopId(String shopId) {
|
||||||
|
this.shopId = shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPartyRevision() {
|
||||||
|
return this.partyRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyRevision(Long partyRevision) {
|
||||||
|
this.partyRevision = partyRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Invoicestatus getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Invoicestatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatusCancelledDetails() {
|
||||||
|
return this.statusCancelledDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusCancelledDetails(String statusCancelledDetails) {
|
||||||
|
this.statusCancelledDetails = statusCancelledDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatusFulfilledDetails() {
|
||||||
|
return this.statusFulfilledDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusFulfilledDetails(String statusFulfilledDetails) {
|
||||||
|
this.statusFulfilledDetails = statusFulfilledDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailsProduct() {
|
||||||
|
return this.detailsProduct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailsProduct(String detailsProduct) {
|
||||||
|
this.detailsProduct = detailsProduct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailsDescription() {
|
||||||
|
return this.detailsDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailsDescription(String detailsDescription) {
|
||||||
|
this.detailsDescription = detailsDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getDue() {
|
||||||
|
return this.due;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDue(LocalDateTime due) {
|
||||||
|
this.due = due;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAmount() {
|
||||||
|
return this.amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(Long amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] getContext() {
|
||||||
|
return this.context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContext(byte... context) {
|
||||||
|
this.context = context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTemplateId() {
|
||||||
|
return this.templateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTemplateId(String templateId) {
|
||||||
|
this.templateId = templateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Invoice other = (Invoice) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (invoiceId == null) {
|
||||||
|
if (other.invoiceId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!invoiceId.equals(other.invoiceId))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (shopId == null) {
|
||||||
|
if (other.shopId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!shopId.equals(other.shopId))
|
||||||
|
return false;
|
||||||
|
if (partyRevision == null) {
|
||||||
|
if (other.partyRevision != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyRevision.equals(other.partyRevision))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (status == null) {
|
||||||
|
if (other.status != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!status.equals(other.status))
|
||||||
|
return false;
|
||||||
|
if (statusCancelledDetails == null) {
|
||||||
|
if (other.statusCancelledDetails != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusCancelledDetails.equals(other.statusCancelledDetails))
|
||||||
|
return false;
|
||||||
|
if (statusFulfilledDetails == null) {
|
||||||
|
if (other.statusFulfilledDetails != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusFulfilledDetails.equals(other.statusFulfilledDetails))
|
||||||
|
return false;
|
||||||
|
if (detailsProduct == null) {
|
||||||
|
if (other.detailsProduct != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!detailsProduct.equals(other.detailsProduct))
|
||||||
|
return false;
|
||||||
|
if (detailsDescription == null) {
|
||||||
|
if (other.detailsDescription != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!detailsDescription.equals(other.detailsDescription))
|
||||||
|
return false;
|
||||||
|
if (due == null) {
|
||||||
|
if (other.due != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!due.equals(other.due))
|
||||||
|
return false;
|
||||||
|
if (amount == null) {
|
||||||
|
if (other.amount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!amount.equals(other.amount))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (context == null) {
|
||||||
|
if (other.context != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!Arrays.equals(context, other.context))
|
||||||
|
return false;
|
||||||
|
if (templateId == null) {
|
||||||
|
if (other.templateId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!templateId.equals(other.templateId))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.invoiceId == null) ? 0 : this.invoiceId.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.shopId == null) ? 0 : this.shopId.hashCode());
|
||||||
|
result = prime * result + ((this.partyRevision == null) ? 0 : this.partyRevision.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.status == null) ? 0 : this.status.hashCode());
|
||||||
|
result = prime * result + ((this.statusCancelledDetails == null) ? 0 : this.statusCancelledDetails.hashCode());
|
||||||
|
result = prime * result + ((this.statusFulfilledDetails == null) ? 0 : this.statusFulfilledDetails.hashCode());
|
||||||
|
result = prime * result + ((this.detailsProduct == null) ? 0 : this.detailsProduct.hashCode());
|
||||||
|
result = prime * result + ((this.detailsDescription == null) ? 0 : this.detailsDescription.hashCode());
|
||||||
|
result = prime * result + ((this.due == null) ? 0 : this.due.hashCode());
|
||||||
|
result = prime * result + ((this.amount == null) ? 0 : this.amount.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.context == null) ? 0 : Arrays.hashCode(this.context));
|
||||||
|
result = prime * result + ((this.templateId == null) ? 0 : this.templateId.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Invoice (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(invoiceId);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(shopId);
|
||||||
|
sb.append(", ").append(partyRevision);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(status);
|
||||||
|
sb.append(", ").append(statusCancelledDetails);
|
||||||
|
sb.append(", ").append(statusFulfilledDetails);
|
||||||
|
sb.append(", ").append(detailsProduct);
|
||||||
|
sb.append(", ").append(detailsDescription);
|
||||||
|
sb.append(", ").append(due);
|
||||||
|
sb.append(", ").append(amount);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append("[binary...]");
|
||||||
|
sb.append(", ").append(templateId);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,204 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class InvoiceCart implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1899038426;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long invId;
|
||||||
|
private String product;
|
||||||
|
private Integer quantity;
|
||||||
|
private Long amount;
|
||||||
|
private String currencyCode;
|
||||||
|
private String metadataJson;
|
||||||
|
|
||||||
|
public InvoiceCart() {}
|
||||||
|
|
||||||
|
public InvoiceCart(InvoiceCart value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.invId = value.invId;
|
||||||
|
this.product = value.product;
|
||||||
|
this.quantity = value.quantity;
|
||||||
|
this.amount = value.amount;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.metadataJson = value.metadataJson;
|
||||||
|
}
|
||||||
|
|
||||||
|
public InvoiceCart(
|
||||||
|
Long id,
|
||||||
|
Long invId,
|
||||||
|
String product,
|
||||||
|
Integer quantity,
|
||||||
|
Long amount,
|
||||||
|
String currencyCode,
|
||||||
|
String metadataJson
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.invId = invId;
|
||||||
|
this.product = product;
|
||||||
|
this.quantity = quantity;
|
||||||
|
this.amount = amount;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.metadataJson = metadataJson;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getInvId() {
|
||||||
|
return this.invId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvId(Long invId) {
|
||||||
|
this.invId = invId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProduct() {
|
||||||
|
return this.product;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProduct(String product) {
|
||||||
|
this.product = product;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getQuantity() {
|
||||||
|
return this.quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantity(Integer quantity) {
|
||||||
|
this.quantity = quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAmount() {
|
||||||
|
return this.amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(Long amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMetadataJson() {
|
||||||
|
return this.metadataJson;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMetadataJson(String metadataJson) {
|
||||||
|
this.metadataJson = metadataJson;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final InvoiceCart other = (InvoiceCart) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (invId == null) {
|
||||||
|
if (other.invId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!invId.equals(other.invId))
|
||||||
|
return false;
|
||||||
|
if (product == null) {
|
||||||
|
if (other.product != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!product.equals(other.product))
|
||||||
|
return false;
|
||||||
|
if (quantity == null) {
|
||||||
|
if (other.quantity != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!quantity.equals(other.quantity))
|
||||||
|
return false;
|
||||||
|
if (amount == null) {
|
||||||
|
if (other.amount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!amount.equals(other.amount))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (metadataJson == null) {
|
||||||
|
if (other.metadataJson != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!metadataJson.equals(other.metadataJson))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.invId == null) ? 0 : this.invId.hashCode());
|
||||||
|
result = prime * result + ((this.product == null) ? 0 : this.product.hashCode());
|
||||||
|
result = prime * result + ((this.quantity == null) ? 0 : this.quantity.hashCode());
|
||||||
|
result = prime * result + ((this.amount == null) ? 0 : this.amount.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.metadataJson == null) ? 0 : this.metadataJson.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("InvoiceCart (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(invId);
|
||||||
|
sb.append(", ").append(product);
|
||||||
|
sb.append(", ").append(quantity);
|
||||||
|
sb.append(", ").append(amount);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append(metadataJson);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
468
src/main/java/com/rbkmoney/newway/domain/tables/pojos/Party.java
Normal file
468
src/main/java/com/rbkmoney/newway/domain/tables/pojos/Party.java
Normal file
@ -0,0 +1,468 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Blocking;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Suspension;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Party implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1669058482;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private String partyId;
|
||||||
|
private String contactInfoEmail;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private Blocking blocking;
|
||||||
|
private String blockingUnblockedReason;
|
||||||
|
private LocalDateTime blockingUnblockedSince;
|
||||||
|
private String blockingBlockedReason;
|
||||||
|
private LocalDateTime blockingBlockedSince;
|
||||||
|
private Suspension suspension;
|
||||||
|
private LocalDateTime suspensionActiveSince;
|
||||||
|
private LocalDateTime suspensionSuspendedSince;
|
||||||
|
private Long revision;
|
||||||
|
private LocalDateTime revisionChangedAt;
|
||||||
|
private String partyMetaSetNs;
|
||||||
|
private String partyMetaSetDataJson;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Party() {}
|
||||||
|
|
||||||
|
public Party(Party value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.contactInfoEmail = value.contactInfoEmail;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.blocking = value.blocking;
|
||||||
|
this.blockingUnblockedReason = value.blockingUnblockedReason;
|
||||||
|
this.blockingUnblockedSince = value.blockingUnblockedSince;
|
||||||
|
this.blockingBlockedReason = value.blockingBlockedReason;
|
||||||
|
this.blockingBlockedSince = value.blockingBlockedSince;
|
||||||
|
this.suspension = value.suspension;
|
||||||
|
this.suspensionActiveSince = value.suspensionActiveSince;
|
||||||
|
this.suspensionSuspendedSince = value.suspensionSuspendedSince;
|
||||||
|
this.revision = value.revision;
|
||||||
|
this.revisionChangedAt = value.revisionChangedAt;
|
||||||
|
this.partyMetaSetNs = value.partyMetaSetNs;
|
||||||
|
this.partyMetaSetDataJson = value.partyMetaSetDataJson;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Party(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
String partyId,
|
||||||
|
String contactInfoEmail,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
Blocking blocking,
|
||||||
|
String blockingUnblockedReason,
|
||||||
|
LocalDateTime blockingUnblockedSince,
|
||||||
|
String blockingBlockedReason,
|
||||||
|
LocalDateTime blockingBlockedSince,
|
||||||
|
Suspension suspension,
|
||||||
|
LocalDateTime suspensionActiveSince,
|
||||||
|
LocalDateTime suspensionSuspendedSince,
|
||||||
|
Long revision,
|
||||||
|
LocalDateTime revisionChangedAt,
|
||||||
|
String partyMetaSetNs,
|
||||||
|
String partyMetaSetDataJson,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.contactInfoEmail = contactInfoEmail;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.blocking = blocking;
|
||||||
|
this.blockingUnblockedReason = blockingUnblockedReason;
|
||||||
|
this.blockingUnblockedSince = blockingUnblockedSince;
|
||||||
|
this.blockingBlockedReason = blockingBlockedReason;
|
||||||
|
this.blockingBlockedSince = blockingBlockedSince;
|
||||||
|
this.suspension = suspension;
|
||||||
|
this.suspensionActiveSince = suspensionActiveSince;
|
||||||
|
this.suspensionSuspendedSince = suspensionSuspendedSince;
|
||||||
|
this.revision = revision;
|
||||||
|
this.revisionChangedAt = revisionChangedAt;
|
||||||
|
this.partyMetaSetNs = partyMetaSetNs;
|
||||||
|
this.partyMetaSetDataJson = partyMetaSetDataJson;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContactInfoEmail() {
|
||||||
|
return this.contactInfoEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContactInfoEmail(String contactInfoEmail) {
|
||||||
|
this.contactInfoEmail = contactInfoEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Blocking getBlocking() {
|
||||||
|
return this.blocking;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlocking(Blocking blocking) {
|
||||||
|
this.blocking = blocking;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBlockingUnblockedReason() {
|
||||||
|
return this.blockingUnblockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingUnblockedReason(String blockingUnblockedReason) {
|
||||||
|
this.blockingUnblockedReason = blockingUnblockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getBlockingUnblockedSince() {
|
||||||
|
return this.blockingUnblockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingUnblockedSince(LocalDateTime blockingUnblockedSince) {
|
||||||
|
this.blockingUnblockedSince = blockingUnblockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBlockingBlockedReason() {
|
||||||
|
return this.blockingBlockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingBlockedReason(String blockingBlockedReason) {
|
||||||
|
this.blockingBlockedReason = blockingBlockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getBlockingBlockedSince() {
|
||||||
|
return this.blockingBlockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingBlockedSince(LocalDateTime blockingBlockedSince) {
|
||||||
|
this.blockingBlockedSince = blockingBlockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Suspension getSuspension() {
|
||||||
|
return this.suspension;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspension(Suspension suspension) {
|
||||||
|
this.suspension = suspension;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getSuspensionActiveSince() {
|
||||||
|
return this.suspensionActiveSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspensionActiveSince(LocalDateTime suspensionActiveSince) {
|
||||||
|
this.suspensionActiveSince = suspensionActiveSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getSuspensionSuspendedSince() {
|
||||||
|
return this.suspensionSuspendedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspensionSuspendedSince(LocalDateTime suspensionSuspendedSince) {
|
||||||
|
this.suspensionSuspendedSince = suspensionSuspendedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getRevision() {
|
||||||
|
return this.revision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevision(Long revision) {
|
||||||
|
this.revision = revision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getRevisionChangedAt() {
|
||||||
|
return this.revisionChangedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevisionChangedAt(LocalDateTime revisionChangedAt) {
|
||||||
|
this.revisionChangedAt = revisionChangedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyMetaSetNs() {
|
||||||
|
return this.partyMetaSetNs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyMetaSetNs(String partyMetaSetNs) {
|
||||||
|
this.partyMetaSetNs = partyMetaSetNs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyMetaSetDataJson() {
|
||||||
|
return this.partyMetaSetDataJson;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyMetaSetDataJson(String partyMetaSetDataJson) {
|
||||||
|
this.partyMetaSetDataJson = partyMetaSetDataJson;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Party other = (Party) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (contactInfoEmail == null) {
|
||||||
|
if (other.contactInfoEmail != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!contactInfoEmail.equals(other.contactInfoEmail))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (blocking == null) {
|
||||||
|
if (other.blocking != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blocking.equals(other.blocking))
|
||||||
|
return false;
|
||||||
|
if (blockingUnblockedReason == null) {
|
||||||
|
if (other.blockingUnblockedReason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingUnblockedReason.equals(other.blockingUnblockedReason))
|
||||||
|
return false;
|
||||||
|
if (blockingUnblockedSince == null) {
|
||||||
|
if (other.blockingUnblockedSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingUnblockedSince.equals(other.blockingUnblockedSince))
|
||||||
|
return false;
|
||||||
|
if (blockingBlockedReason == null) {
|
||||||
|
if (other.blockingBlockedReason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingBlockedReason.equals(other.blockingBlockedReason))
|
||||||
|
return false;
|
||||||
|
if (blockingBlockedSince == null) {
|
||||||
|
if (other.blockingBlockedSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingBlockedSince.equals(other.blockingBlockedSince))
|
||||||
|
return false;
|
||||||
|
if (suspension == null) {
|
||||||
|
if (other.suspension != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!suspension.equals(other.suspension))
|
||||||
|
return false;
|
||||||
|
if (suspensionActiveSince == null) {
|
||||||
|
if (other.suspensionActiveSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!suspensionActiveSince.equals(other.suspensionActiveSince))
|
||||||
|
return false;
|
||||||
|
if (suspensionSuspendedSince == null) {
|
||||||
|
if (other.suspensionSuspendedSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!suspensionSuspendedSince.equals(other.suspensionSuspendedSince))
|
||||||
|
return false;
|
||||||
|
if (revision == null) {
|
||||||
|
if (other.revision != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!revision.equals(other.revision))
|
||||||
|
return false;
|
||||||
|
if (revisionChangedAt == null) {
|
||||||
|
if (other.revisionChangedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!revisionChangedAt.equals(other.revisionChangedAt))
|
||||||
|
return false;
|
||||||
|
if (partyMetaSetNs == null) {
|
||||||
|
if (other.partyMetaSetNs != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyMetaSetNs.equals(other.partyMetaSetNs))
|
||||||
|
return false;
|
||||||
|
if (partyMetaSetDataJson == null) {
|
||||||
|
if (other.partyMetaSetDataJson != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyMetaSetDataJson.equals(other.partyMetaSetDataJson))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.contactInfoEmail == null) ? 0 : this.contactInfoEmail.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.blocking == null) ? 0 : this.blocking.hashCode());
|
||||||
|
result = prime * result + ((this.blockingUnblockedReason == null) ? 0 : this.blockingUnblockedReason.hashCode());
|
||||||
|
result = prime * result + ((this.blockingUnblockedSince == null) ? 0 : this.blockingUnblockedSince.hashCode());
|
||||||
|
result = prime * result + ((this.blockingBlockedReason == null) ? 0 : this.blockingBlockedReason.hashCode());
|
||||||
|
result = prime * result + ((this.blockingBlockedSince == null) ? 0 : this.blockingBlockedSince.hashCode());
|
||||||
|
result = prime * result + ((this.suspension == null) ? 0 : this.suspension.hashCode());
|
||||||
|
result = prime * result + ((this.suspensionActiveSince == null) ? 0 : this.suspensionActiveSince.hashCode());
|
||||||
|
result = prime * result + ((this.suspensionSuspendedSince == null) ? 0 : this.suspensionSuspendedSince.hashCode());
|
||||||
|
result = prime * result + ((this.revision == null) ? 0 : this.revision.hashCode());
|
||||||
|
result = prime * result + ((this.revisionChangedAt == null) ? 0 : this.revisionChangedAt.hashCode());
|
||||||
|
result = prime * result + ((this.partyMetaSetNs == null) ? 0 : this.partyMetaSetNs.hashCode());
|
||||||
|
result = prime * result + ((this.partyMetaSetDataJson == null) ? 0 : this.partyMetaSetDataJson.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Party (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(contactInfoEmail);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(blocking);
|
||||||
|
sb.append(", ").append(blockingUnblockedReason);
|
||||||
|
sb.append(", ").append(blockingUnblockedSince);
|
||||||
|
sb.append(", ").append(blockingBlockedReason);
|
||||||
|
sb.append(", ").append(blockingBlockedSince);
|
||||||
|
sb.append(", ").append(suspension);
|
||||||
|
sb.append(", ").append(suspensionActiveSince);
|
||||||
|
sb.append(", ").append(suspensionSuspendedSince);
|
||||||
|
sb.append(", ").append(revision);
|
||||||
|
sb.append(", ").append(revisionChangedAt);
|
||||||
|
sb.append(", ").append(partyMetaSetNs);
|
||||||
|
sb.append(", ").append(partyMetaSetDataJson);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,912 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payertype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentstatus;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymenttooltype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Riskscore;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Payment implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -482841056;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private String paymentId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private String invoiceId;
|
||||||
|
private String partyId;
|
||||||
|
private String shopId;
|
||||||
|
private Long domainRevision;
|
||||||
|
private Paymentstatus status;
|
||||||
|
private String statusCancelledReason;
|
||||||
|
private String statusCapturedReason;
|
||||||
|
private String statusFailedFailure;
|
||||||
|
private Long amount;
|
||||||
|
private String currencyCode;
|
||||||
|
private Payertype payerType;
|
||||||
|
private Paymenttooltype payerPaymentToolType;
|
||||||
|
private String payerBankCardToken;
|
||||||
|
private String payerBankCardPaymentSystem;
|
||||||
|
private String payerBankCardBin;
|
||||||
|
private String payerBankCardMaskedPan;
|
||||||
|
private String payerBankCardTokenProvider;
|
||||||
|
private String payerPaymentTerminalType;
|
||||||
|
private String payerDigitalWalletProvider;
|
||||||
|
private String payerDigitalWalletId;
|
||||||
|
private String payerPaymentSessionId;
|
||||||
|
private String payerIpAddress;
|
||||||
|
private String payerFingerprint;
|
||||||
|
private String payerPhoneNumber;
|
||||||
|
private String payerEmail;
|
||||||
|
private String payerCustomerId;
|
||||||
|
private String payerCustomerBindingId;
|
||||||
|
private String payerCustomerRecPaymentToolId;
|
||||||
|
private byte[] context;
|
||||||
|
private Paymentflowtype paymentFlowType;
|
||||||
|
private String paymentFlowOnHoldExpiration;
|
||||||
|
private LocalDateTime paymentFlowHeldUntil;
|
||||||
|
private Riskscore riskScore;
|
||||||
|
private Integer routeProviderId;
|
||||||
|
private Integer routeTerminalId;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Payment() {}
|
||||||
|
|
||||||
|
public Payment(Payment value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.paymentId = value.paymentId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.invoiceId = value.invoiceId;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.shopId = value.shopId;
|
||||||
|
this.domainRevision = value.domainRevision;
|
||||||
|
this.status = value.status;
|
||||||
|
this.statusCancelledReason = value.statusCancelledReason;
|
||||||
|
this.statusCapturedReason = value.statusCapturedReason;
|
||||||
|
this.statusFailedFailure = value.statusFailedFailure;
|
||||||
|
this.amount = value.amount;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.payerType = value.payerType;
|
||||||
|
this.payerPaymentToolType = value.payerPaymentToolType;
|
||||||
|
this.payerBankCardToken = value.payerBankCardToken;
|
||||||
|
this.payerBankCardPaymentSystem = value.payerBankCardPaymentSystem;
|
||||||
|
this.payerBankCardBin = value.payerBankCardBin;
|
||||||
|
this.payerBankCardMaskedPan = value.payerBankCardMaskedPan;
|
||||||
|
this.payerBankCardTokenProvider = value.payerBankCardTokenProvider;
|
||||||
|
this.payerPaymentTerminalType = value.payerPaymentTerminalType;
|
||||||
|
this.payerDigitalWalletProvider = value.payerDigitalWalletProvider;
|
||||||
|
this.payerDigitalWalletId = value.payerDigitalWalletId;
|
||||||
|
this.payerPaymentSessionId = value.payerPaymentSessionId;
|
||||||
|
this.payerIpAddress = value.payerIpAddress;
|
||||||
|
this.payerFingerprint = value.payerFingerprint;
|
||||||
|
this.payerPhoneNumber = value.payerPhoneNumber;
|
||||||
|
this.payerEmail = value.payerEmail;
|
||||||
|
this.payerCustomerId = value.payerCustomerId;
|
||||||
|
this.payerCustomerBindingId = value.payerCustomerBindingId;
|
||||||
|
this.payerCustomerRecPaymentToolId = value.payerCustomerRecPaymentToolId;
|
||||||
|
this.context = value.context;
|
||||||
|
this.paymentFlowType = value.paymentFlowType;
|
||||||
|
this.paymentFlowOnHoldExpiration = value.paymentFlowOnHoldExpiration;
|
||||||
|
this.paymentFlowHeldUntil = value.paymentFlowHeldUntil;
|
||||||
|
this.riskScore = value.riskScore;
|
||||||
|
this.routeProviderId = value.routeProviderId;
|
||||||
|
this.routeTerminalId = value.routeTerminalId;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Payment(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
String paymentId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
String invoiceId,
|
||||||
|
String partyId,
|
||||||
|
String shopId,
|
||||||
|
Long domainRevision,
|
||||||
|
Paymentstatus status,
|
||||||
|
String statusCancelledReason,
|
||||||
|
String statusCapturedReason,
|
||||||
|
String statusFailedFailure,
|
||||||
|
Long amount,
|
||||||
|
String currencyCode,
|
||||||
|
Payertype payerType,
|
||||||
|
Paymenttooltype payerPaymentToolType,
|
||||||
|
String payerBankCardToken,
|
||||||
|
String payerBankCardPaymentSystem,
|
||||||
|
String payerBankCardBin,
|
||||||
|
String payerBankCardMaskedPan,
|
||||||
|
String payerBankCardTokenProvider,
|
||||||
|
String payerPaymentTerminalType,
|
||||||
|
String payerDigitalWalletProvider,
|
||||||
|
String payerDigitalWalletId,
|
||||||
|
String payerPaymentSessionId,
|
||||||
|
String payerIpAddress,
|
||||||
|
String payerFingerprint,
|
||||||
|
String payerPhoneNumber,
|
||||||
|
String payerEmail,
|
||||||
|
String payerCustomerId,
|
||||||
|
String payerCustomerBindingId,
|
||||||
|
String payerCustomerRecPaymentToolId,
|
||||||
|
byte[] context,
|
||||||
|
Paymentflowtype paymentFlowType,
|
||||||
|
String paymentFlowOnHoldExpiration,
|
||||||
|
LocalDateTime paymentFlowHeldUntil,
|
||||||
|
Riskscore riskScore,
|
||||||
|
Integer routeProviderId,
|
||||||
|
Integer routeTerminalId,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.paymentId = paymentId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.shopId = shopId;
|
||||||
|
this.domainRevision = domainRevision;
|
||||||
|
this.status = status;
|
||||||
|
this.statusCancelledReason = statusCancelledReason;
|
||||||
|
this.statusCapturedReason = statusCapturedReason;
|
||||||
|
this.statusFailedFailure = statusFailedFailure;
|
||||||
|
this.amount = amount;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.payerType = payerType;
|
||||||
|
this.payerPaymentToolType = payerPaymentToolType;
|
||||||
|
this.payerBankCardToken = payerBankCardToken;
|
||||||
|
this.payerBankCardPaymentSystem = payerBankCardPaymentSystem;
|
||||||
|
this.payerBankCardBin = payerBankCardBin;
|
||||||
|
this.payerBankCardMaskedPan = payerBankCardMaskedPan;
|
||||||
|
this.payerBankCardTokenProvider = payerBankCardTokenProvider;
|
||||||
|
this.payerPaymentTerminalType = payerPaymentTerminalType;
|
||||||
|
this.payerDigitalWalletProvider = payerDigitalWalletProvider;
|
||||||
|
this.payerDigitalWalletId = payerDigitalWalletId;
|
||||||
|
this.payerPaymentSessionId = payerPaymentSessionId;
|
||||||
|
this.payerIpAddress = payerIpAddress;
|
||||||
|
this.payerFingerprint = payerFingerprint;
|
||||||
|
this.payerPhoneNumber = payerPhoneNumber;
|
||||||
|
this.payerEmail = payerEmail;
|
||||||
|
this.payerCustomerId = payerCustomerId;
|
||||||
|
this.payerCustomerBindingId = payerCustomerBindingId;
|
||||||
|
this.payerCustomerRecPaymentToolId = payerCustomerRecPaymentToolId;
|
||||||
|
this.context = context;
|
||||||
|
this.paymentFlowType = paymentFlowType;
|
||||||
|
this.paymentFlowOnHoldExpiration = paymentFlowOnHoldExpiration;
|
||||||
|
this.paymentFlowHeldUntil = paymentFlowHeldUntil;
|
||||||
|
this.riskScore = riskScore;
|
||||||
|
this.routeProviderId = routeProviderId;
|
||||||
|
this.routeTerminalId = routeTerminalId;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPaymentId() {
|
||||||
|
return this.paymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentId(String paymentId) {
|
||||||
|
this.paymentId = paymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInvoiceId() {
|
||||||
|
return this.invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvoiceId(String invoiceId) {
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShopId() {
|
||||||
|
return this.shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopId(String shopId) {
|
||||||
|
this.shopId = shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDomainRevision() {
|
||||||
|
return this.domainRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDomainRevision(Long domainRevision) {
|
||||||
|
this.domainRevision = domainRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paymentstatus getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Paymentstatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatusCancelledReason() {
|
||||||
|
return this.statusCancelledReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusCancelledReason(String statusCancelledReason) {
|
||||||
|
this.statusCancelledReason = statusCancelledReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatusCapturedReason() {
|
||||||
|
return this.statusCapturedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusCapturedReason(String statusCapturedReason) {
|
||||||
|
this.statusCapturedReason = statusCapturedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatusFailedFailure() {
|
||||||
|
return this.statusFailedFailure;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusFailedFailure(String statusFailedFailure) {
|
||||||
|
this.statusFailedFailure = statusFailedFailure;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAmount() {
|
||||||
|
return this.amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(Long amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Payertype getPayerType() {
|
||||||
|
return this.payerType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerType(Payertype payerType) {
|
||||||
|
this.payerType = payerType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paymenttooltype getPayerPaymentToolType() {
|
||||||
|
return this.payerPaymentToolType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerPaymentToolType(Paymenttooltype payerPaymentToolType) {
|
||||||
|
this.payerPaymentToolType = payerPaymentToolType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerBankCardToken() {
|
||||||
|
return this.payerBankCardToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerBankCardToken(String payerBankCardToken) {
|
||||||
|
this.payerBankCardToken = payerBankCardToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerBankCardPaymentSystem() {
|
||||||
|
return this.payerBankCardPaymentSystem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerBankCardPaymentSystem(String payerBankCardPaymentSystem) {
|
||||||
|
this.payerBankCardPaymentSystem = payerBankCardPaymentSystem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerBankCardBin() {
|
||||||
|
return this.payerBankCardBin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerBankCardBin(String payerBankCardBin) {
|
||||||
|
this.payerBankCardBin = payerBankCardBin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerBankCardMaskedPan() {
|
||||||
|
return this.payerBankCardMaskedPan;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerBankCardMaskedPan(String payerBankCardMaskedPan) {
|
||||||
|
this.payerBankCardMaskedPan = payerBankCardMaskedPan;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerBankCardTokenProvider() {
|
||||||
|
return this.payerBankCardTokenProvider;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerBankCardTokenProvider(String payerBankCardTokenProvider) {
|
||||||
|
this.payerBankCardTokenProvider = payerBankCardTokenProvider;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerPaymentTerminalType() {
|
||||||
|
return this.payerPaymentTerminalType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerPaymentTerminalType(String payerPaymentTerminalType) {
|
||||||
|
this.payerPaymentTerminalType = payerPaymentTerminalType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerDigitalWalletProvider() {
|
||||||
|
return this.payerDigitalWalletProvider;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerDigitalWalletProvider(String payerDigitalWalletProvider) {
|
||||||
|
this.payerDigitalWalletProvider = payerDigitalWalletProvider;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerDigitalWalletId() {
|
||||||
|
return this.payerDigitalWalletId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerDigitalWalletId(String payerDigitalWalletId) {
|
||||||
|
this.payerDigitalWalletId = payerDigitalWalletId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerPaymentSessionId() {
|
||||||
|
return this.payerPaymentSessionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerPaymentSessionId(String payerPaymentSessionId) {
|
||||||
|
this.payerPaymentSessionId = payerPaymentSessionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerIpAddress() {
|
||||||
|
return this.payerIpAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerIpAddress(String payerIpAddress) {
|
||||||
|
this.payerIpAddress = payerIpAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerFingerprint() {
|
||||||
|
return this.payerFingerprint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerFingerprint(String payerFingerprint) {
|
||||||
|
this.payerFingerprint = payerFingerprint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerPhoneNumber() {
|
||||||
|
return this.payerPhoneNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerPhoneNumber(String payerPhoneNumber) {
|
||||||
|
this.payerPhoneNumber = payerPhoneNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerEmail() {
|
||||||
|
return this.payerEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerEmail(String payerEmail) {
|
||||||
|
this.payerEmail = payerEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerCustomerId() {
|
||||||
|
return this.payerCustomerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerCustomerId(String payerCustomerId) {
|
||||||
|
this.payerCustomerId = payerCustomerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerCustomerBindingId() {
|
||||||
|
return this.payerCustomerBindingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerCustomerBindingId(String payerCustomerBindingId) {
|
||||||
|
this.payerCustomerBindingId = payerCustomerBindingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayerCustomerRecPaymentToolId() {
|
||||||
|
return this.payerCustomerRecPaymentToolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayerCustomerRecPaymentToolId(String payerCustomerRecPaymentToolId) {
|
||||||
|
this.payerCustomerRecPaymentToolId = payerCustomerRecPaymentToolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] getContext() {
|
||||||
|
return this.context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContext(byte... context) {
|
||||||
|
this.context = context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paymentflowtype getPaymentFlowType() {
|
||||||
|
return this.paymentFlowType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentFlowType(Paymentflowtype paymentFlowType) {
|
||||||
|
this.paymentFlowType = paymentFlowType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPaymentFlowOnHoldExpiration() {
|
||||||
|
return this.paymentFlowOnHoldExpiration;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentFlowOnHoldExpiration(String paymentFlowOnHoldExpiration) {
|
||||||
|
this.paymentFlowOnHoldExpiration = paymentFlowOnHoldExpiration;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getPaymentFlowHeldUntil() {
|
||||||
|
return this.paymentFlowHeldUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentFlowHeldUntil(LocalDateTime paymentFlowHeldUntil) {
|
||||||
|
this.paymentFlowHeldUntil = paymentFlowHeldUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Riskscore getRiskScore() {
|
||||||
|
return this.riskScore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRiskScore(Riskscore riskScore) {
|
||||||
|
this.riskScore = riskScore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRouteProviderId() {
|
||||||
|
return this.routeProviderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouteProviderId(Integer routeProviderId) {
|
||||||
|
this.routeProviderId = routeProviderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRouteTerminalId() {
|
||||||
|
return this.routeTerminalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouteTerminalId(Integer routeTerminalId) {
|
||||||
|
this.routeTerminalId = routeTerminalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Payment other = (Payment) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (paymentId == null) {
|
||||||
|
if (other.paymentId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentId.equals(other.paymentId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (invoiceId == null) {
|
||||||
|
if (other.invoiceId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!invoiceId.equals(other.invoiceId))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (shopId == null) {
|
||||||
|
if (other.shopId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!shopId.equals(other.shopId))
|
||||||
|
return false;
|
||||||
|
if (domainRevision == null) {
|
||||||
|
if (other.domainRevision != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!domainRevision.equals(other.domainRevision))
|
||||||
|
return false;
|
||||||
|
if (status == null) {
|
||||||
|
if (other.status != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!status.equals(other.status))
|
||||||
|
return false;
|
||||||
|
if (statusCancelledReason == null) {
|
||||||
|
if (other.statusCancelledReason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusCancelledReason.equals(other.statusCancelledReason))
|
||||||
|
return false;
|
||||||
|
if (statusCapturedReason == null) {
|
||||||
|
if (other.statusCapturedReason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusCapturedReason.equals(other.statusCapturedReason))
|
||||||
|
return false;
|
||||||
|
if (statusFailedFailure == null) {
|
||||||
|
if (other.statusFailedFailure != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusFailedFailure.equals(other.statusFailedFailure))
|
||||||
|
return false;
|
||||||
|
if (amount == null) {
|
||||||
|
if (other.amount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!amount.equals(other.amount))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (payerType == null) {
|
||||||
|
if (other.payerType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerType.equals(other.payerType))
|
||||||
|
return false;
|
||||||
|
if (payerPaymentToolType == null) {
|
||||||
|
if (other.payerPaymentToolType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerPaymentToolType.equals(other.payerPaymentToolType))
|
||||||
|
return false;
|
||||||
|
if (payerBankCardToken == null) {
|
||||||
|
if (other.payerBankCardToken != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerBankCardToken.equals(other.payerBankCardToken))
|
||||||
|
return false;
|
||||||
|
if (payerBankCardPaymentSystem == null) {
|
||||||
|
if (other.payerBankCardPaymentSystem != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerBankCardPaymentSystem.equals(other.payerBankCardPaymentSystem))
|
||||||
|
return false;
|
||||||
|
if (payerBankCardBin == null) {
|
||||||
|
if (other.payerBankCardBin != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerBankCardBin.equals(other.payerBankCardBin))
|
||||||
|
return false;
|
||||||
|
if (payerBankCardMaskedPan == null) {
|
||||||
|
if (other.payerBankCardMaskedPan != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerBankCardMaskedPan.equals(other.payerBankCardMaskedPan))
|
||||||
|
return false;
|
||||||
|
if (payerBankCardTokenProvider == null) {
|
||||||
|
if (other.payerBankCardTokenProvider != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerBankCardTokenProvider.equals(other.payerBankCardTokenProvider))
|
||||||
|
return false;
|
||||||
|
if (payerPaymentTerminalType == null) {
|
||||||
|
if (other.payerPaymentTerminalType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerPaymentTerminalType.equals(other.payerPaymentTerminalType))
|
||||||
|
return false;
|
||||||
|
if (payerDigitalWalletProvider == null) {
|
||||||
|
if (other.payerDigitalWalletProvider != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerDigitalWalletProvider.equals(other.payerDigitalWalletProvider))
|
||||||
|
return false;
|
||||||
|
if (payerDigitalWalletId == null) {
|
||||||
|
if (other.payerDigitalWalletId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerDigitalWalletId.equals(other.payerDigitalWalletId))
|
||||||
|
return false;
|
||||||
|
if (payerPaymentSessionId == null) {
|
||||||
|
if (other.payerPaymentSessionId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerPaymentSessionId.equals(other.payerPaymentSessionId))
|
||||||
|
return false;
|
||||||
|
if (payerIpAddress == null) {
|
||||||
|
if (other.payerIpAddress != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerIpAddress.equals(other.payerIpAddress))
|
||||||
|
return false;
|
||||||
|
if (payerFingerprint == null) {
|
||||||
|
if (other.payerFingerprint != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerFingerprint.equals(other.payerFingerprint))
|
||||||
|
return false;
|
||||||
|
if (payerPhoneNumber == null) {
|
||||||
|
if (other.payerPhoneNumber != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerPhoneNumber.equals(other.payerPhoneNumber))
|
||||||
|
return false;
|
||||||
|
if (payerEmail == null) {
|
||||||
|
if (other.payerEmail != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerEmail.equals(other.payerEmail))
|
||||||
|
return false;
|
||||||
|
if (payerCustomerId == null) {
|
||||||
|
if (other.payerCustomerId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerCustomerId.equals(other.payerCustomerId))
|
||||||
|
return false;
|
||||||
|
if (payerCustomerBindingId == null) {
|
||||||
|
if (other.payerCustomerBindingId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerCustomerBindingId.equals(other.payerCustomerBindingId))
|
||||||
|
return false;
|
||||||
|
if (payerCustomerRecPaymentToolId == null) {
|
||||||
|
if (other.payerCustomerRecPaymentToolId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payerCustomerRecPaymentToolId.equals(other.payerCustomerRecPaymentToolId))
|
||||||
|
return false;
|
||||||
|
if (context == null) {
|
||||||
|
if (other.context != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!Arrays.equals(context, other.context))
|
||||||
|
return false;
|
||||||
|
if (paymentFlowType == null) {
|
||||||
|
if (other.paymentFlowType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentFlowType.equals(other.paymentFlowType))
|
||||||
|
return false;
|
||||||
|
if (paymentFlowOnHoldExpiration == null) {
|
||||||
|
if (other.paymentFlowOnHoldExpiration != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentFlowOnHoldExpiration.equals(other.paymentFlowOnHoldExpiration))
|
||||||
|
return false;
|
||||||
|
if (paymentFlowHeldUntil == null) {
|
||||||
|
if (other.paymentFlowHeldUntil != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentFlowHeldUntil.equals(other.paymentFlowHeldUntil))
|
||||||
|
return false;
|
||||||
|
if (riskScore == null) {
|
||||||
|
if (other.riskScore != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!riskScore.equals(other.riskScore))
|
||||||
|
return false;
|
||||||
|
if (routeProviderId == null) {
|
||||||
|
if (other.routeProviderId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!routeProviderId.equals(other.routeProviderId))
|
||||||
|
return false;
|
||||||
|
if (routeTerminalId == null) {
|
||||||
|
if (other.routeTerminalId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!routeTerminalId.equals(other.routeTerminalId))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.paymentId == null) ? 0 : this.paymentId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.invoiceId == null) ? 0 : this.invoiceId.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.shopId == null) ? 0 : this.shopId.hashCode());
|
||||||
|
result = prime * result + ((this.domainRevision == null) ? 0 : this.domainRevision.hashCode());
|
||||||
|
result = prime * result + ((this.status == null) ? 0 : this.status.hashCode());
|
||||||
|
result = prime * result + ((this.statusCancelledReason == null) ? 0 : this.statusCancelledReason.hashCode());
|
||||||
|
result = prime * result + ((this.statusCapturedReason == null) ? 0 : this.statusCapturedReason.hashCode());
|
||||||
|
result = prime * result + ((this.statusFailedFailure == null) ? 0 : this.statusFailedFailure.hashCode());
|
||||||
|
result = prime * result + ((this.amount == null) ? 0 : this.amount.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.payerType == null) ? 0 : this.payerType.hashCode());
|
||||||
|
result = prime * result + ((this.payerPaymentToolType == null) ? 0 : this.payerPaymentToolType.hashCode());
|
||||||
|
result = prime * result + ((this.payerBankCardToken == null) ? 0 : this.payerBankCardToken.hashCode());
|
||||||
|
result = prime * result + ((this.payerBankCardPaymentSystem == null) ? 0 : this.payerBankCardPaymentSystem.hashCode());
|
||||||
|
result = prime * result + ((this.payerBankCardBin == null) ? 0 : this.payerBankCardBin.hashCode());
|
||||||
|
result = prime * result + ((this.payerBankCardMaskedPan == null) ? 0 : this.payerBankCardMaskedPan.hashCode());
|
||||||
|
result = prime * result + ((this.payerBankCardTokenProvider == null) ? 0 : this.payerBankCardTokenProvider.hashCode());
|
||||||
|
result = prime * result + ((this.payerPaymentTerminalType == null) ? 0 : this.payerPaymentTerminalType.hashCode());
|
||||||
|
result = prime * result + ((this.payerDigitalWalletProvider == null) ? 0 : this.payerDigitalWalletProvider.hashCode());
|
||||||
|
result = prime * result + ((this.payerDigitalWalletId == null) ? 0 : this.payerDigitalWalletId.hashCode());
|
||||||
|
result = prime * result + ((this.payerPaymentSessionId == null) ? 0 : this.payerPaymentSessionId.hashCode());
|
||||||
|
result = prime * result + ((this.payerIpAddress == null) ? 0 : this.payerIpAddress.hashCode());
|
||||||
|
result = prime * result + ((this.payerFingerprint == null) ? 0 : this.payerFingerprint.hashCode());
|
||||||
|
result = prime * result + ((this.payerPhoneNumber == null) ? 0 : this.payerPhoneNumber.hashCode());
|
||||||
|
result = prime * result + ((this.payerEmail == null) ? 0 : this.payerEmail.hashCode());
|
||||||
|
result = prime * result + ((this.payerCustomerId == null) ? 0 : this.payerCustomerId.hashCode());
|
||||||
|
result = prime * result + ((this.payerCustomerBindingId == null) ? 0 : this.payerCustomerBindingId.hashCode());
|
||||||
|
result = prime * result + ((this.payerCustomerRecPaymentToolId == null) ? 0 : this.payerCustomerRecPaymentToolId.hashCode());
|
||||||
|
result = prime * result + ((this.context == null) ? 0 : Arrays.hashCode(this.context));
|
||||||
|
result = prime * result + ((this.paymentFlowType == null) ? 0 : this.paymentFlowType.hashCode());
|
||||||
|
result = prime * result + ((this.paymentFlowOnHoldExpiration == null) ? 0 : this.paymentFlowOnHoldExpiration.hashCode());
|
||||||
|
result = prime * result + ((this.paymentFlowHeldUntil == null) ? 0 : this.paymentFlowHeldUntil.hashCode());
|
||||||
|
result = prime * result + ((this.riskScore == null) ? 0 : this.riskScore.hashCode());
|
||||||
|
result = prime * result + ((this.routeProviderId == null) ? 0 : this.routeProviderId.hashCode());
|
||||||
|
result = prime * result + ((this.routeTerminalId == null) ? 0 : this.routeTerminalId.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Payment (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(paymentId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(invoiceId);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(shopId);
|
||||||
|
sb.append(", ").append(domainRevision);
|
||||||
|
sb.append(", ").append(status);
|
||||||
|
sb.append(", ").append(statusCancelledReason);
|
||||||
|
sb.append(", ").append(statusCapturedReason);
|
||||||
|
sb.append(", ").append(statusFailedFailure);
|
||||||
|
sb.append(", ").append(amount);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append(payerType);
|
||||||
|
sb.append(", ").append(payerPaymentToolType);
|
||||||
|
sb.append(", ").append(payerBankCardToken);
|
||||||
|
sb.append(", ").append(payerBankCardPaymentSystem);
|
||||||
|
sb.append(", ").append(payerBankCardBin);
|
||||||
|
sb.append(", ").append(payerBankCardMaskedPan);
|
||||||
|
sb.append(", ").append(payerBankCardTokenProvider);
|
||||||
|
sb.append(", ").append(payerPaymentTerminalType);
|
||||||
|
sb.append(", ").append(payerDigitalWalletProvider);
|
||||||
|
sb.append(", ").append(payerDigitalWalletId);
|
||||||
|
sb.append(", ").append(payerPaymentSessionId);
|
||||||
|
sb.append(", ").append(payerIpAddress);
|
||||||
|
sb.append(", ").append(payerFingerprint);
|
||||||
|
sb.append(", ").append(payerPhoneNumber);
|
||||||
|
sb.append(", ").append(payerEmail);
|
||||||
|
sb.append(", ").append(payerCustomerId);
|
||||||
|
sb.append(", ").append(payerCustomerBindingId);
|
||||||
|
sb.append(", ").append(payerCustomerRecPaymentToolId);
|
||||||
|
sb.append(", ").append("[binary...]");
|
||||||
|
sb.append(", ").append(paymentFlowType);
|
||||||
|
sb.append(", ").append(paymentFlowOnHoldExpiration);
|
||||||
|
sb.append(", ").append(paymentFlowHeldUntil);
|
||||||
|
sb.append(", ").append(riskScore);
|
||||||
|
sb.append(", ").append(routeProviderId);
|
||||||
|
sb.append(", ").append(routeTerminalId);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
1031
src/main/java/com/rbkmoney/newway/domain/tables/pojos/Payout.java
Normal file
1031
src/main/java/com/rbkmoney/newway/domain/tables/pojos/Payout.java
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,245 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class PayoutSummary implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1278312241;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long pytId;
|
||||||
|
private Long amount;
|
||||||
|
private Long fee;
|
||||||
|
private String currencyCode;
|
||||||
|
private LocalDateTime fromTime;
|
||||||
|
private LocalDateTime toTime;
|
||||||
|
private String operationType;
|
||||||
|
private Integer count;
|
||||||
|
|
||||||
|
public PayoutSummary() {}
|
||||||
|
|
||||||
|
public PayoutSummary(PayoutSummary value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.pytId = value.pytId;
|
||||||
|
this.amount = value.amount;
|
||||||
|
this.fee = value.fee;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.fromTime = value.fromTime;
|
||||||
|
this.toTime = value.toTime;
|
||||||
|
this.operationType = value.operationType;
|
||||||
|
this.count = value.count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PayoutSummary(
|
||||||
|
Long id,
|
||||||
|
Long pytId,
|
||||||
|
Long amount,
|
||||||
|
Long fee,
|
||||||
|
String currencyCode,
|
||||||
|
LocalDateTime fromTime,
|
||||||
|
LocalDateTime toTime,
|
||||||
|
String operationType,
|
||||||
|
Integer count
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.pytId = pytId;
|
||||||
|
this.amount = amount;
|
||||||
|
this.fee = fee;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.fromTime = fromTime;
|
||||||
|
this.toTime = toTime;
|
||||||
|
this.operationType = operationType;
|
||||||
|
this.count = count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPytId() {
|
||||||
|
return this.pytId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPytId(Long pytId) {
|
||||||
|
this.pytId = pytId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAmount() {
|
||||||
|
return this.amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(Long amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getFee() {
|
||||||
|
return this.fee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFee(Long fee) {
|
||||||
|
this.fee = fee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getFromTime() {
|
||||||
|
return this.fromTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFromTime(LocalDateTime fromTime) {
|
||||||
|
this.fromTime = fromTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getToTime() {
|
||||||
|
return this.toTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToTime(LocalDateTime toTime) {
|
||||||
|
this.toTime = toTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperationType() {
|
||||||
|
return this.operationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperationType(String operationType) {
|
||||||
|
this.operationType = operationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCount() {
|
||||||
|
return this.count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCount(Integer count) {
|
||||||
|
this.count = count;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final PayoutSummary other = (PayoutSummary) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (pytId == null) {
|
||||||
|
if (other.pytId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!pytId.equals(other.pytId))
|
||||||
|
return false;
|
||||||
|
if (amount == null) {
|
||||||
|
if (other.amount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!amount.equals(other.amount))
|
||||||
|
return false;
|
||||||
|
if (fee == null) {
|
||||||
|
if (other.fee != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!fee.equals(other.fee))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (fromTime == null) {
|
||||||
|
if (other.fromTime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!fromTime.equals(other.fromTime))
|
||||||
|
return false;
|
||||||
|
if (toTime == null) {
|
||||||
|
if (other.toTime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!toTime.equals(other.toTime))
|
||||||
|
return false;
|
||||||
|
if (operationType == null) {
|
||||||
|
if (other.operationType != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!operationType.equals(other.operationType))
|
||||||
|
return false;
|
||||||
|
if (count == null) {
|
||||||
|
if (other.count != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!count.equals(other.count))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.pytId == null) ? 0 : this.pytId.hashCode());
|
||||||
|
result = prime * result + ((this.amount == null) ? 0 : this.amount.hashCode());
|
||||||
|
result = prime * result + ((this.fee == null) ? 0 : this.fee.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.fromTime == null) ? 0 : this.fromTime.hashCode());
|
||||||
|
result = prime * result + ((this.toTime == null) ? 0 : this.toTime.hashCode());
|
||||||
|
result = prime * result + ((this.operationType == null) ? 0 : this.operationType.hashCode());
|
||||||
|
result = prime * result + ((this.count == null) ? 0 : this.count.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("PayoutSummary (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(pytId);
|
||||||
|
sb.append(", ").append(amount);
|
||||||
|
sb.append(", ").append(fee);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append(fromTime);
|
||||||
|
sb.append(", ").append(toTime);
|
||||||
|
sb.append(", ").append(operationType);
|
||||||
|
sb.append(", ").append(count);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,387 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Payouttoolinfo;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class PayoutTool implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1978953453;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long cntrctId;
|
||||||
|
private String payoutToolId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private String currencyCode;
|
||||||
|
private Payouttoolinfo payoutToolInfo;
|
||||||
|
private String payoutToolInfoRussianBankAccount;
|
||||||
|
private String payoutToolInfoRussianBankName;
|
||||||
|
private String payoutToolInfoRussianBankPostAccount;
|
||||||
|
private String payoutToolInfoRussianBankBik;
|
||||||
|
private String payoutToolInfoInternationalBankAccountHolder;
|
||||||
|
private String payoutToolInfoInternationalBankName;
|
||||||
|
private String payoutToolInfoInternationalBankAddress;
|
||||||
|
private String payoutToolInfoInternationalBankIban;
|
||||||
|
private String payoutToolInfoInternationalBankBic;
|
||||||
|
private String payoutToolInfoInternationalBankLocalCode;
|
||||||
|
|
||||||
|
public PayoutTool() {}
|
||||||
|
|
||||||
|
public PayoutTool(PayoutTool value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.cntrctId = value.cntrctId;
|
||||||
|
this.payoutToolId = value.payoutToolId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.payoutToolInfo = value.payoutToolInfo;
|
||||||
|
this.payoutToolInfoRussianBankAccount = value.payoutToolInfoRussianBankAccount;
|
||||||
|
this.payoutToolInfoRussianBankName = value.payoutToolInfoRussianBankName;
|
||||||
|
this.payoutToolInfoRussianBankPostAccount = value.payoutToolInfoRussianBankPostAccount;
|
||||||
|
this.payoutToolInfoRussianBankBik = value.payoutToolInfoRussianBankBik;
|
||||||
|
this.payoutToolInfoInternationalBankAccountHolder = value.payoutToolInfoInternationalBankAccountHolder;
|
||||||
|
this.payoutToolInfoInternationalBankName = value.payoutToolInfoInternationalBankName;
|
||||||
|
this.payoutToolInfoInternationalBankAddress = value.payoutToolInfoInternationalBankAddress;
|
||||||
|
this.payoutToolInfoInternationalBankIban = value.payoutToolInfoInternationalBankIban;
|
||||||
|
this.payoutToolInfoInternationalBankBic = value.payoutToolInfoInternationalBankBic;
|
||||||
|
this.payoutToolInfoInternationalBankLocalCode = value.payoutToolInfoInternationalBankLocalCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PayoutTool(
|
||||||
|
Long id,
|
||||||
|
Long cntrctId,
|
||||||
|
String payoutToolId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
String currencyCode,
|
||||||
|
Payouttoolinfo payoutToolInfo,
|
||||||
|
String payoutToolInfoRussianBankAccount,
|
||||||
|
String payoutToolInfoRussianBankName,
|
||||||
|
String payoutToolInfoRussianBankPostAccount,
|
||||||
|
String payoutToolInfoRussianBankBik,
|
||||||
|
String payoutToolInfoInternationalBankAccountHolder,
|
||||||
|
String payoutToolInfoInternationalBankName,
|
||||||
|
String payoutToolInfoInternationalBankAddress,
|
||||||
|
String payoutToolInfoInternationalBankIban,
|
||||||
|
String payoutToolInfoInternationalBankBic,
|
||||||
|
String payoutToolInfoInternationalBankLocalCode
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.cntrctId = cntrctId;
|
||||||
|
this.payoutToolId = payoutToolId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.payoutToolInfo = payoutToolInfo;
|
||||||
|
this.payoutToolInfoRussianBankAccount = payoutToolInfoRussianBankAccount;
|
||||||
|
this.payoutToolInfoRussianBankName = payoutToolInfoRussianBankName;
|
||||||
|
this.payoutToolInfoRussianBankPostAccount = payoutToolInfoRussianBankPostAccount;
|
||||||
|
this.payoutToolInfoRussianBankBik = payoutToolInfoRussianBankBik;
|
||||||
|
this.payoutToolInfoInternationalBankAccountHolder = payoutToolInfoInternationalBankAccountHolder;
|
||||||
|
this.payoutToolInfoInternationalBankName = payoutToolInfoInternationalBankName;
|
||||||
|
this.payoutToolInfoInternationalBankAddress = payoutToolInfoInternationalBankAddress;
|
||||||
|
this.payoutToolInfoInternationalBankIban = payoutToolInfoInternationalBankIban;
|
||||||
|
this.payoutToolInfoInternationalBankBic = payoutToolInfoInternationalBankBic;
|
||||||
|
this.payoutToolInfoInternationalBankLocalCode = payoutToolInfoInternationalBankLocalCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCntrctId() {
|
||||||
|
return this.cntrctId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCntrctId(Long cntrctId) {
|
||||||
|
this.cntrctId = cntrctId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolId() {
|
||||||
|
return this.payoutToolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolId(String payoutToolId) {
|
||||||
|
this.payoutToolId = payoutToolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Payouttoolinfo getPayoutToolInfo() {
|
||||||
|
return this.payoutToolInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfo(Payouttoolinfo payoutToolInfo) {
|
||||||
|
this.payoutToolInfo = payoutToolInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoRussianBankAccount() {
|
||||||
|
return this.payoutToolInfoRussianBankAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoRussianBankAccount(String payoutToolInfoRussianBankAccount) {
|
||||||
|
this.payoutToolInfoRussianBankAccount = payoutToolInfoRussianBankAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoRussianBankName() {
|
||||||
|
return this.payoutToolInfoRussianBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoRussianBankName(String payoutToolInfoRussianBankName) {
|
||||||
|
this.payoutToolInfoRussianBankName = payoutToolInfoRussianBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoRussianBankPostAccount() {
|
||||||
|
return this.payoutToolInfoRussianBankPostAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoRussianBankPostAccount(String payoutToolInfoRussianBankPostAccount) {
|
||||||
|
this.payoutToolInfoRussianBankPostAccount = payoutToolInfoRussianBankPostAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoRussianBankBik() {
|
||||||
|
return this.payoutToolInfoRussianBankBik;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoRussianBankBik(String payoutToolInfoRussianBankBik) {
|
||||||
|
this.payoutToolInfoRussianBankBik = payoutToolInfoRussianBankBik;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoInternationalBankAccountHolder() {
|
||||||
|
return this.payoutToolInfoInternationalBankAccountHolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoInternationalBankAccountHolder(String payoutToolInfoInternationalBankAccountHolder) {
|
||||||
|
this.payoutToolInfoInternationalBankAccountHolder = payoutToolInfoInternationalBankAccountHolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoInternationalBankName() {
|
||||||
|
return this.payoutToolInfoInternationalBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoInternationalBankName(String payoutToolInfoInternationalBankName) {
|
||||||
|
this.payoutToolInfoInternationalBankName = payoutToolInfoInternationalBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoInternationalBankAddress() {
|
||||||
|
return this.payoutToolInfoInternationalBankAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoInternationalBankAddress(String payoutToolInfoInternationalBankAddress) {
|
||||||
|
this.payoutToolInfoInternationalBankAddress = payoutToolInfoInternationalBankAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoInternationalBankIban() {
|
||||||
|
return this.payoutToolInfoInternationalBankIban;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoInternationalBankIban(String payoutToolInfoInternationalBankIban) {
|
||||||
|
this.payoutToolInfoInternationalBankIban = payoutToolInfoInternationalBankIban;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoInternationalBankBic() {
|
||||||
|
return this.payoutToolInfoInternationalBankBic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoInternationalBankBic(String payoutToolInfoInternationalBankBic) {
|
||||||
|
this.payoutToolInfoInternationalBankBic = payoutToolInfoInternationalBankBic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolInfoInternationalBankLocalCode() {
|
||||||
|
return this.payoutToolInfoInternationalBankLocalCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolInfoInternationalBankLocalCode(String payoutToolInfoInternationalBankLocalCode) {
|
||||||
|
this.payoutToolInfoInternationalBankLocalCode = payoutToolInfoInternationalBankLocalCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final PayoutTool other = (PayoutTool) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (cntrctId == null) {
|
||||||
|
if (other.cntrctId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!cntrctId.equals(other.cntrctId))
|
||||||
|
return false;
|
||||||
|
if (payoutToolId == null) {
|
||||||
|
if (other.payoutToolId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolId.equals(other.payoutToolId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfo == null) {
|
||||||
|
if (other.payoutToolInfo != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfo.equals(other.payoutToolInfo))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoRussianBankAccount == null) {
|
||||||
|
if (other.payoutToolInfoRussianBankAccount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoRussianBankAccount.equals(other.payoutToolInfoRussianBankAccount))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoRussianBankName == null) {
|
||||||
|
if (other.payoutToolInfoRussianBankName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoRussianBankName.equals(other.payoutToolInfoRussianBankName))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoRussianBankPostAccount == null) {
|
||||||
|
if (other.payoutToolInfoRussianBankPostAccount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoRussianBankPostAccount.equals(other.payoutToolInfoRussianBankPostAccount))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoRussianBankBik == null) {
|
||||||
|
if (other.payoutToolInfoRussianBankBik != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoRussianBankBik.equals(other.payoutToolInfoRussianBankBik))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoInternationalBankAccountHolder == null) {
|
||||||
|
if (other.payoutToolInfoInternationalBankAccountHolder != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoInternationalBankAccountHolder.equals(other.payoutToolInfoInternationalBankAccountHolder))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoInternationalBankName == null) {
|
||||||
|
if (other.payoutToolInfoInternationalBankName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoInternationalBankName.equals(other.payoutToolInfoInternationalBankName))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoInternationalBankAddress == null) {
|
||||||
|
if (other.payoutToolInfoInternationalBankAddress != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoInternationalBankAddress.equals(other.payoutToolInfoInternationalBankAddress))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoInternationalBankIban == null) {
|
||||||
|
if (other.payoutToolInfoInternationalBankIban != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoInternationalBankIban.equals(other.payoutToolInfoInternationalBankIban))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoInternationalBankBic == null) {
|
||||||
|
if (other.payoutToolInfoInternationalBankBic != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoInternationalBankBic.equals(other.payoutToolInfoInternationalBankBic))
|
||||||
|
return false;
|
||||||
|
if (payoutToolInfoInternationalBankLocalCode == null) {
|
||||||
|
if (other.payoutToolInfoInternationalBankLocalCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolInfoInternationalBankLocalCode.equals(other.payoutToolInfoInternationalBankLocalCode))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.cntrctId == null) ? 0 : this.cntrctId.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolId == null) ? 0 : this.payoutToolId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfo == null) ? 0 : this.payoutToolInfo.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoRussianBankAccount == null) ? 0 : this.payoutToolInfoRussianBankAccount.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoRussianBankName == null) ? 0 : this.payoutToolInfoRussianBankName.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoRussianBankPostAccount == null) ? 0 : this.payoutToolInfoRussianBankPostAccount.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoRussianBankBik == null) ? 0 : this.payoutToolInfoRussianBankBik.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoInternationalBankAccountHolder == null) ? 0 : this.payoutToolInfoInternationalBankAccountHolder.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoInternationalBankName == null) ? 0 : this.payoutToolInfoInternationalBankName.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoInternationalBankAddress == null) ? 0 : this.payoutToolInfoInternationalBankAddress.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoInternationalBankIban == null) ? 0 : this.payoutToolInfoInternationalBankIban.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoInternationalBankBic == null) ? 0 : this.payoutToolInfoInternationalBankBic.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolInfoInternationalBankLocalCode == null) ? 0 : this.payoutToolInfoInternationalBankLocalCode.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("PayoutTool (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(cntrctId);
|
||||||
|
sb.append(", ").append(payoutToolId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append(payoutToolInfo);
|
||||||
|
sb.append(", ").append(payoutToolInfoRussianBankAccount);
|
||||||
|
sb.append(", ").append(payoutToolInfoRussianBankName);
|
||||||
|
sb.append(", ").append(payoutToolInfoRussianBankPostAccount);
|
||||||
|
sb.append(", ").append(payoutToolInfoRussianBankBik);
|
||||||
|
sb.append(", ").append(payoutToolInfoInternationalBankAccountHolder);
|
||||||
|
sb.append(", ").append(payoutToolInfoInternationalBankName);
|
||||||
|
sb.append(", ").append(payoutToolInfoInternationalBankAddress);
|
||||||
|
sb.append(", ").append(payoutToolInfoInternationalBankIban);
|
||||||
|
sb.append(", ").append(payoutToolInfoInternationalBankBic);
|
||||||
|
sb.append(", ").append(payoutToolInfoInternationalBankLocalCode);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,407 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Refundstatus;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Refund implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -994247039;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private Long domainRevision;
|
||||||
|
private String refundId;
|
||||||
|
private String paymentId;
|
||||||
|
private String invoiceId;
|
||||||
|
private String partyId;
|
||||||
|
private String shopId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private Refundstatus status;
|
||||||
|
private String statusFailedFailure;
|
||||||
|
private Long amount;
|
||||||
|
private String currencyCode;
|
||||||
|
private String reason;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Refund() {}
|
||||||
|
|
||||||
|
public Refund(Refund value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.domainRevision = value.domainRevision;
|
||||||
|
this.refundId = value.refundId;
|
||||||
|
this.paymentId = value.paymentId;
|
||||||
|
this.invoiceId = value.invoiceId;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.shopId = value.shopId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.status = value.status;
|
||||||
|
this.statusFailedFailure = value.statusFailedFailure;
|
||||||
|
this.amount = value.amount;
|
||||||
|
this.currencyCode = value.currencyCode;
|
||||||
|
this.reason = value.reason;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Refund(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
Long domainRevision,
|
||||||
|
String refundId,
|
||||||
|
String paymentId,
|
||||||
|
String invoiceId,
|
||||||
|
String partyId,
|
||||||
|
String shopId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
Refundstatus status,
|
||||||
|
String statusFailedFailure,
|
||||||
|
Long amount,
|
||||||
|
String currencyCode,
|
||||||
|
String reason,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.domainRevision = domainRevision;
|
||||||
|
this.refundId = refundId;
|
||||||
|
this.paymentId = paymentId;
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.shopId = shopId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.status = status;
|
||||||
|
this.statusFailedFailure = statusFailedFailure;
|
||||||
|
this.amount = amount;
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
this.reason = reason;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDomainRevision() {
|
||||||
|
return this.domainRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDomainRevision(Long domainRevision) {
|
||||||
|
this.domainRevision = domainRevision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRefundId() {
|
||||||
|
return this.refundId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRefundId(String refundId) {
|
||||||
|
this.refundId = refundId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPaymentId() {
|
||||||
|
return this.paymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentId(String paymentId) {
|
||||||
|
this.paymentId = paymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInvoiceId() {
|
||||||
|
return this.invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvoiceId(String invoiceId) {
|
||||||
|
this.invoiceId = invoiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShopId() {
|
||||||
|
return this.shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopId(String shopId) {
|
||||||
|
this.shopId = shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Refundstatus getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Refundstatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatusFailedFailure() {
|
||||||
|
return this.statusFailedFailure;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusFailedFailure(String statusFailedFailure) {
|
||||||
|
this.statusFailedFailure = statusFailedFailure;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAmount() {
|
||||||
|
return this.amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(Long amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return this.currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReason() {
|
||||||
|
return this.reason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReason(String reason) {
|
||||||
|
this.reason = reason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Refund other = (Refund) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (domainRevision == null) {
|
||||||
|
if (other.domainRevision != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!domainRevision.equals(other.domainRevision))
|
||||||
|
return false;
|
||||||
|
if (refundId == null) {
|
||||||
|
if (other.refundId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!refundId.equals(other.refundId))
|
||||||
|
return false;
|
||||||
|
if (paymentId == null) {
|
||||||
|
if (other.paymentId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!paymentId.equals(other.paymentId))
|
||||||
|
return false;
|
||||||
|
if (invoiceId == null) {
|
||||||
|
if (other.invoiceId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!invoiceId.equals(other.invoiceId))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (shopId == null) {
|
||||||
|
if (other.shopId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!shopId.equals(other.shopId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (status == null) {
|
||||||
|
if (other.status != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!status.equals(other.status))
|
||||||
|
return false;
|
||||||
|
if (statusFailedFailure == null) {
|
||||||
|
if (other.statusFailedFailure != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!statusFailedFailure.equals(other.statusFailedFailure))
|
||||||
|
return false;
|
||||||
|
if (amount == null) {
|
||||||
|
if (other.amount != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!amount.equals(other.amount))
|
||||||
|
return false;
|
||||||
|
if (currencyCode == null) {
|
||||||
|
if (other.currencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!currencyCode.equals(other.currencyCode))
|
||||||
|
return false;
|
||||||
|
if (reason == null) {
|
||||||
|
if (other.reason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!reason.equals(other.reason))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.domainRevision == null) ? 0 : this.domainRevision.hashCode());
|
||||||
|
result = prime * result + ((this.refundId == null) ? 0 : this.refundId.hashCode());
|
||||||
|
result = prime * result + ((this.paymentId == null) ? 0 : this.paymentId.hashCode());
|
||||||
|
result = prime * result + ((this.invoiceId == null) ? 0 : this.invoiceId.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.shopId == null) ? 0 : this.shopId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.status == null) ? 0 : this.status.hashCode());
|
||||||
|
result = prime * result + ((this.statusFailedFailure == null) ? 0 : this.statusFailedFailure.hashCode());
|
||||||
|
result = prime * result + ((this.amount == null) ? 0 : this.amount.hashCode());
|
||||||
|
result = prime * result + ((this.currencyCode == null) ? 0 : this.currencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.reason == null) ? 0 : this.reason.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Refund (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(domainRevision);
|
||||||
|
sb.append(", ").append(refundId);
|
||||||
|
sb.append(", ").append(paymentId);
|
||||||
|
sb.append(", ").append(invoiceId);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(shopId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(status);
|
||||||
|
sb.append(", ").append(statusFailedFailure);
|
||||||
|
sb.append(", ").append(amount);
|
||||||
|
sb.append(", ").append(currencyCode);
|
||||||
|
sb.append(", ").append(reason);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
608
src/main/java/com/rbkmoney/newway/domain/tables/pojos/Shop.java
Normal file
608
src/main/java/com/rbkmoney/newway/domain/tables/pojos/Shop.java
Normal file
@ -0,0 +1,608 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Blocking;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Suspension;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class Shop implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1604187250;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long eventId;
|
||||||
|
private LocalDateTime eventCreatedAt;
|
||||||
|
private String partyId;
|
||||||
|
private String shopId;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
private Blocking blocking;
|
||||||
|
private String blockingUnblockedReason;
|
||||||
|
private LocalDateTime blockingUnblockedSince;
|
||||||
|
private String blockingBlockedReason;
|
||||||
|
private LocalDateTime blockingBlockedSince;
|
||||||
|
private Suspension suspension;
|
||||||
|
private LocalDateTime suspensionActiveSince;
|
||||||
|
private LocalDateTime suspensionSuspendedSince;
|
||||||
|
private String detailsName;
|
||||||
|
private String detailsDescription;
|
||||||
|
private String locationUrl;
|
||||||
|
private Integer categoryId;
|
||||||
|
private String accountCurrencyCode;
|
||||||
|
private Long accountSettlement;
|
||||||
|
private Long accountGuarantee;
|
||||||
|
private Long accountPayout;
|
||||||
|
private String contractId;
|
||||||
|
private String payoutToolId;
|
||||||
|
private Integer payoutScheduleId;
|
||||||
|
private LocalDateTime wtime;
|
||||||
|
private Boolean current;
|
||||||
|
|
||||||
|
public Shop() {}
|
||||||
|
|
||||||
|
public Shop(Shop value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.eventId = value.eventId;
|
||||||
|
this.eventCreatedAt = value.eventCreatedAt;
|
||||||
|
this.partyId = value.partyId;
|
||||||
|
this.shopId = value.shopId;
|
||||||
|
this.createdAt = value.createdAt;
|
||||||
|
this.blocking = value.blocking;
|
||||||
|
this.blockingUnblockedReason = value.blockingUnblockedReason;
|
||||||
|
this.blockingUnblockedSince = value.blockingUnblockedSince;
|
||||||
|
this.blockingBlockedReason = value.blockingBlockedReason;
|
||||||
|
this.blockingBlockedSince = value.blockingBlockedSince;
|
||||||
|
this.suspension = value.suspension;
|
||||||
|
this.suspensionActiveSince = value.suspensionActiveSince;
|
||||||
|
this.suspensionSuspendedSince = value.suspensionSuspendedSince;
|
||||||
|
this.detailsName = value.detailsName;
|
||||||
|
this.detailsDescription = value.detailsDescription;
|
||||||
|
this.locationUrl = value.locationUrl;
|
||||||
|
this.categoryId = value.categoryId;
|
||||||
|
this.accountCurrencyCode = value.accountCurrencyCode;
|
||||||
|
this.accountSettlement = value.accountSettlement;
|
||||||
|
this.accountGuarantee = value.accountGuarantee;
|
||||||
|
this.accountPayout = value.accountPayout;
|
||||||
|
this.contractId = value.contractId;
|
||||||
|
this.payoutToolId = value.payoutToolId;
|
||||||
|
this.payoutScheduleId = value.payoutScheduleId;
|
||||||
|
this.wtime = value.wtime;
|
||||||
|
this.current = value.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Shop(
|
||||||
|
Long id,
|
||||||
|
Long eventId,
|
||||||
|
LocalDateTime eventCreatedAt,
|
||||||
|
String partyId,
|
||||||
|
String shopId,
|
||||||
|
LocalDateTime createdAt,
|
||||||
|
Blocking blocking,
|
||||||
|
String blockingUnblockedReason,
|
||||||
|
LocalDateTime blockingUnblockedSince,
|
||||||
|
String blockingBlockedReason,
|
||||||
|
LocalDateTime blockingBlockedSince,
|
||||||
|
Suspension suspension,
|
||||||
|
LocalDateTime suspensionActiveSince,
|
||||||
|
LocalDateTime suspensionSuspendedSince,
|
||||||
|
String detailsName,
|
||||||
|
String detailsDescription,
|
||||||
|
String locationUrl,
|
||||||
|
Integer categoryId,
|
||||||
|
String accountCurrencyCode,
|
||||||
|
Long accountSettlement,
|
||||||
|
Long accountGuarantee,
|
||||||
|
Long accountPayout,
|
||||||
|
String contractId,
|
||||||
|
String payoutToolId,
|
||||||
|
Integer payoutScheduleId,
|
||||||
|
LocalDateTime wtime,
|
||||||
|
Boolean current
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.eventId = eventId;
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
this.partyId = partyId;
|
||||||
|
this.shopId = shopId;
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
this.blocking = blocking;
|
||||||
|
this.blockingUnblockedReason = blockingUnblockedReason;
|
||||||
|
this.blockingUnblockedSince = blockingUnblockedSince;
|
||||||
|
this.blockingBlockedReason = blockingBlockedReason;
|
||||||
|
this.blockingBlockedSince = blockingBlockedSince;
|
||||||
|
this.suspension = suspension;
|
||||||
|
this.suspensionActiveSince = suspensionActiveSince;
|
||||||
|
this.suspensionSuspendedSince = suspensionSuspendedSince;
|
||||||
|
this.detailsName = detailsName;
|
||||||
|
this.detailsDescription = detailsDescription;
|
||||||
|
this.locationUrl = locationUrl;
|
||||||
|
this.categoryId = categoryId;
|
||||||
|
this.accountCurrencyCode = accountCurrencyCode;
|
||||||
|
this.accountSettlement = accountSettlement;
|
||||||
|
this.accountGuarantee = accountGuarantee;
|
||||||
|
this.accountPayout = accountPayout;
|
||||||
|
this.contractId = contractId;
|
||||||
|
this.payoutToolId = payoutToolId;
|
||||||
|
this.payoutScheduleId = payoutScheduleId;
|
||||||
|
this.wtime = wtime;
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEventId() {
|
||||||
|
return this.eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventId(Long eventId) {
|
||||||
|
this.eventId = eventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return this.eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEventCreatedAt(LocalDateTime eventCreatedAt) {
|
||||||
|
this.eventCreatedAt = eventCreatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPartyId() {
|
||||||
|
return this.partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPartyId(String partyId) {
|
||||||
|
this.partyId = partyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShopId() {
|
||||||
|
return this.shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopId(String shopId) {
|
||||||
|
this.shopId = shopId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return this.createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(LocalDateTime createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Blocking getBlocking() {
|
||||||
|
return this.blocking;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlocking(Blocking blocking) {
|
||||||
|
this.blocking = blocking;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBlockingUnblockedReason() {
|
||||||
|
return this.blockingUnblockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingUnblockedReason(String blockingUnblockedReason) {
|
||||||
|
this.blockingUnblockedReason = blockingUnblockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getBlockingUnblockedSince() {
|
||||||
|
return this.blockingUnblockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingUnblockedSince(LocalDateTime blockingUnblockedSince) {
|
||||||
|
this.blockingUnblockedSince = blockingUnblockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBlockingBlockedReason() {
|
||||||
|
return this.blockingBlockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingBlockedReason(String blockingBlockedReason) {
|
||||||
|
this.blockingBlockedReason = blockingBlockedReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getBlockingBlockedSince() {
|
||||||
|
return this.blockingBlockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlockingBlockedSince(LocalDateTime blockingBlockedSince) {
|
||||||
|
this.blockingBlockedSince = blockingBlockedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Suspension getSuspension() {
|
||||||
|
return this.suspension;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspension(Suspension suspension) {
|
||||||
|
this.suspension = suspension;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getSuspensionActiveSince() {
|
||||||
|
return this.suspensionActiveSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspensionActiveSince(LocalDateTime suspensionActiveSince) {
|
||||||
|
this.suspensionActiveSince = suspensionActiveSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getSuspensionSuspendedSince() {
|
||||||
|
return this.suspensionSuspendedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspensionSuspendedSince(LocalDateTime suspensionSuspendedSince) {
|
||||||
|
this.suspensionSuspendedSince = suspensionSuspendedSince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailsName() {
|
||||||
|
return this.detailsName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailsName(String detailsName) {
|
||||||
|
this.detailsName = detailsName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailsDescription() {
|
||||||
|
return this.detailsDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailsDescription(String detailsDescription) {
|
||||||
|
this.detailsDescription = detailsDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocationUrl() {
|
||||||
|
return this.locationUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocationUrl(String locationUrl) {
|
||||||
|
this.locationUrl = locationUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCategoryId() {
|
||||||
|
return this.categoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoryId(Integer categoryId) {
|
||||||
|
this.categoryId = categoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccountCurrencyCode() {
|
||||||
|
return this.accountCurrencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountCurrencyCode(String accountCurrencyCode) {
|
||||||
|
this.accountCurrencyCode = accountCurrencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAccountSettlement() {
|
||||||
|
return this.accountSettlement;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountSettlement(Long accountSettlement) {
|
||||||
|
this.accountSettlement = accountSettlement;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAccountGuarantee() {
|
||||||
|
return this.accountGuarantee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountGuarantee(Long accountGuarantee) {
|
||||||
|
this.accountGuarantee = accountGuarantee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAccountPayout() {
|
||||||
|
return this.accountPayout;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountPayout(Long accountPayout) {
|
||||||
|
this.accountPayout = accountPayout;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContractId() {
|
||||||
|
return this.contractId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContractId(String contractId) {
|
||||||
|
this.contractId = contractId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayoutToolId() {
|
||||||
|
return this.payoutToolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutToolId(String payoutToolId) {
|
||||||
|
this.payoutToolId = payoutToolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPayoutScheduleId() {
|
||||||
|
return this.payoutScheduleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayoutScheduleId(Integer payoutScheduleId) {
|
||||||
|
this.payoutScheduleId = payoutScheduleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return this.wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWtime(LocalDateTime wtime) {
|
||||||
|
this.wtime = wtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return this.current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrent(Boolean current) {
|
||||||
|
this.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
final Shop other = (Shop) obj;
|
||||||
|
if (id == null) {
|
||||||
|
if (other.id != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (eventId == null) {
|
||||||
|
if (other.eventId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventId.equals(other.eventId))
|
||||||
|
return false;
|
||||||
|
if (eventCreatedAt == null) {
|
||||||
|
if (other.eventCreatedAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!eventCreatedAt.equals(other.eventCreatedAt))
|
||||||
|
return false;
|
||||||
|
if (partyId == null) {
|
||||||
|
if (other.partyId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!partyId.equals(other.partyId))
|
||||||
|
return false;
|
||||||
|
if (shopId == null) {
|
||||||
|
if (other.shopId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!shopId.equals(other.shopId))
|
||||||
|
return false;
|
||||||
|
if (createdAt == null) {
|
||||||
|
if (other.createdAt != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!createdAt.equals(other.createdAt))
|
||||||
|
return false;
|
||||||
|
if (blocking == null) {
|
||||||
|
if (other.blocking != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blocking.equals(other.blocking))
|
||||||
|
return false;
|
||||||
|
if (blockingUnblockedReason == null) {
|
||||||
|
if (other.blockingUnblockedReason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingUnblockedReason.equals(other.blockingUnblockedReason))
|
||||||
|
return false;
|
||||||
|
if (blockingUnblockedSince == null) {
|
||||||
|
if (other.blockingUnblockedSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingUnblockedSince.equals(other.blockingUnblockedSince))
|
||||||
|
return false;
|
||||||
|
if (blockingBlockedReason == null) {
|
||||||
|
if (other.blockingBlockedReason != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingBlockedReason.equals(other.blockingBlockedReason))
|
||||||
|
return false;
|
||||||
|
if (blockingBlockedSince == null) {
|
||||||
|
if (other.blockingBlockedSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!blockingBlockedSince.equals(other.blockingBlockedSince))
|
||||||
|
return false;
|
||||||
|
if (suspension == null) {
|
||||||
|
if (other.suspension != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!suspension.equals(other.suspension))
|
||||||
|
return false;
|
||||||
|
if (suspensionActiveSince == null) {
|
||||||
|
if (other.suspensionActiveSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!suspensionActiveSince.equals(other.suspensionActiveSince))
|
||||||
|
return false;
|
||||||
|
if (suspensionSuspendedSince == null) {
|
||||||
|
if (other.suspensionSuspendedSince != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!suspensionSuspendedSince.equals(other.suspensionSuspendedSince))
|
||||||
|
return false;
|
||||||
|
if (detailsName == null) {
|
||||||
|
if (other.detailsName != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!detailsName.equals(other.detailsName))
|
||||||
|
return false;
|
||||||
|
if (detailsDescription == null) {
|
||||||
|
if (other.detailsDescription != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!detailsDescription.equals(other.detailsDescription))
|
||||||
|
return false;
|
||||||
|
if (locationUrl == null) {
|
||||||
|
if (other.locationUrl != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!locationUrl.equals(other.locationUrl))
|
||||||
|
return false;
|
||||||
|
if (categoryId == null) {
|
||||||
|
if (other.categoryId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!categoryId.equals(other.categoryId))
|
||||||
|
return false;
|
||||||
|
if (accountCurrencyCode == null) {
|
||||||
|
if (other.accountCurrencyCode != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!accountCurrencyCode.equals(other.accountCurrencyCode))
|
||||||
|
return false;
|
||||||
|
if (accountSettlement == null) {
|
||||||
|
if (other.accountSettlement != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!accountSettlement.equals(other.accountSettlement))
|
||||||
|
return false;
|
||||||
|
if (accountGuarantee == null) {
|
||||||
|
if (other.accountGuarantee != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!accountGuarantee.equals(other.accountGuarantee))
|
||||||
|
return false;
|
||||||
|
if (accountPayout == null) {
|
||||||
|
if (other.accountPayout != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!accountPayout.equals(other.accountPayout))
|
||||||
|
return false;
|
||||||
|
if (contractId == null) {
|
||||||
|
if (other.contractId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!contractId.equals(other.contractId))
|
||||||
|
return false;
|
||||||
|
if (payoutToolId == null) {
|
||||||
|
if (other.payoutToolId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutToolId.equals(other.payoutToolId))
|
||||||
|
return false;
|
||||||
|
if (payoutScheduleId == null) {
|
||||||
|
if (other.payoutScheduleId != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!payoutScheduleId.equals(other.payoutScheduleId))
|
||||||
|
return false;
|
||||||
|
if (wtime == null) {
|
||||||
|
if (other.wtime != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!wtime.equals(other.wtime))
|
||||||
|
return false;
|
||||||
|
if (current == null) {
|
||||||
|
if (other.current != null)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!current.equals(other.current))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
|
||||||
|
result = prime * result + ((this.eventId == null) ? 0 : this.eventId.hashCode());
|
||||||
|
result = prime * result + ((this.eventCreatedAt == null) ? 0 : this.eventCreatedAt.hashCode());
|
||||||
|
result = prime * result + ((this.partyId == null) ? 0 : this.partyId.hashCode());
|
||||||
|
result = prime * result + ((this.shopId == null) ? 0 : this.shopId.hashCode());
|
||||||
|
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
|
||||||
|
result = prime * result + ((this.blocking == null) ? 0 : this.blocking.hashCode());
|
||||||
|
result = prime * result + ((this.blockingUnblockedReason == null) ? 0 : this.blockingUnblockedReason.hashCode());
|
||||||
|
result = prime * result + ((this.blockingUnblockedSince == null) ? 0 : this.blockingUnblockedSince.hashCode());
|
||||||
|
result = prime * result + ((this.blockingBlockedReason == null) ? 0 : this.blockingBlockedReason.hashCode());
|
||||||
|
result = prime * result + ((this.blockingBlockedSince == null) ? 0 : this.blockingBlockedSince.hashCode());
|
||||||
|
result = prime * result + ((this.suspension == null) ? 0 : this.suspension.hashCode());
|
||||||
|
result = prime * result + ((this.suspensionActiveSince == null) ? 0 : this.suspensionActiveSince.hashCode());
|
||||||
|
result = prime * result + ((this.suspensionSuspendedSince == null) ? 0 : this.suspensionSuspendedSince.hashCode());
|
||||||
|
result = prime * result + ((this.detailsName == null) ? 0 : this.detailsName.hashCode());
|
||||||
|
result = prime * result + ((this.detailsDescription == null) ? 0 : this.detailsDescription.hashCode());
|
||||||
|
result = prime * result + ((this.locationUrl == null) ? 0 : this.locationUrl.hashCode());
|
||||||
|
result = prime * result + ((this.categoryId == null) ? 0 : this.categoryId.hashCode());
|
||||||
|
result = prime * result + ((this.accountCurrencyCode == null) ? 0 : this.accountCurrencyCode.hashCode());
|
||||||
|
result = prime * result + ((this.accountSettlement == null) ? 0 : this.accountSettlement.hashCode());
|
||||||
|
result = prime * result + ((this.accountGuarantee == null) ? 0 : this.accountGuarantee.hashCode());
|
||||||
|
result = prime * result + ((this.accountPayout == null) ? 0 : this.accountPayout.hashCode());
|
||||||
|
result = prime * result + ((this.contractId == null) ? 0 : this.contractId.hashCode());
|
||||||
|
result = prime * result + ((this.payoutToolId == null) ? 0 : this.payoutToolId.hashCode());
|
||||||
|
result = prime * result + ((this.payoutScheduleId == null) ? 0 : this.payoutScheduleId.hashCode());
|
||||||
|
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
|
||||||
|
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("Shop (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(eventId);
|
||||||
|
sb.append(", ").append(eventCreatedAt);
|
||||||
|
sb.append(", ").append(partyId);
|
||||||
|
sb.append(", ").append(shopId);
|
||||||
|
sb.append(", ").append(createdAt);
|
||||||
|
sb.append(", ").append(blocking);
|
||||||
|
sb.append(", ").append(blockingUnblockedReason);
|
||||||
|
sb.append(", ").append(blockingUnblockedSince);
|
||||||
|
sb.append(", ").append(blockingBlockedReason);
|
||||||
|
sb.append(", ").append(blockingBlockedSince);
|
||||||
|
sb.append(", ").append(suspension);
|
||||||
|
sb.append(", ").append(suspensionActiveSince);
|
||||||
|
sb.append(", ").append(suspensionSuspendedSince);
|
||||||
|
sb.append(", ").append(detailsName);
|
||||||
|
sb.append(", ").append(detailsDescription);
|
||||||
|
sb.append(", ").append(locationUrl);
|
||||||
|
sb.append(", ").append(categoryId);
|
||||||
|
sb.append(", ").append(accountCurrencyCode);
|
||||||
|
sb.append(", ").append(accountSettlement);
|
||||||
|
sb.append(", ").append(accountGuarantee);
|
||||||
|
sb.append(", ").append(accountPayout);
|
||||||
|
sb.append(", ").append(contractId);
|
||||||
|
sb.append(", ").append(payoutToolId);
|
||||||
|
sb.append(", ").append(payoutScheduleId);
|
||||||
|
sb.append(", ").append(wtime);
|
||||||
|
sb.append(", ").append(current);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,750 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.records;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentstatus;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Adjustment;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Record1;
|
||||||
|
import org.jooq.Record16;
|
||||||
|
import org.jooq.Row16;
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class AdjustmentRecord extends UpdatableRecordImpl<AdjustmentRecord> implements Record16<Long, Long, LocalDateTime, Long, String, String, String, String, String, LocalDateTime, Adjustmentstatus, LocalDateTime, LocalDateTime, String, LocalDateTime, Boolean> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -643326763;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Long value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.id</code>.
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return (Long) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.event_id</code>.
|
||||||
|
*/
|
||||||
|
public void setEventId(Long value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.event_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getEventId() {
|
||||||
|
return (Long) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public void setEventCreatedAt(LocalDateTime value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return (LocalDateTime) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.domain_revision</code>.
|
||||||
|
*/
|
||||||
|
public void setDomainRevision(Long value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.domain_revision</code>.
|
||||||
|
*/
|
||||||
|
public Long getDomainRevision() {
|
||||||
|
return (Long) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.adjustment_id</code>.
|
||||||
|
*/
|
||||||
|
public void setAdjustmentId(String value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.adjustment_id</code>.
|
||||||
|
*/
|
||||||
|
public String getAdjustmentId() {
|
||||||
|
return (String) get(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.payment_id</code>.
|
||||||
|
*/
|
||||||
|
public void setPaymentId(String value) {
|
||||||
|
set(5, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.payment_id</code>.
|
||||||
|
*/
|
||||||
|
public String getPaymentId() {
|
||||||
|
return (String) get(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.invoice_id</code>.
|
||||||
|
*/
|
||||||
|
public void setInvoiceId(String value) {
|
||||||
|
set(6, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.invoice_id</code>.
|
||||||
|
*/
|
||||||
|
public String getInvoiceId() {
|
||||||
|
return (String) get(6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.party_id</code>.
|
||||||
|
*/
|
||||||
|
public void setPartyId(String value) {
|
||||||
|
set(7, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.party_id</code>.
|
||||||
|
*/
|
||||||
|
public String getPartyId() {
|
||||||
|
return (String) get(7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public void setShopId(String value) {
|
||||||
|
set(8, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.shop_id</code>.
|
||||||
|
*/
|
||||||
|
public String getShopId() {
|
||||||
|
return (String) get(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public void setCreatedAt(LocalDateTime value) {
|
||||||
|
set(9, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return (LocalDateTime) get(9);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.status</code>.
|
||||||
|
*/
|
||||||
|
public void setStatus(Adjustmentstatus value) {
|
||||||
|
set(10, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.status</code>.
|
||||||
|
*/
|
||||||
|
public Adjustmentstatus getStatus() {
|
||||||
|
return (Adjustmentstatus) get(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.status_captured_at</code>.
|
||||||
|
*/
|
||||||
|
public void setStatusCapturedAt(LocalDateTime value) {
|
||||||
|
set(11, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.status_captured_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getStatusCapturedAt() {
|
||||||
|
return (LocalDateTime) get(11);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.status_cancelled_at</code>.
|
||||||
|
*/
|
||||||
|
public void setStatusCancelledAt(LocalDateTime value) {
|
||||||
|
set(12, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.status_cancelled_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getStatusCancelledAt() {
|
||||||
|
return (LocalDateTime) get(12);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.reason</code>.
|
||||||
|
*/
|
||||||
|
public void setReason(String value) {
|
||||||
|
set(13, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.reason</code>.
|
||||||
|
*/
|
||||||
|
public String getReason() {
|
||||||
|
return (String) get(13);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.wtime</code>.
|
||||||
|
*/
|
||||||
|
public void setWtime(LocalDateTime value) {
|
||||||
|
set(14, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.wtime</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return (LocalDateTime) get(14);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.adjustment.current</code>.
|
||||||
|
*/
|
||||||
|
public void setCurrent(Boolean value) {
|
||||||
|
set(15, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.adjustment.current</code>.
|
||||||
|
*/
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return (Boolean) get(15);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Record1<Long> key() {
|
||||||
|
return (Record1) super.key();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Record16 type implementation
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Row16<Long, Long, LocalDateTime, Long, String, String, String, String, String, LocalDateTime, Adjustmentstatus, LocalDateTime, LocalDateTime, String, LocalDateTime, Boolean> fieldsRow() {
|
||||||
|
return (Row16) super.fieldsRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Row16<Long, Long, LocalDateTime, Long, String, String, String, String, String, LocalDateTime, Adjustmentstatus, LocalDateTime, LocalDateTime, String, LocalDateTime, Boolean> valuesRow() {
|
||||||
|
return (Row16) super.valuesRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field1() {
|
||||||
|
return Adjustment.ADJUSTMENT.ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field2() {
|
||||||
|
return Adjustment.ADJUSTMENT.EVENT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field3() {
|
||||||
|
return Adjustment.ADJUSTMENT.EVENT_CREATED_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field4() {
|
||||||
|
return Adjustment.ADJUSTMENT.DOMAIN_REVISION;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field5() {
|
||||||
|
return Adjustment.ADJUSTMENT.ADJUSTMENT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field6() {
|
||||||
|
return Adjustment.ADJUSTMENT.PAYMENT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field7() {
|
||||||
|
return Adjustment.ADJUSTMENT.INVOICE_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field8() {
|
||||||
|
return Adjustment.ADJUSTMENT.PARTY_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field9() {
|
||||||
|
return Adjustment.ADJUSTMENT.SHOP_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field10() {
|
||||||
|
return Adjustment.ADJUSTMENT.CREATED_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Adjustmentstatus> field11() {
|
||||||
|
return Adjustment.ADJUSTMENT.STATUS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field12() {
|
||||||
|
return Adjustment.ADJUSTMENT.STATUS_CAPTURED_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field13() {
|
||||||
|
return Adjustment.ADJUSTMENT.STATUS_CANCELLED_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field14() {
|
||||||
|
return Adjustment.ADJUSTMENT.REASON;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field15() {
|
||||||
|
return Adjustment.ADJUSTMENT.WTIME;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Boolean> field16() {
|
||||||
|
return Adjustment.ADJUSTMENT.CURRENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value1() {
|
||||||
|
return getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value2() {
|
||||||
|
return getEventId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value3() {
|
||||||
|
return getEventCreatedAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value4() {
|
||||||
|
return getDomainRevision();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value5() {
|
||||||
|
return getAdjustmentId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value6() {
|
||||||
|
return getPaymentId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value7() {
|
||||||
|
return getInvoiceId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value8() {
|
||||||
|
return getPartyId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value9() {
|
||||||
|
return getShopId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value10() {
|
||||||
|
return getCreatedAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Adjustmentstatus value11() {
|
||||||
|
return getStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value12() {
|
||||||
|
return getStatusCapturedAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value13() {
|
||||||
|
return getStatusCancelledAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value14() {
|
||||||
|
return getReason();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value15() {
|
||||||
|
return getWtime();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Boolean value16() {
|
||||||
|
return getCurrent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value1(Long value) {
|
||||||
|
setId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value2(Long value) {
|
||||||
|
setEventId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value3(LocalDateTime value) {
|
||||||
|
setEventCreatedAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value4(Long value) {
|
||||||
|
setDomainRevision(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value5(String value) {
|
||||||
|
setAdjustmentId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value6(String value) {
|
||||||
|
setPaymentId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value7(String value) {
|
||||||
|
setInvoiceId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value8(String value) {
|
||||||
|
setPartyId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value9(String value) {
|
||||||
|
setShopId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value10(LocalDateTime value) {
|
||||||
|
setCreatedAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value11(Adjustmentstatus value) {
|
||||||
|
setStatus(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value12(LocalDateTime value) {
|
||||||
|
setStatusCapturedAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value13(LocalDateTime value) {
|
||||||
|
setStatusCancelledAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value14(String value) {
|
||||||
|
setReason(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value15(LocalDateTime value) {
|
||||||
|
setWtime(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord value16(Boolean value) {
|
||||||
|
setCurrent(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AdjustmentRecord values(Long value1, Long value2, LocalDateTime value3, Long value4, String value5, String value6, String value7, String value8, String value9, LocalDateTime value10, Adjustmentstatus value11, LocalDateTime value12, LocalDateTime value13, String value14, LocalDateTime value15, Boolean value16) {
|
||||||
|
value1(value1);
|
||||||
|
value2(value2);
|
||||||
|
value3(value3);
|
||||||
|
value4(value4);
|
||||||
|
value5(value5);
|
||||||
|
value6(value6);
|
||||||
|
value7(value7);
|
||||||
|
value8(value8);
|
||||||
|
value9(value9);
|
||||||
|
value10(value10);
|
||||||
|
value11(value11);
|
||||||
|
value12(value12);
|
||||||
|
value13(value13);
|
||||||
|
value14(value14);
|
||||||
|
value15(value15);
|
||||||
|
value16(value16);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Constructors
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached AdjustmentRecord
|
||||||
|
*/
|
||||||
|
public AdjustmentRecord() {
|
||||||
|
super(Adjustment.ADJUSTMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised AdjustmentRecord
|
||||||
|
*/
|
||||||
|
public AdjustmentRecord(Long id, Long eventId, LocalDateTime eventCreatedAt, Long domainRevision, String adjustmentId, String paymentId, String invoiceId, String partyId, String shopId, LocalDateTime createdAt, Adjustmentstatus status, LocalDateTime statusCapturedAt, LocalDateTime statusCancelledAt, String reason, LocalDateTime wtime, Boolean current) {
|
||||||
|
super(Adjustment.ADJUSTMENT);
|
||||||
|
|
||||||
|
set(0, id);
|
||||||
|
set(1, eventId);
|
||||||
|
set(2, eventCreatedAt);
|
||||||
|
set(3, domainRevision);
|
||||||
|
set(4, adjustmentId);
|
||||||
|
set(5, paymentId);
|
||||||
|
set(6, invoiceId);
|
||||||
|
set(7, partyId);
|
||||||
|
set(8, shopId);
|
||||||
|
set(9, createdAt);
|
||||||
|
set(10, status);
|
||||||
|
set(11, statusCapturedAt);
|
||||||
|
set(12, statusCancelledAt);
|
||||||
|
set(13, reason);
|
||||||
|
set(14, wtime);
|
||||||
|
set(15, current);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,627 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.records;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Adjustmentcashflowtype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Cashflowaccount;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Paymentchangetype;
|
||||||
|
import com.rbkmoney.newway.domain.tables.CashFlow;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Record1;
|
||||||
|
import org.jooq.Record13;
|
||||||
|
import org.jooq.Row13;
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class CashFlowRecord extends UpdatableRecordImpl<CashFlowRecord> implements Record13<Long, Long, Paymentchangetype, Adjustmentcashflowtype, Cashflowaccount, String, Long, Cashflowaccount, String, Long, Long, String, String> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1815681074;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Long value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.id</code>.
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return (Long) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.obj_id</code>.
|
||||||
|
*/
|
||||||
|
public void setObjId(Long value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.obj_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getObjId() {
|
||||||
|
return (Long) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.obj_type</code>.
|
||||||
|
*/
|
||||||
|
public void setObjType(Paymentchangetype value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.obj_type</code>.
|
||||||
|
*/
|
||||||
|
public Paymentchangetype getObjType() {
|
||||||
|
return (Paymentchangetype) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.adj_flow_type</code>.
|
||||||
|
*/
|
||||||
|
public void setAdjFlowType(Adjustmentcashflowtype value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.adj_flow_type</code>.
|
||||||
|
*/
|
||||||
|
public Adjustmentcashflowtype getAdjFlowType() {
|
||||||
|
return (Adjustmentcashflowtype) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.source_account_type</code>.
|
||||||
|
*/
|
||||||
|
public void setSourceAccountType(Cashflowaccount value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.source_account_type</code>.
|
||||||
|
*/
|
||||||
|
public Cashflowaccount getSourceAccountType() {
|
||||||
|
return (Cashflowaccount) get(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.source_account_type_value</code>.
|
||||||
|
*/
|
||||||
|
public void setSourceAccountTypeValue(String value) {
|
||||||
|
set(5, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.source_account_type_value</code>.
|
||||||
|
*/
|
||||||
|
public String getSourceAccountTypeValue() {
|
||||||
|
return (String) get(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.source_account_id</code>.
|
||||||
|
*/
|
||||||
|
public void setSourceAccountId(Long value) {
|
||||||
|
set(6, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.source_account_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getSourceAccountId() {
|
||||||
|
return (Long) get(6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.destination_account_type</code>.
|
||||||
|
*/
|
||||||
|
public void setDestinationAccountType(Cashflowaccount value) {
|
||||||
|
set(7, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.destination_account_type</code>.
|
||||||
|
*/
|
||||||
|
public Cashflowaccount getDestinationAccountType() {
|
||||||
|
return (Cashflowaccount) get(7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.destination_account_type_value</code>.
|
||||||
|
*/
|
||||||
|
public void setDestinationAccountTypeValue(String value) {
|
||||||
|
set(8, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.destination_account_type_value</code>.
|
||||||
|
*/
|
||||||
|
public String getDestinationAccountTypeValue() {
|
||||||
|
return (String) get(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.destination_account_id</code>.
|
||||||
|
*/
|
||||||
|
public void setDestinationAccountId(Long value) {
|
||||||
|
set(9, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.destination_account_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getDestinationAccountId() {
|
||||||
|
return (Long) get(9);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.amount</code>.
|
||||||
|
*/
|
||||||
|
public void setAmount(Long value) {
|
||||||
|
set(10, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.amount</code>.
|
||||||
|
*/
|
||||||
|
public Long getAmount() {
|
||||||
|
return (Long) get(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public void setCurrencyCode(String value) {
|
||||||
|
set(11, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.currency_code</code>.
|
||||||
|
*/
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return (String) get(11);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.cash_flow.details</code>.
|
||||||
|
*/
|
||||||
|
public void setDetails(String value) {
|
||||||
|
set(12, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.cash_flow.details</code>.
|
||||||
|
*/
|
||||||
|
public String getDetails() {
|
||||||
|
return (String) get(12);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Record1<Long> key() {
|
||||||
|
return (Record1) super.key();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Record13 type implementation
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Row13<Long, Long, Paymentchangetype, Adjustmentcashflowtype, Cashflowaccount, String, Long, Cashflowaccount, String, Long, Long, String, String> fieldsRow() {
|
||||||
|
return (Row13) super.fieldsRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Row13<Long, Long, Paymentchangetype, Adjustmentcashflowtype, Cashflowaccount, String, Long, Cashflowaccount, String, Long, Long, String, String> valuesRow() {
|
||||||
|
return (Row13) super.valuesRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field1() {
|
||||||
|
return CashFlow.CASH_FLOW.ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field2() {
|
||||||
|
return CashFlow.CASH_FLOW.OBJ_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Paymentchangetype> field3() {
|
||||||
|
return CashFlow.CASH_FLOW.OBJ_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Adjustmentcashflowtype> field4() {
|
||||||
|
return CashFlow.CASH_FLOW.ADJ_FLOW_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Cashflowaccount> field5() {
|
||||||
|
return CashFlow.CASH_FLOW.SOURCE_ACCOUNT_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field6() {
|
||||||
|
return CashFlow.CASH_FLOW.SOURCE_ACCOUNT_TYPE_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field7() {
|
||||||
|
return CashFlow.CASH_FLOW.SOURCE_ACCOUNT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Cashflowaccount> field8() {
|
||||||
|
return CashFlow.CASH_FLOW.DESTINATION_ACCOUNT_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field9() {
|
||||||
|
return CashFlow.CASH_FLOW.DESTINATION_ACCOUNT_TYPE_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field10() {
|
||||||
|
return CashFlow.CASH_FLOW.DESTINATION_ACCOUNT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field11() {
|
||||||
|
return CashFlow.CASH_FLOW.AMOUNT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field12() {
|
||||||
|
return CashFlow.CASH_FLOW.CURRENCY_CODE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field13() {
|
||||||
|
return CashFlow.CASH_FLOW.DETAILS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value1() {
|
||||||
|
return getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value2() {
|
||||||
|
return getObjId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Paymentchangetype value3() {
|
||||||
|
return getObjType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Adjustmentcashflowtype value4() {
|
||||||
|
return getAdjFlowType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Cashflowaccount value5() {
|
||||||
|
return getSourceAccountType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value6() {
|
||||||
|
return getSourceAccountTypeValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value7() {
|
||||||
|
return getSourceAccountId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Cashflowaccount value8() {
|
||||||
|
return getDestinationAccountType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value9() {
|
||||||
|
return getDestinationAccountTypeValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value10() {
|
||||||
|
return getDestinationAccountId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value11() {
|
||||||
|
return getAmount();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value12() {
|
||||||
|
return getCurrencyCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value13() {
|
||||||
|
return getDetails();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value1(Long value) {
|
||||||
|
setId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value2(Long value) {
|
||||||
|
setObjId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value3(Paymentchangetype value) {
|
||||||
|
setObjType(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value4(Adjustmentcashflowtype value) {
|
||||||
|
setAdjFlowType(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value5(Cashflowaccount value) {
|
||||||
|
setSourceAccountType(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value6(String value) {
|
||||||
|
setSourceAccountTypeValue(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value7(Long value) {
|
||||||
|
setSourceAccountId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value8(Cashflowaccount value) {
|
||||||
|
setDestinationAccountType(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value9(String value) {
|
||||||
|
setDestinationAccountTypeValue(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value10(Long value) {
|
||||||
|
setDestinationAccountId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value11(Long value) {
|
||||||
|
setAmount(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value12(String value) {
|
||||||
|
setCurrencyCode(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord value13(String value) {
|
||||||
|
setDetails(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CashFlowRecord values(Long value1, Long value2, Paymentchangetype value3, Adjustmentcashflowtype value4, Cashflowaccount value5, String value6, Long value7, Cashflowaccount value8, String value9, Long value10, Long value11, String value12, String value13) {
|
||||||
|
value1(value1);
|
||||||
|
value2(value2);
|
||||||
|
value3(value3);
|
||||||
|
value4(value4);
|
||||||
|
value5(value5);
|
||||||
|
value6(value6);
|
||||||
|
value7(value7);
|
||||||
|
value8(value8);
|
||||||
|
value9(value9);
|
||||||
|
value10(value10);
|
||||||
|
value11(value11);
|
||||||
|
value12(value12);
|
||||||
|
value13(value13);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Constructors
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached CashFlowRecord
|
||||||
|
*/
|
||||||
|
public CashFlowRecord() {
|
||||||
|
super(CashFlow.CASH_FLOW);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised CashFlowRecord
|
||||||
|
*/
|
||||||
|
public CashFlowRecord(Long id, Long objId, Paymentchangetype objType, Adjustmentcashflowtype adjFlowType, Cashflowaccount sourceAccountType, String sourceAccountTypeValue, Long sourceAccountId, Cashflowaccount destinationAccountType, String destinationAccountTypeValue, Long destinationAccountId, Long amount, String currencyCode, String details) {
|
||||||
|
super(CashFlow.CASH_FLOW);
|
||||||
|
|
||||||
|
set(0, id);
|
||||||
|
set(1, objId);
|
||||||
|
set(2, objType);
|
||||||
|
set(3, adjFlowType);
|
||||||
|
set(4, sourceAccountType);
|
||||||
|
set(5, sourceAccountTypeValue);
|
||||||
|
set(6, sourceAccountId);
|
||||||
|
set(7, destinationAccountType);
|
||||||
|
set(8, destinationAccountTypeValue);
|
||||||
|
set(9, destinationAccountId);
|
||||||
|
set(10, amount);
|
||||||
|
set(11, currencyCode);
|
||||||
|
set(12, details);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,380 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.records;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.tables.ContractAdjustment;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Record1;
|
||||||
|
import org.jooq.Record7;
|
||||||
|
import org.jooq.Row7;
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class ContractAdjustmentRecord extends UpdatableRecordImpl<ContractAdjustmentRecord> implements Record7<Long, Long, String, LocalDateTime, LocalDateTime, LocalDateTime, Integer> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1674942752;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Long value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.id</code>.
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return (Long) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.cntrct_id</code>.
|
||||||
|
*/
|
||||||
|
public void setCntrctId(Long value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.cntrct_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getCntrctId() {
|
||||||
|
return (Long) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.contract_adjustment_id</code>.
|
||||||
|
*/
|
||||||
|
public void setContractAdjustmentId(String value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.contract_adjustment_id</code>.
|
||||||
|
*/
|
||||||
|
public String getContractAdjustmentId() {
|
||||||
|
return (String) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public void setCreatedAt(LocalDateTime value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.created_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return (LocalDateTime) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.valid_since</code>.
|
||||||
|
*/
|
||||||
|
public void setValidSince(LocalDateTime value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.valid_since</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getValidSince() {
|
||||||
|
return (LocalDateTime) get(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.valid_until</code>.
|
||||||
|
*/
|
||||||
|
public void setValidUntil(LocalDateTime value) {
|
||||||
|
set(5, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.valid_until</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getValidUntil() {
|
||||||
|
return (LocalDateTime) get(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract_adjustment.terms_id</code>.
|
||||||
|
*/
|
||||||
|
public void setTermsId(Integer value) {
|
||||||
|
set(6, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract_adjustment.terms_id</code>.
|
||||||
|
*/
|
||||||
|
public Integer getTermsId() {
|
||||||
|
return (Integer) get(6);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Record1<Long> key() {
|
||||||
|
return (Record1) super.key();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Record7 type implementation
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Row7<Long, Long, String, LocalDateTime, LocalDateTime, LocalDateTime, Integer> fieldsRow() {
|
||||||
|
return (Row7) super.fieldsRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Row7<Long, Long, String, LocalDateTime, LocalDateTime, LocalDateTime, Integer> valuesRow() {
|
||||||
|
return (Row7) super.valuesRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field1() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Long> field2() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.CNTRCT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<String> field3() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.CONTRACT_ADJUSTMENT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field4() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.CREATED_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field5() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.VALID_SINCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field6() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.VALID_UNTIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Field<Integer> field7() {
|
||||||
|
return ContractAdjustment.CONTRACT_ADJUSTMENT.TERMS_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value1() {
|
||||||
|
return getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long value2() {
|
||||||
|
return getCntrctId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String value3() {
|
||||||
|
return getContractAdjustmentId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value4() {
|
||||||
|
return getCreatedAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value5() {
|
||||||
|
return getValidSince();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value6() {
|
||||||
|
return getValidUntil();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Integer value7() {
|
||||||
|
return getTermsId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value1(Long value) {
|
||||||
|
setId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value2(Long value) {
|
||||||
|
setCntrctId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value3(String value) {
|
||||||
|
setContractAdjustmentId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value4(LocalDateTime value) {
|
||||||
|
setCreatedAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value5(LocalDateTime value) {
|
||||||
|
setValidSince(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value6(LocalDateTime value) {
|
||||||
|
setValidUntil(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord value7(Integer value) {
|
||||||
|
setTermsId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ContractAdjustmentRecord values(Long value1, Long value2, String value3, LocalDateTime value4, LocalDateTime value5, LocalDateTime value6, Integer value7) {
|
||||||
|
value1(value1);
|
||||||
|
value2(value2);
|
||||||
|
value3(value3);
|
||||||
|
value4(value4);
|
||||||
|
value5(value5);
|
||||||
|
value6(value6);
|
||||||
|
value7(value7);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Constructors
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached ContractAdjustmentRecord
|
||||||
|
*/
|
||||||
|
public ContractAdjustmentRecord() {
|
||||||
|
super(ContractAdjustment.CONTRACT_ADJUSTMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised ContractAdjustmentRecord
|
||||||
|
*/
|
||||||
|
public ContractAdjustmentRecord(Long id, Long cntrctId, String contractAdjustmentId, LocalDateTime createdAt, LocalDateTime validSince, LocalDateTime validUntil, Integer termsId) {
|
||||||
|
super(ContractAdjustment.CONTRACT_ADJUSTMENT);
|
||||||
|
|
||||||
|
set(0, id);
|
||||||
|
set(1, cntrctId);
|
||||||
|
set(2, contractAdjustmentId);
|
||||||
|
set(3, createdAt);
|
||||||
|
set(4, validSince);
|
||||||
|
set(5, validUntil);
|
||||||
|
set(6, termsId);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,439 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.records;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Contractstatus;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Representativedocument;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contract;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Record1;
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class ContractRecord extends UpdatableRecordImpl<ContractRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1306341990;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Long value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.id</code>.
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return (Long) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.event_id</code>.
|
||||||
|
*/
|
||||||
|
public void setEventId(Long value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.event_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getEventId() {
|
||||||
|
return (Long) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public void setEventCreatedAt(LocalDateTime value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return (LocalDateTime) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.contract_id</code>.
|
||||||
|
*/
|
||||||
|
public void setContractId(String value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.contract_id</code>.
|
||||||
|
*/
|
||||||
|
public String getContractId() {
|
||||||
|
return (String) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.party_id</code>.
|
||||||
|
*/
|
||||||
|
public void setPartyId(String value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.party_id</code>.
|
||||||
|
*/
|
||||||
|
public String getPartyId() {
|
||||||
|
return (String) get(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.payment_institution_id</code>.
|
||||||
|
*/
|
||||||
|
public void setPaymentInstitutionId(Integer value) {
|
||||||
|
set(5, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.payment_institution_id</code>.
|
||||||
|
*/
|
||||||
|
public Integer getPaymentInstitutionId() {
|
||||||
|
return (Integer) get(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.created_at</code>.
|
||||||
|
*/
|
||||||
|
public void setCreatedAt(LocalDateTime value) {
|
||||||
|
set(6, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.created_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getCreatedAt() {
|
||||||
|
return (LocalDateTime) get(6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.valid_since</code>.
|
||||||
|
*/
|
||||||
|
public void setValidSince(LocalDateTime value) {
|
||||||
|
set(7, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.valid_since</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getValidSince() {
|
||||||
|
return (LocalDateTime) get(7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.valid_until</code>.
|
||||||
|
*/
|
||||||
|
public void setValidUntil(LocalDateTime value) {
|
||||||
|
set(8, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.valid_until</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getValidUntil() {
|
||||||
|
return (LocalDateTime) get(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.status</code>.
|
||||||
|
*/
|
||||||
|
public void setStatus(Contractstatus value) {
|
||||||
|
set(9, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.status</code>.
|
||||||
|
*/
|
||||||
|
public Contractstatus getStatus() {
|
||||||
|
return (Contractstatus) get(9);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.status_terminated_at</code>.
|
||||||
|
*/
|
||||||
|
public void setStatusTerminatedAt(LocalDateTime value) {
|
||||||
|
set(10, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.status_terminated_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getStatusTerminatedAt() {
|
||||||
|
return (LocalDateTime) get(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.terms_id</code>.
|
||||||
|
*/
|
||||||
|
public void setTermsId(Integer value) {
|
||||||
|
set(11, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.terms_id</code>.
|
||||||
|
*/
|
||||||
|
public Integer getTermsId() {
|
||||||
|
return (Integer) get(11);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.legal_agreement_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public void setLegalAgreementSignedAt(LocalDateTime value) {
|
||||||
|
set(12, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.legal_agreement_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getLegalAgreementSignedAt() {
|
||||||
|
return (LocalDateTime) get(12);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public void setLegalAgreementId(String value) {
|
||||||
|
set(13, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public String getLegalAgreementId() {
|
||||||
|
return (String) get(13);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.legal_agreement_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public void setLegalAgreementValidUntil(LocalDateTime value) {
|
||||||
|
set(14, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.legal_agreement_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getLegalAgreementValidUntil() {
|
||||||
|
return (LocalDateTime) get(14);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_schedule_id</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActScheduleId(Integer value) {
|
||||||
|
set(15, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_schedule_id</code>.
|
||||||
|
*/
|
||||||
|
public Integer getReportActScheduleId() {
|
||||||
|
return (Integer) get(15);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_signer_position</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActSignerPosition(String value) {
|
||||||
|
set(16, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_signer_position</code>.
|
||||||
|
*/
|
||||||
|
public String getReportActSignerPosition() {
|
||||||
|
return (String) get(16);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_signer_full_name</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActSignerFullName(String value) {
|
||||||
|
set(17, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_signer_full_name</code>.
|
||||||
|
*/
|
||||||
|
public String getReportActSignerFullName() {
|
||||||
|
return (String) get(17);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_signer_document</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActSignerDocument(Representativedocument value) {
|
||||||
|
set(18, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_signer_document</code>.
|
||||||
|
*/
|
||||||
|
public Representativedocument getReportActSignerDocument() {
|
||||||
|
return (Representativedocument) get(18);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_signer_doc_power_of_attorney_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActSignerDocPowerOfAttorneySignedAt(LocalDateTime value) {
|
||||||
|
set(19, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_signer_doc_power_of_attorney_signed_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getReportActSignerDocPowerOfAttorneySignedAt() {
|
||||||
|
return (LocalDateTime) get(19);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_signer_doc_power_of_attorney_legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActSignerDocPowerOfAttorneyLegalAgreementId(String value) {
|
||||||
|
set(20, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_signer_doc_power_of_attorney_legal_agreement_id</code>.
|
||||||
|
*/
|
||||||
|
public String getReportActSignerDocPowerOfAttorneyLegalAgreementId() {
|
||||||
|
return (String) get(20);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.report_act_signer_doc_power_of_attorney_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public void setReportActSignerDocPowerOfAttorneyValidUntil(LocalDateTime value) {
|
||||||
|
set(21, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.report_act_signer_doc_power_of_attorney_valid_until</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getReportActSignerDocPowerOfAttorneyValidUntil() {
|
||||||
|
return (LocalDateTime) get(21);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.contractor_id</code>.
|
||||||
|
*/
|
||||||
|
public void setContractorId(String value) {
|
||||||
|
set(22, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.contractor_id</code>.
|
||||||
|
*/
|
||||||
|
public String getContractorId() {
|
||||||
|
return (String) get(22);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.wtime</code>.
|
||||||
|
*/
|
||||||
|
public void setWtime(LocalDateTime value) {
|
||||||
|
set(23, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.wtime</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return (LocalDateTime) get(23);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contract.current</code>.
|
||||||
|
*/
|
||||||
|
public void setCurrent(Boolean value) {
|
||||||
|
set(24, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contract.current</code>.
|
||||||
|
*/
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return (Boolean) get(24);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Record1<Long> key() {
|
||||||
|
return (Record1) super.key();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Constructors
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached ContractRecord
|
||||||
|
*/
|
||||||
|
public ContractRecord() {
|
||||||
|
super(Contract.CONTRACT);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised ContractRecord
|
||||||
|
*/
|
||||||
|
public ContractRecord(Long id, Long eventId, LocalDateTime eventCreatedAt, String contractId, String partyId, Integer paymentInstitutionId, LocalDateTime createdAt, LocalDateTime validSince, LocalDateTime validUntil, Contractstatus status, LocalDateTime statusTerminatedAt, Integer termsId, LocalDateTime legalAgreementSignedAt, String legalAgreementId, LocalDateTime legalAgreementValidUntil, Integer reportActScheduleId, String reportActSignerPosition, String reportActSignerFullName, Representativedocument reportActSignerDocument, LocalDateTime reportActSignerDocPowerOfAttorneySignedAt, String reportActSignerDocPowerOfAttorneyLegalAgreementId, LocalDateTime reportActSignerDocPowerOfAttorneyValidUntil, String contractorId, LocalDateTime wtime, Boolean current) {
|
||||||
|
super(Contract.CONTRACT);
|
||||||
|
|
||||||
|
set(0, id);
|
||||||
|
set(1, eventId);
|
||||||
|
set(2, eventCreatedAt);
|
||||||
|
set(3, contractId);
|
||||||
|
set(4, partyId);
|
||||||
|
set(5, paymentInstitutionId);
|
||||||
|
set(6, createdAt);
|
||||||
|
set(7, validSince);
|
||||||
|
set(8, validUntil);
|
||||||
|
set(9, status);
|
||||||
|
set(10, statusTerminatedAt);
|
||||||
|
set(11, termsId);
|
||||||
|
set(12, legalAgreementSignedAt);
|
||||||
|
set(13, legalAgreementId);
|
||||||
|
set(14, legalAgreementValidUntil);
|
||||||
|
set(15, reportActScheduleId);
|
||||||
|
set(16, reportActSignerPosition);
|
||||||
|
set(17, reportActSignerFullName);
|
||||||
|
set(18, reportActSignerDocument);
|
||||||
|
set(19, reportActSignerDocPowerOfAttorneySignedAt);
|
||||||
|
set(20, reportActSignerDocPowerOfAttorneyLegalAgreementId);
|
||||||
|
set(21, reportActSignerDocPowerOfAttorneyValidUntil);
|
||||||
|
set(22, contractorId);
|
||||||
|
set(23, wtime);
|
||||||
|
set(24, current);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,575 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.rbkmoney.newway.domain.tables.records;
|
||||||
|
|
||||||
|
|
||||||
|
import com.rbkmoney.newway.domain.enums.Contractortype;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Legalentity;
|
||||||
|
import com.rbkmoney.newway.domain.enums.Privateentity;
|
||||||
|
import com.rbkmoney.newway.domain.tables.Contractor;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
import org.jooq.Record1;
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Generated(
|
||||||
|
value = {
|
||||||
|
"http://www.jooq.org",
|
||||||
|
"jOOQ version:3.9.6"
|
||||||
|
},
|
||||||
|
comments = "This class is generated by jOOQ"
|
||||||
|
)
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class ContractorRecord extends UpdatableRecordImpl<ContractorRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 37665465;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Long value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.id</code>.
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return (Long) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.event_id</code>.
|
||||||
|
*/
|
||||||
|
public void setEventId(Long value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.event_id</code>.
|
||||||
|
*/
|
||||||
|
public Long getEventId() {
|
||||||
|
return (Long) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public void setEventCreatedAt(LocalDateTime value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.event_created_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getEventCreatedAt() {
|
||||||
|
return (LocalDateTime) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.party_id</code>.
|
||||||
|
*/
|
||||||
|
public void setPartyId(String value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.party_id</code>.
|
||||||
|
*/
|
||||||
|
public String getPartyId() {
|
||||||
|
return (String) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.contractor_id</code>.
|
||||||
|
*/
|
||||||
|
public void setContractorId(String value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.contractor_id</code>.
|
||||||
|
*/
|
||||||
|
public String getContractorId() {
|
||||||
|
return (String) get(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.type</code>.
|
||||||
|
*/
|
||||||
|
public void setType(Contractortype value) {
|
||||||
|
set(5, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.type</code>.
|
||||||
|
*/
|
||||||
|
public Contractortype getType() {
|
||||||
|
return (Contractortype) get(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.identificational_level</code>.
|
||||||
|
*/
|
||||||
|
public void setIdentificationalLevel(String value) {
|
||||||
|
set(6, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.identificational_level</code>.
|
||||||
|
*/
|
||||||
|
public String getIdentificationalLevel() {
|
||||||
|
return (String) get(6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.registered_user_email</code>.
|
||||||
|
*/
|
||||||
|
public void setRegisteredUserEmail(String value) {
|
||||||
|
set(7, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.registered_user_email</code>.
|
||||||
|
*/
|
||||||
|
public String getRegisteredUserEmail() {
|
||||||
|
return (String) get(7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.legal_entity</code>.
|
||||||
|
*/
|
||||||
|
public void setLegalEntity(Legalentity value) {
|
||||||
|
set(8, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.legal_entity</code>.
|
||||||
|
*/
|
||||||
|
public Legalentity getLegalEntity() {
|
||||||
|
return (Legalentity) get(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_registered_name</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRegisteredName(String value) {
|
||||||
|
set(9, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_registered_name</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRegisteredName() {
|
||||||
|
return (String) get(9);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRegisteredNumber(String value) {
|
||||||
|
set(10, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRegisteredNumber() {
|
||||||
|
return (String) get(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_inn</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityInn(String value) {
|
||||||
|
set(11, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_inn</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityInn() {
|
||||||
|
return (String) get(11);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityActualAddress(String value) {
|
||||||
|
set(12, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityActualAddress() {
|
||||||
|
return (String) get(12);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_post_address</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityPostAddress(String value) {
|
||||||
|
set(13, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_post_address</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityPostAddress() {
|
||||||
|
return (String) get(13);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_representative_position</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRepresentativePosition(String value) {
|
||||||
|
set(14, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_representative_position</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRepresentativePosition() {
|
||||||
|
return (String) get(14);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_representative_full_name</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRepresentativeFullName(String value) {
|
||||||
|
set(15, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_representative_full_name</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRepresentativeFullName() {
|
||||||
|
return (String) get(15);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_representative_document</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRepresentativeDocument(String value) {
|
||||||
|
set(16, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_representative_document</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRepresentativeDocument() {
|
||||||
|
return (String) get(16);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_russian_bank_account</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRussianBankAccount(String value) {
|
||||||
|
set(17, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_russian_bank_account</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRussianBankAccount() {
|
||||||
|
return (String) get(17);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_russian_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRussianBankName(String value) {
|
||||||
|
set(18, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_russian_bank_name</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRussianBankName() {
|
||||||
|
return (String) get(18);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_russian_bank_post_account</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRussianBankPostAccount(String value) {
|
||||||
|
set(19, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_russian_bank_post_account</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRussianBankPostAccount() {
|
||||||
|
return (String) get(19);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_legal_entity_russian_bank_bik</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianLegalEntityRussianBankBik(String value) {
|
||||||
|
set(20, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_legal_entity_russian_bank_bik</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianLegalEntityRussianBankBik() {
|
||||||
|
return (String) get(20);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.international_legal_entity_legal_name</code>.
|
||||||
|
*/
|
||||||
|
public void setInternationalLegalEntityLegalName(String value) {
|
||||||
|
set(21, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.international_legal_entity_legal_name</code>.
|
||||||
|
*/
|
||||||
|
public String getInternationalLegalEntityLegalName() {
|
||||||
|
return (String) get(21);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.international_legal_entity_trading_name</code>.
|
||||||
|
*/
|
||||||
|
public void setInternationalLegalEntityTradingName(String value) {
|
||||||
|
set(22, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.international_legal_entity_trading_name</code>.
|
||||||
|
*/
|
||||||
|
public String getInternationalLegalEntityTradingName() {
|
||||||
|
return (String) get(22);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.international_legal_entity_registered_address</code>.
|
||||||
|
*/
|
||||||
|
public void setInternationalLegalEntityRegisteredAddress(String value) {
|
||||||
|
set(23, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.international_legal_entity_registered_address</code>.
|
||||||
|
*/
|
||||||
|
public String getInternationalLegalEntityRegisteredAddress() {
|
||||||
|
return (String) get(23);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.international_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public void setInternationalLegalEntityActualAddress(String value) {
|
||||||
|
set(24, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.international_legal_entity_actual_address</code>.
|
||||||
|
*/
|
||||||
|
public String getInternationalLegalEntityActualAddress() {
|
||||||
|
return (String) get(24);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.international_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public void setInternationalLegalEntityRegisteredNumber(String value) {
|
||||||
|
set(25, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.international_legal_entity_registered_number</code>.
|
||||||
|
*/
|
||||||
|
public String getInternationalLegalEntityRegisteredNumber() {
|
||||||
|
return (String) get(25);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.private_entity</code>.
|
||||||
|
*/
|
||||||
|
public void setPrivateEntity(Privateentity value) {
|
||||||
|
set(26, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.private_entity</code>.
|
||||||
|
*/
|
||||||
|
public Privateentity getPrivateEntity() {
|
||||||
|
return (Privateentity) get(26);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_private_entity_first_name</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianPrivateEntityFirstName(String value) {
|
||||||
|
set(27, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_private_entity_first_name</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianPrivateEntityFirstName() {
|
||||||
|
return (String) get(27);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_private_entity_second_name</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianPrivateEntitySecondName(String value) {
|
||||||
|
set(28, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_private_entity_second_name</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianPrivateEntitySecondName() {
|
||||||
|
return (String) get(28);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_private_entity_middle_name</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianPrivateEntityMiddleName(String value) {
|
||||||
|
set(29, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_private_entity_middle_name</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianPrivateEntityMiddleName() {
|
||||||
|
return (String) get(29);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_private_entity_phone_number</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianPrivateEntityPhoneNumber(String value) {
|
||||||
|
set(30, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_private_entity_phone_number</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianPrivateEntityPhoneNumber() {
|
||||||
|
return (String) get(30);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.russian_private_entity_email</code>.
|
||||||
|
*/
|
||||||
|
public void setRussianPrivateEntityEmail(String value) {
|
||||||
|
set(31, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.russian_private_entity_email</code>.
|
||||||
|
*/
|
||||||
|
public String getRussianPrivateEntityEmail() {
|
||||||
|
return (String) get(31);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.wtime</code>.
|
||||||
|
*/
|
||||||
|
public void setWtime(LocalDateTime value) {
|
||||||
|
set(32, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.wtime</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getWtime() {
|
||||||
|
return (LocalDateTime) get(32);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>nw.contractor.current</code>.
|
||||||
|
*/
|
||||||
|
public void setCurrent(Boolean value) {
|
||||||
|
set(33, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>nw.contractor.current</code>.
|
||||||
|
*/
|
||||||
|
public Boolean getCurrent() {
|
||||||
|
return (Boolean) get(33);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Record1<Long> key() {
|
||||||
|
return (Record1) super.key();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Constructors
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached ContractorRecord
|
||||||
|
*/
|
||||||
|
public ContractorRecord() {
|
||||||
|
super(Contractor.CONTRACTOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised ContractorRecord
|
||||||
|
*/
|
||||||
|
public ContractorRecord(Long id, Long eventId, LocalDateTime eventCreatedAt, String partyId, String contractorId, Contractortype type, String identificationalLevel, String registeredUserEmail, Legalentity legalEntity, String russianLegalEntityRegisteredName, String russianLegalEntityRegisteredNumber, String russianLegalEntityInn, String russianLegalEntityActualAddress, String russianLegalEntityPostAddress, String russianLegalEntityRepresentativePosition, String russianLegalEntityRepresentativeFullName, String russianLegalEntityRepresentativeDocument, String russianLegalEntityRussianBankAccount, String russianLegalEntityRussianBankName, String russianLegalEntityRussianBankPostAccount, String russianLegalEntityRussianBankBik, String internationalLegalEntityLegalName, String internationalLegalEntityTradingName, String internationalLegalEntityRegisteredAddress, String internationalLegalEntityActualAddress, String internationalLegalEntityRegisteredNumber, Privateentity privateEntity, String russianPrivateEntityFirstName, String russianPrivateEntitySecondName, String russianPrivateEntityMiddleName, String russianPrivateEntityPhoneNumber, String russianPrivateEntityEmail, LocalDateTime wtime, Boolean current) {
|
||||||
|
super(Contractor.CONTRACTOR);
|
||||||
|
|
||||||
|
set(0, id);
|
||||||
|
set(1, eventId);
|
||||||
|
set(2, eventCreatedAt);
|
||||||
|
set(3, partyId);
|
||||||
|
set(4, contractorId);
|
||||||
|
set(5, type);
|
||||||
|
set(6, identificationalLevel);
|
||||||
|
set(7, registeredUserEmail);
|
||||||
|
set(8, legalEntity);
|
||||||
|
set(9, russianLegalEntityRegisteredName);
|
||||||
|
set(10, russianLegalEntityRegisteredNumber);
|
||||||
|
set(11, russianLegalEntityInn);
|
||||||
|
set(12, russianLegalEntityActualAddress);
|
||||||
|
set(13, russianLegalEntityPostAddress);
|
||||||
|
set(14, russianLegalEntityRepresentativePosition);
|
||||||
|
set(15, russianLegalEntityRepresentativeFullName);
|
||||||
|
set(16, russianLegalEntityRepresentativeDocument);
|
||||||
|
set(17, russianLegalEntityRussianBankAccount);
|
||||||
|
set(18, russianLegalEntityRussianBankName);
|
||||||
|
set(19, russianLegalEntityRussianBankPostAccount);
|
||||||
|
set(20, russianLegalEntityRussianBankBik);
|
||||||
|
set(21, internationalLegalEntityLegalName);
|
||||||
|
set(22, internationalLegalEntityTradingName);
|
||||||
|
set(23, internationalLegalEntityRegisteredAddress);
|
||||||
|
set(24, internationalLegalEntityActualAddress);
|
||||||
|
set(25, internationalLegalEntityRegisteredNumber);
|
||||||
|
set(26, privateEntity);
|
||||||
|
set(27, russianPrivateEntityFirstName);
|
||||||
|
set(28, russianPrivateEntitySecondName);
|
||||||
|
set(29, russianPrivateEntityMiddleName);
|
||||||
|
set(30, russianPrivateEntityPhoneNumber);
|
||||||
|
set(31, russianPrivateEntityEmail);
|
||||||
|
set(32, wtime);
|
||||||
|
set(33, current);
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user