Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarovctrl committed May 9, 2024
1 parent 1b1032c commit ab0c6bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.example.paymejava;

import com.example.paymejava.entity.OrderEntity;
import com.example.paymejava.enums.OrderStatus;
import com.example.paymejava.repository.OrderRepository;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/example/paymejava/entity/OrderEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@Table(name = "custom_order")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class OrderEntity {
@Id
Expand All @@ -27,4 +26,10 @@ public class OrderEntity {
@Enumerated(EnumType.STRING)
@Column(nullable = false)
private OrderStatus status = OrderStatus.UNPAID;

public OrderEntity(Long id, Long amount, Boolean delivered) {
this.id = id;
this.amount = amount;
this.delivered = delivered;
}
}
11 changes: 2 additions & 9 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ server.error.include-message=always

paycom.checkout.url=https://checkout.paycom.uz/
paycom.user.name=Paycom
paycom.user.password=yENfUeo8bDpkCi%vfwHBu3K6qVOk76r4YjSI
paycom.merchant.id=6497d19943c6c1de2db3ca36
paycom.user.password=
paycom.merchant.id=

spring.h2.console.path=/db

logging.level.root=debug
logging.level.org.springframework=debug
logging.level.org.springframework.data=debug
logging.level.org.springframework.web=debug
logging.level.com.example=debug
logging.pattern.console="%d{yyyy-MM-dd HH:mm:ss} - %msg%n"
logging.pattern.file="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
logging.file.path=/logs/paycom/merchant.log


0 comments on commit ab0c6bb

Please sign in to comment.