Skip to content

Commit d10fbf7

Browse files
committed
fix: use snake_case
1 parent 587f0c7 commit d10fbf7

File tree

236 files changed

+2238
-2215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+2238
-2215
lines changed

openapi/generated/_async_api/_apply_escrow_logistics.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@dataclasses.dataclass
2222
class ApplyEscrowLogisticsParam:
23-
paymentId: str
23+
payment_id: str = dataclasses.field(metadata={"serde_rename": "paymentId"})
2424
"""결제 건 아이디"""
2525

2626
@dataclasses.dataclass
@@ -36,26 +36,26 @@ class ApplyEscrowLogisticsRequest(ApiRequest[ApplyEscrowLogisticsResponse, Apply
3636
class ApplyEscrowLogistics(ApiClient):
3737
async def apply_escrow_logistics(
3838
self,
39-
paymentId: str,
40-
storeId: Optional[str],
39+
payment_id: str,
40+
store_id: Optional[str],
4141
sender: Optional[PaymentEscrowSenderInput],
4242
receiver: Optional[PaymentEscrowReceiverInput],
4343
logistics: PaymentLogistics,
44-
sendEmail: Optional[bool],
44+
send_email: Optional[bool],
4545
products: Optional[list[PaymentProduct]],
4646
) -> ApplyEscrowLogisticsResponse:
4747
"""에스크로 배송 정보 등록
4848
4949
에스크로 배송 정보를 등록합니다.
5050
5151
Args:
52-
paymentId (str): 결제 건 아이디.
53-
storeId (Optional[str]): 상점 아이디.
52+
payment_id (str): 결제 건 아이디.
53+
store_id (Optional[str]): 상점 아이디.
5454
접근 권한이 있는 상점 아이디만 입력 가능하며, 미입력시 토큰에 담긴 상점 아이디를 사용합니다.
5555
sender (Optional[PaymentEscrowSenderInput]): 에스크로 발송자 정보.
5656
receiver (Optional[PaymentEscrowReceiverInput]): 에스크로 수취인 정보.
5757
logistics (PaymentLogistics): 에스크로 물류 정보.
58-
sendEmail (Optional[bool]): 이메일 알림 전송 여부.
58+
send_email (Optional[bool]): 이메일 알림 전송 여부.
5959
에스크로 구매 확정 시 이메일로 알림을 보낼지 여부입니다.
6060
products (Optional[list[PaymentProduct]]): 상품 정보.
6161
@@ -71,15 +71,15 @@ async def apply_escrow_logistics(
7171
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
7272
"""
7373
param_ = ApplyEscrowLogisticsParam(
74-
paymentId=paymentId,
74+
payment_id=payment_id,
7575
)
7676
query_ = ApplyEscrowLogisticsQuery()
7777
body_ = RegisterEscrowLogisticsBody(
78-
storeId=storeId,
78+
store_id=store_id,
7979
sender=sender,
8080
receiver=receiver,
8181
logistics=logistics,
82-
sendEmail=sendEmail,
82+
send_email=send_email,
8383
products=products,
8484
)
8585
response_ = await self.send(

openapi/generated/_async_api/_cancel_cash_receipt_by_payment_id.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
@dataclasses.dataclass
1717
class CancelCashReceiptByPaymentIdParam:
18-
paymentId: str
18+
payment_id: str = dataclasses.field(metadata={"serde_rename": "paymentId"})
1919
"""결제 건 아이디"""
2020

2121
@dataclasses.dataclass
2222
class CancelCashReceiptByPaymentIdQuery:
23-
storeId: Optional[str]
23+
store_id: Optional[str] = dataclasses.field(metadata={"serde_rename": "storeId"})
2424
"""상점 아이디
2525
2626
@@ -36,16 +36,16 @@ class CancelCashReceiptByPaymentIdRequest(ApiRequest[CancelCashReceiptResponse,
3636
class CancelCashReceiptByPaymentId(ApiClient):
3737
async def cancel_cash_receipt_by_payment_id(
3838
self,
39-
paymentId: str,
40-
storeId: Optional[str],
39+
payment_id: str,
40+
store_id: Optional[str],
4141
) -> CancelCashReceiptResponse:
4242
"""현금 영수증 취소
4343
4444
현금 영수증 취소를 요청합니다.
4545
4646
Args:
47-
paymentId (str): 결제 건 아이디.
48-
storeId (Optional[str]): 상점 아이디.
47+
payment_id (str): 결제 건 아이디.
48+
store_id (Optional[str]): 상점 아이디.
4949
접근 권한이 있는 상점 아이디만 입력 가능하며, 미입력시 토큰에 담긴 상점 아이디를 사용합니다.
5050
5151
Returns:
@@ -60,10 +60,10 @@ async def cancel_cash_receipt_by_payment_id(
6060
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
6161
"""
6262
param_ = CancelCashReceiptByPaymentIdParam(
63-
paymentId=paymentId,
63+
payment_id=payment_id,
6464
)
6565
query_ = CancelCashReceiptByPaymentIdQuery(
66-
storeId=storeId,
66+
store_id=store_id,
6767
)
6868
body_ = Empty()
6969
response_ = await self.send(

openapi/generated/_async_api/_cancel_payment.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
@dataclasses.dataclass
2727
class CancelPaymentParam:
28-
paymentId: str
28+
payment_id: str = dataclasses.field(metadata={"serde_rename": "paymentId"})
2929
"""결제 건 아이디"""
3030

3131
@dataclasses.dataclass
@@ -41,36 +41,36 @@ class CancelPaymentRequest(ApiRequest[CancelPaymentResponse, CancelPaymentError,
4141
class CancelPayment(ApiClient):
4242
async def cancel_payment(
4343
self,
44-
paymentId: str,
45-
storeId: Optional[str],
44+
payment_id: str,
45+
store_id: Optional[str],
4646
amount: Optional[int],
47-
taxFreeAmount: Optional[int],
48-
vatAmount: Optional[int],
47+
tax_free_amount: Optional[int],
48+
vat_amount: Optional[int],
4949
reason: str,
5050
requester: Optional[CancelRequester],
51-
currentCancellableAmount: Optional[int],
52-
refundAccount: Optional[CancelPaymentBodyRefundAccount],
51+
current_cancellable_amount: Optional[int],
52+
refund_account: Optional[CancelPaymentBodyRefundAccount],
5353
) -> CancelPaymentResponse:
5454
"""결제 취소
5555
5656
결제 취소를 요청합니다.
5757
5858
Args:
59-
paymentId (str): 결제 건 아이디.
60-
storeId (Optional[str]): 상점 아이디.
59+
payment_id (str): 결제 건 아이디.
60+
store_id (Optional[str]): 상점 아이디.
6161
접근 권한이 있는 상점 아이디만 입력 가능하며, 미입력시 토큰에 담긴 상점 아이디를 사용합니다.
6262
amount (Optional[int]): 취소 총 금액.
6363
값을 입력하지 않으면 전액 취소됩니다.
64-
taxFreeAmount (Optional[int]): 취소 금액 중 면세 금액.
64+
tax_free_amount (Optional[int]): 취소 금액 중 면세 금액.
6565
값을 입력하지 않으면 전액 과세 취소됩니다.
66-
vatAmount (Optional[int]): 취소 금액 중 부가세액.
66+
vat_amount (Optional[int]): 취소 금액 중 부가세액.
6767
값을 입력하지 않으면 자동 계산됩니다.
6868
reason (str): 취소 사유.
6969
requester (Optional[CancelRequester]): 취소 요청자.
7070
고객에 의한 취소일 경우 Customer, 관리자에 의한 취소일 경우 Admin으로 입력합니다.
71-
currentCancellableAmount (Optional[int]): 결제 건의 취소 가능 잔액.
71+
current_cancellable_amount (Optional[int]): 결제 건의 취소 가능 잔액.
7272
본 취소 요청 이전의 취소 가능 잔액으로써, 값을 입력하면 잔액이 일치하는 경우에만 취소가 진행됩니다. 값을 입력하지 않으면 별도의 검증 처리를 수행하지 않습니다.
73-
refundAccount (Optional[CancelPaymentBodyRefundAccount]): 환불 계좌.
73+
refund_account (Optional[CancelPaymentBodyRefundAccount]): 환불 계좌.
7474
계좌 환불일 경우 입력합니다. 계좌 환불이 필요한 경우는 가상계좌 환불, 휴대폰 익월 환불 등이 있습니다.
7575
7676
Returns:
@@ -92,18 +92,18 @@ async def cancel_payment(
9292
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
9393
"""
9494
param_ = CancelPaymentParam(
95-
paymentId=paymentId,
95+
payment_id=payment_id,
9696
)
9797
query_ = CancelPaymentQuery()
9898
body_ = CancelPaymentBody(
99-
storeId=storeId,
99+
store_id=store_id,
100100
amount=amount,
101-
taxFreeAmount=taxFreeAmount,
102-
vatAmount=vatAmount,
101+
tax_free_amount=tax_free_amount,
102+
vat_amount=vat_amount,
103103
reason=reason,
104104
requester=requester,
105-
currentCancellableAmount=currentCancellableAmount,
106-
refundAccount=refundAccount,
105+
current_cancellable_amount=current_cancellable_amount,
106+
refund_account=refund_account,
107107
)
108108
response_ = await self.send(
109109
CancelPaymentRequest(param_, query_, body_),

openapi/generated/_async_api/_close_virtual_account.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
@dataclasses.dataclass
1717
class CloseVirtualAccountParam:
18-
paymentId: str
18+
payment_id: str = dataclasses.field(metadata={"serde_rename": "paymentId"})
1919
"""결제 건 아이디"""
2020

2121
@dataclasses.dataclass
2222
class CloseVirtualAccountQuery:
23-
storeId: Optional[str]
23+
store_id: Optional[str] = dataclasses.field(metadata={"serde_rename": "storeId"})
2424
"""상점 아이디
2525
2626
@@ -36,16 +36,16 @@ class CloseVirtualAccountRequest(ApiRequest[CloseVirtualAccountResponse, CloseVi
3636
class CloseVirtualAccount(ApiClient):
3737
async def close_virtual_account(
3838
self,
39-
paymentId: str,
40-
storeId: Optional[str],
39+
payment_id: str,
40+
store_id: Optional[str],
4141
) -> CloseVirtualAccountResponse:
4242
"""가상계좌 말소
4343
4444
발급된 가상계좌를 말소합니다.
4545
4646
Args:
47-
paymentId (str): 결제 건 아이디.
48-
storeId (Optional[str]): 상점 아이디.
47+
payment_id (str): 결제 건 아이디.
48+
store_id (Optional[str]): 상점 아이디.
4949
접근 권한이 있는 상점 아이디만 입력 가능하며, 미입력시 토큰에 담긴 상점 아이디를 사용합니다.
5050
5151
Returns:
@@ -60,10 +60,10 @@ async def close_virtual_account(
6060
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
6161
"""
6262
param_ = CloseVirtualAccountParam(
63-
paymentId=paymentId,
63+
payment_id=payment_id,
6464
)
6565
query_ = CloseVirtualAccountQuery(
66-
storeId=storeId,
66+
store_id=store_id,
6767
)
6868
body_ = Empty()
6969
response_ = await self.send(

openapi/generated/_async_api/_confirm_escrow.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@dataclasses.dataclass
1818
class ConfirmEscrowParam:
19-
paymentId: str
19+
payment_id: str = dataclasses.field(metadata={"serde_rename": "paymentId"})
2020
"""결제 건 아이디"""
2121

2222
@dataclasses.dataclass
@@ -32,19 +32,19 @@ class ConfirmEscrowRequest(ApiRequest[ConfirmEscrowResponse, ConfirmEscrowError,
3232
class ConfirmEscrow(ApiClient):
3333
async def confirm_escrow(
3434
self,
35-
paymentId: str,
36-
storeId: Optional[str],
37-
fromStore: Optional[bool],
35+
payment_id: str,
36+
store_id: Optional[str],
37+
from_store: Optional[bool],
3838
) -> ConfirmEscrowResponse:
3939
"""에스크로 구매 확정
4040
4141
에스크로 결제를 구매 확정 처리합니다
4242
4343
Args:
44-
paymentId (str): 결제 건 아이디.
45-
storeId (Optional[str]): 상점 아이디.
44+
payment_id (str): 결제 건 아이디.
45+
store_id (Optional[str]): 상점 아이디.
4646
접근 권한이 있는 상점 아이디만 입력 가능하며, 미입력시 토큰에 담긴 상점 아이디를 사용합니다.
47-
fromStore (Optional[bool]): 확인 주체가 상점인지 여부.
47+
from_store (Optional[bool]): 확인 주체가 상점인지 여부.
4848
구매확정요청 주체가 고객사 관리자인지 구매자인지 구분하기 위한 필드입니다.
4949
네이버페이 전용 파라미터이며, 구분이 모호한 경우 고객사 관리자(true)로 입력합니다.
5050
@@ -60,12 +60,12 @@ async def confirm_escrow(
6060
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
6161
"""
6262
param_ = ConfirmEscrowParam(
63-
paymentId=paymentId,
63+
payment_id=payment_id,
6464
)
6565
query_ = ConfirmEscrowQuery()
6666
body_ = ConfirmEscrowBody(
67-
storeId=storeId,
68-
fromStore=fromStore,
67+
store_id=store_id,
68+
from_store=from_store,
6969
)
7070
response_ = await self.send(
7171
ConfirmEscrowRequest(param_, query_, body_),

openapi/generated/_async_api/_confirm_identity_verification.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@dataclasses.dataclass
1919
class ConfirmIdentityVerificationParam:
20-
identityVerificationId: str
20+
identity_verification_id: str = dataclasses.field(metadata={"serde_rename": "identityVerificationId"})
2121
"""본인인증 아이디"""
2222

2323
@dataclasses.dataclass
@@ -33,17 +33,17 @@ class ConfirmIdentityVerificationRequest(ApiRequest[ConfirmIdentityVerificationR
3333
class ConfirmIdentityVerification(ApiClient):
3434
async def confirm_identity_verification(
3535
self,
36-
identityVerificationId: str,
37-
storeId: Optional[str],
36+
identity_verification_id: str,
37+
store_id: Optional[str],
3838
otp: Optional[str],
3939
) -> ConfirmIdentityVerificationResponse:
4040
"""본인인증 확인
4141
4242
요청된 본인인증에 대한 확인을 진행합니다.
4343
4444
Args:
45-
identityVerificationId (str): 본인인증 아이디.
46-
storeId (Optional[str]): 상점 아이디.
45+
identity_verification_id (str): 본인인증 아이디.
46+
store_id (Optional[str]): 상점 아이디.
4747
접근 권한이 있는 상점 아이디만 입력 가능하며, 미입력시 토큰에 담긴 상점 아이디를 사용합니다.
4848
otp (Optional[str]): OTP (One-Time Password).
4949
SMS 방식에서만 사용됩니다.
@@ -61,11 +61,11 @@ async def confirm_identity_verification(
6161
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
6262
"""
6363
param_ = ConfirmIdentityVerificationParam(
64-
identityVerificationId=identityVerificationId,
64+
identity_verification_id=identity_verification_id,
6565
)
6666
query_ = ConfirmIdentityVerificationQuery()
6767
body_ = ConfirmIdentityVerificationBody(
68-
storeId=storeId,
68+
store_id=store_id,
6969
otp=otp,
7070
)
7171
response_ = await self.send(

openapi/generated/_async_api/_create_payment_schedule.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@dataclasses.dataclass
2020
class CreatePaymentScheduleParam:
21-
paymentId: str
21+
payment_id: str = dataclasses.field(metadata={"serde_rename": "paymentId"})
2222
"""결제 건 아이디"""
2323

2424
@dataclasses.dataclass
@@ -34,18 +34,18 @@ class CreatePaymentScheduleRequest(ApiRequest[CreatePaymentScheduleResponse, Cre
3434
class CreatePaymentSchedule(ApiClient):
3535
async def create_payment_schedule(
3636
self,
37-
paymentId: str,
37+
payment_id: str,
3838
payment: BillingKeyPaymentInput,
39-
timeToPay: str,
39+
time_to_pay: str,
4040
) -> CreatePaymentScheduleResponse:
4141
"""결제 예약
4242
4343
결제를 예약합니다.
4444
4545
Args:
46-
paymentId (str): 결제 건 아이디.
46+
payment_id (str): 결제 건 아이디.
4747
payment (BillingKeyPaymentInput): 빌링키 결제 입력 정보.
48-
timeToPay (str): 결제 예정 시점.
48+
time_to_pay (str): 결제 예정 시점.
4949
5050
Returns:
5151
CreatePaymentScheduleResponse: 성공 응답
@@ -61,12 +61,12 @@ async def create_payment_schedule(
6161
_errors.UnauthorizedError: 인증 정보가 올바르지 않은 경우
6262
"""
6363
param_ = CreatePaymentScheduleParam(
64-
paymentId=paymentId,
64+
payment_id=payment_id,
6565
)
6666
query_ = CreatePaymentScheduleQuery()
6767
body_ = CreatePaymentScheduleBody(
6868
payment=payment,
69-
timeToPay=timeToPay,
69+
time_to_pay=time_to_pay,
7070
)
7171
response_ = await self.send(
7272
CreatePaymentScheduleRequest(param_, query_, body_),

0 commit comments

Comments
 (0)