iamport 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +83 -5
  2. package/index.d.ts +848 -0
  3. package/lib/iamport.js +18 -1
  4. package/lib/iamportMethod.js +28 -2
  5. package/lib/resources/Benepia.js +47 -0
  6. package/lib/resources/Certifications.js +26 -0
  7. package/lib/resources/Codes.js +78 -0
  8. package/lib/resources/Cvs.js +46 -0
  9. package/lib/resources/Escrows.js +59 -0
  10. package/lib/resources/KcpQuick.js +47 -0
  11. package/lib/resources/Naver.js +276 -0
  12. package/lib/resources/Partners.js +33 -0
  13. package/lib/resources/Payco.js +33 -0
  14. package/lib/resources/Payments.js +59 -0
  15. package/lib/resources/Paymentwall.js +33 -0
  16. package/lib/resources/Receipts.js +99 -0
  17. package/lib/resources/Subscribe.js +85 -1
  18. package/lib/resources/Subscribe_customer.js +42 -0
  19. package/lib/resources/Tiers.js +32 -0
  20. package/lib/resources/Users.js +32 -0
  21. package/lib/resources/Vbank.js +40 -1
  22. package/openapi.json +11658 -0
  23. package/package.json +1 -1
  24. package/test/resources/Benepia.spec.js +49 -0
  25. package/test/resources/Certification.spec.js +53 -0
  26. package/test/resources/Codes.spec.js +45 -0
  27. package/test/resources/Cvs.spec.js +45 -0
  28. package/test/resources/Escrows.spec.js +71 -0
  29. package/test/resources/KcpQuick.spec.js +45 -0
  30. package/test/resources/Naver.spec.js +305 -0
  31. package/test/resources/Partners.spec.js +31 -0
  32. package/test/resources/Payco.spec.js +31 -0
  33. package/test/resources/Payment.spec.js +60 -0
  34. package/test/resources/Paymentwall.spec.js +31 -0
  35. package/test/resources/Receipts.spec.js +113 -0
  36. package/test/resources/Subscribe.spec.js +163 -0
  37. package/test/resources/Tiers.spec.js +19 -0
  38. package/test/resources/Users.spec.js +11 -0
  39. package/test/resources/Vbank.spec.js +61 -0
  40. package/.npmignore +0 -10
package/index.d.ts ADDED
@@ -0,0 +1,848 @@
1
+ /* tslint:disable */
2
+ interface IamportResponse<T = any> {
3
+ code: number
4
+ message: string
5
+ response?: T
6
+ }
7
+
8
+ type iamportStatus = 'ready' | 'paid' | 'failed' | 'cancelled';
9
+ type vbankCode =
10
+ '004' | // KB국민은행
11
+ '023' | // SC제일은행
12
+ '039' | // 경남은행
13
+ '034' | // 광주은행
14
+ '003' | // 기업은행
15
+ '011' | // 농협
16
+ '031' | // 대구은행
17
+ '032' | // 부산은행
18
+ '002' | // 산업은행
19
+ '007' | // 수협
20
+ '088' | // 신한은행
21
+ '048' | // 신협
22
+ '005' | // 외환은행
23
+ '020' | // 우리은행
24
+ '071' | // 우체국
25
+ '037' | // 전북은행
26
+ '035' | // 제주은행
27
+ '012' | // 축협
28
+ '081' | // 하나은행(서울은행)
29
+ '027' | // 한국씨티은행(한미은행)
30
+ '089' | // K뱅크
31
+ '090' | // 카카오뱅크
32
+ '209' | // 유안타증권
33
+ '218' | // 현대증권
34
+ '230' | // 미래에셋증권
35
+ '238' | // 대우증권
36
+ '240' | // 삼성증권
37
+ '243' | // 한국투자증권
38
+ '247' | // 우리투자증권
39
+ '261' | // 교보증권
40
+ '262' | // 하이투자증권
41
+ '263' | // 에이치엠씨투자증권
42
+ '264' | // 키움증권
43
+ '265' | // 이트레이드증권
44
+ '266' | // 에스케이증권
45
+ '267' | // 대신증권
46
+ '268' | // 솔로몬투자증권
47
+ '269' | // 한화증권
48
+ '270' | // 하나대투증권
49
+ '278' | // 굿모닝신한증권
50
+ '279' | // 동부증권
51
+ '280' | // 유진투자증권
52
+ '287' | // 메리츠증권
53
+ '289' | // 엔에이치투자증권
54
+ '290'; // 부국증권
55
+
56
+ interface IamportPayment {
57
+ imp_uid: string
58
+ merchant_uid: string
59
+ pay_method?: string
60
+ channel?: 'pc' | 'mobile' | 'api'
61
+ pg_provider?: string
62
+ pg_tid?: string
63
+ pg_id?: string
64
+ escrow?: boolean
65
+ apply_num?: string
66
+ bank_code?: string
67
+ bank_name?: string
68
+ card_code?: string
69
+ card_name?: string
70
+ card_quota?: number
71
+ card_number?: string
72
+ card_type?: number | null
73
+ vbank_code?: string
74
+ vbank_name?: string
75
+ vbank_num?: string
76
+ vbank_holder?: string
77
+ vbank_date?: number
78
+ vbank_issued_at?: number
79
+ name?: string
80
+ amount?: number
81
+ cancel_amount?: number
82
+ currency?: string
83
+ buyer_name?: string
84
+ buyer_email?: string
85
+ buyer_tel?: string
86
+ buyer_addr?: string
87
+ buyer_postcode?: string
88
+ custom_data?: string
89
+ user_agent?: string
90
+ status?: iamportStatus
91
+ started_at?: number
92
+ paid_at?: number
93
+ failed_at?: number
94
+ cancelled_at?: number
95
+ fail_reason?: string
96
+ cancel_reason?: string
97
+ receipt_url?: string
98
+ cancel_history?: Array<{
99
+ pg_tid: string
100
+ amount: 0
101
+ cancelled_at: 0
102
+ reason: string
103
+ receipt_url?: string
104
+ }>
105
+ cancel_receipt_urls?: string[]
106
+ cash_receipt_issued?: boolean
107
+ }
108
+
109
+ interface IamportScheduleResult {
110
+ customer_uid?: string
111
+ merchant_uid?: string
112
+ imp_uid?: string
113
+ schedule_at?: number
114
+ executed_at?: number
115
+ revoked_at?: number
116
+ amount?: number
117
+ name?: string
118
+ buyer_name?: string
119
+ buyer_email?: string
120
+ buyer_tel?: string
121
+ buyer_addr?: string
122
+ buyer_postcode?: string
123
+ custom_data?: string
124
+ schedule_status?: 'scheduled' | 'executed' | 'revoked'
125
+ payment_status?: null | 'paid' | 'failed' | 'cancelled'
126
+ fail_reason?: string
127
+ }
128
+
129
+ interface IamportCustomer {
130
+ customer_uid: string
131
+ pg_provider?: string
132
+ pg_id?: string
133
+ card_name?: string
134
+ card_code?: string
135
+ card_number?: string
136
+ card_type?: number
137
+ customer_name?: string
138
+ customer_tel?: string
139
+ customer_email?: string
140
+ customer_addr?: string
141
+ customer_postcode?: string
142
+ inserted: number
143
+ updated: number
144
+ }
145
+
146
+ interface IamportCertification {
147
+ imp_uid: string
148
+ merchant_uid?: string
149
+ pg_tid?: string
150
+ pg_provider?: string
151
+ name?: string
152
+ gender?: string
153
+ birth?: number
154
+ birthday?: string
155
+ foreigner?: boolean
156
+ certified?: boolean
157
+ certified_at?: number
158
+ unique_key?: string
159
+ unique_in_site?: string
160
+ origin?: string
161
+ }
162
+
163
+ interface EscrowsLogisSenderAndReceiver {
164
+ name: string,
165
+ tel: string,
166
+ addr: string,
167
+ postcode: string,
168
+ }
169
+
170
+ interface EscrowLogis {
171
+ company: string,
172
+ invoice: string,
173
+ sent_at: number,
174
+ }
175
+
176
+ interface IamportPaymentBalance {
177
+ amount?: number
178
+ cash_receipt?: object
179
+ }
180
+
181
+ interface IamportPrepare {
182
+ merchant_uid?: string
183
+ amount?: number
184
+ }
185
+
186
+ interface IamportBankCode {
187
+ code?: string
188
+ name?: string
189
+ }
190
+
191
+ interface IamportCardCode {
192
+ code?: string
193
+ name?: string
194
+ }
195
+
196
+ interface IamportReceipt {
197
+ imp_uid?: string
198
+ merchant_uid?: string
199
+ apply_num?: string
200
+ type?: string
201
+ amount?: number
202
+ vat?: number
203
+ receipt_url?: string
204
+ company_name?: string
205
+ company_tel?: string
206
+ registered_at?: number
207
+ state?: string
208
+ cancelled_at?: number
209
+ }
210
+
211
+ interface IamportNaverProductOrder {
212
+ product_order_id?: string
213
+ product_order_status?: string
214
+ claim_type?: string
215
+ claim_status?: string
216
+ product_id?: string
217
+ product_name?: string
218
+ product_option_id?: string
219
+ product_option_name?: string
220
+ product_amount?: number
221
+ delivery_amount?: number
222
+ quantity?: number
223
+ }
224
+
225
+ class Payments {
226
+ getByImpUid(params:{imp_uid: string}): Promise<IamportResponse<IamportPayment>>
227
+
228
+ getByMerchant(params:{
229
+ merchant_uid: string
230
+ payment_status?: iamportStatus
231
+ sorting?: '-started' | 'started' | '-paid' | 'paid' | '-updated' | 'updated'
232
+ }): Promise<IamportResponse<IamportPayment>>
233
+
234
+ getByStatus(params:{
235
+ payment_status: 'all' | iamportStatus
236
+ page?: number
237
+ limit?: number
238
+ from?: number
239
+ to?: number
240
+ sorting?: '-started' | 'started' | '-paid' | 'paid' | '-updated' | 'updated'
241
+ }): Promise<IamportResponse<{
242
+ total: number
243
+ previous: number
244
+ next: number
245
+ list: IamportPayment[]
246
+ }>>
247
+
248
+ cancel(params:{
249
+ imp_uid?: string
250
+ merchant_uid?: string
251
+ amount?: number
252
+ tax_free?: number
253
+ vat_amount?: number
254
+ checksum?: number
255
+ reason?: string
256
+ refund_holder?: string
257
+ refund_bank?: string
258
+ refund_account?: string
259
+ refund_tel?: string
260
+ }): Promise<IamportResponse<IamportPayment>>
261
+
262
+ prepare(params:{
263
+ merchant_uid: string
264
+ amount: number
265
+ currency?: string
266
+ }): Promise<IamportResponse<IamportPrepare>>
267
+
268
+ getPrepare(params:{
269
+ merchant_uid: string
270
+ }): Promise<IamportResponse<IamportPrepare>>
271
+
272
+ getBalance(params:{
273
+ imp_uid: string
274
+ }): Promise<IamportResponse<IamportPaymentBalance>>
275
+
276
+ getByImpUids(params?:{
277
+ 'imp_uid[]'?: string[]
278
+ 'merchant_uid[]'?: string[]
279
+ }): Promise<IamportResponse<IamportPayment[]>>
280
+
281
+ getAllByMerchant(params:{
282
+ merchant_uid: string
283
+ payment_status?: iamportStatus
284
+ page?: number
285
+ limit?: number
286
+ sorting?: '-started' | 'started' | '-paid' | 'paid' | '-updated' | 'updated'
287
+ }): Promise<IamportResponse<{
288
+ total: number
289
+ previous: number
290
+ next: number
291
+ list: IamportPayment[]
292
+ }>>
293
+
294
+ updatePrepare(params:{
295
+ merchant_uid: string
296
+ amount: number
297
+ currency?: string
298
+ }): Promise<IamportResponse<IamportPrepare>>
299
+ }
300
+
301
+ class Subscribe {
302
+ onetime(params:{
303
+ merchant_uid: string
304
+ amount: number
305
+ tax_free?: number
306
+ vat_amount?: number
307
+ card_number: string
308
+ expiry: string
309
+ birth?: string
310
+ pwd_2digit?: string
311
+ cvc?: string
312
+ customer_uid?: string
313
+ pg?: string
314
+ name?: string
315
+ buyer_name?: string
316
+ buyer_email?: string
317
+ buyer_tel?: string
318
+ buyer_addr?: string
319
+ buyer_postcode?: string
320
+ card_quota?: number
321
+ interest_free_by_merchant?: boolean
322
+ use_card_point?: boolean
323
+ custom_data?: string
324
+ notice_url?: string
325
+ browser_ip?: string
326
+ product_type?: string
327
+ promotion_id?: string
328
+ }): Promise<IamportResponse<IamportPayment>>
329
+
330
+ again(params:{
331
+ customer_uid: string
332
+ merchant_uid: string
333
+ amount: number
334
+ tax_free?: number
335
+ vat_amount?: number
336
+ name: string
337
+ buyer_name?: string
338
+ buyer_email?: string
339
+ buyer_tel?: string
340
+ buyer_addr?: string
341
+ buyer_postcode?: string
342
+ card_quota?: number
343
+ interest_free_by_merchant?: boolean
344
+ use_card_point?: boolean
345
+ custom_data?: string
346
+ notice_url?: string
347
+ browser_ip?: string
348
+ product_type?: string
349
+ product_count?: number
350
+ promotion_id?: string
351
+ }): Promise<IamportResponse<IamportPayment>>
352
+
353
+ schedule(params:{
354
+ customer_uid: string
355
+ checking_amount?: number
356
+ card_number?: string
357
+ expiry?: string
358
+ birth?: string
359
+ pwd_2digit?: string
360
+ cvc?: string
361
+ pg?: string
362
+ schedules: Array<{
363
+ merchant_uid: string
364
+ schedule_at: number
365
+ amount: number
366
+ tax_free?: number
367
+ name?: string
368
+ buyer_name?: string
369
+ buyer_email?: string
370
+ buyer_tel?: string
371
+ buyer_addr?: string
372
+ buyer_postcode?: string
373
+ custom_data?: string
374
+ notice_url?: string
375
+ }>
376
+ }): Promise<IamportResponse<IamportScheduleResult[]>>
377
+
378
+ unschedule(params:{
379
+ customer_uid: string
380
+ merchant_uid?: string | string[]
381
+ }): Promise<IamportResponse<IamportScheduleResult[]>>
382
+
383
+ getSchedules(params:{
384
+ schedule_from: number
385
+ schedule_to: number
386
+ schedule_status?: 'scheduled' | 'executed' | 'revoked'
387
+ page?: number
388
+ limit?: number
389
+ sorting?: '-started' | 'started' | '-paid' | 'paid' | '-updated' | 'updated'
390
+ }): Promise<IamportResponse<{
391
+ total: number
392
+ previous: number
393
+ next: number
394
+ list: IamportScheduleResult[]
395
+ }>>
396
+
397
+ getScheduleByMerchantUid(params:{
398
+ merchant_uid: string
399
+ }): Promise<IamportResponse<IamportScheduleResult>>
400
+
401
+ updateSchedule(params:{
402
+ merchant_uid: string
403
+ schedule_at: number
404
+ }): Promise<IamportResponse<IamportScheduleResult>>
405
+
406
+ retrySchedule(params:{
407
+ merchant_uid: string
408
+ }): Promise<IamportResponse<IamportScheduleResult>>
409
+
410
+ rescheduleSchedule(params:{
411
+ merchant_uid: string
412
+ schedule_at: number
413
+ }): Promise<IamportResponse<IamportScheduleResult>>
414
+
415
+ getSchedulesByCustomerUid(params:{
416
+ customer_uid: string
417
+ from: number
418
+ to: number
419
+ page?: number
420
+ 'schedule-status'?: 'scheduled' | 'executed' | 'revoked'
421
+ }): Promise<IamportResponse<IamportScheduleResult[]>>
422
+ }
423
+
424
+ class SubscribeCustomer {
425
+ get(params:{
426
+ customer_uid: string
427
+ }): Promise<IamportResponse<IamportCustomer>>
428
+
429
+ create(params:{
430
+ customer_uid: string
431
+ pg?: string
432
+ card_number: string
433
+ expiry: string
434
+ birth?: string
435
+ pwd_2digit?: string
436
+ cvc?: string
437
+ customer_name?: string
438
+ customer_tel?: string
439
+ customer_email?: string
440
+ customer_addr?: string
441
+ customer_postcode?: string
442
+ }): Promise<IamportResponse<IamportCustomer>>
443
+
444
+ delete(params:{
445
+ customer_uid: string
446
+ reason?: string
447
+ }): Promise<IamportResponse<IamportCustomer>>
448
+
449
+ getPayments(params:{
450
+ customer_uid: string
451
+ page?: number
452
+ }): Promise<IamportResponse<IamportPayment[]>>
453
+
454
+ getMultiple(params?:{
455
+ 'customer_uid[]'?: string[]
456
+ }): Promise<IamportResponse<IamportCustomer[]>>
457
+
458
+ getSchedules(params:{
459
+ customer_uid: string
460
+ from: number
461
+ to: number
462
+ page?: number
463
+ 'schedule-status'?: 'scheduled' | 'executed' | 'revoked'
464
+ }): Promise<IamportResponse<IamportScheduleResult[]>>
465
+ }
466
+
467
+ class Certifications {
468
+ get(params:{imp_uid: string}): Promise<IamportResponse<IamportCertification>>
469
+
470
+ delete(params:{imp_uid: string}): Promise<IamportResponse<IamportCertification>>
471
+
472
+ otpRequest(params?:object): Promise<IamportResponse<any>>
473
+
474
+ otpConfirm(params:{imp_uid: string}): Promise<IamportResponse<any>>
475
+ }
476
+
477
+ class Vbank {
478
+ create(params:{
479
+ merchant_uid: string
480
+ amount: number
481
+ vbank_code: string
482
+ vbank_due: number
483
+ vbank_holder?: string
484
+ channel_key?: string
485
+ name?: string
486
+ buyer_name?: string
487
+ buyer_email?: string
488
+ buyer_tel?: string
489
+ buyer_addr?: string
490
+ buyer_postcode?: string
491
+ pg?: string
492
+ notice_url?: string | string[]
493
+ custom_data?: string
494
+ tax_free?: number
495
+ vat_amount?: number
496
+ }): Promise<IamportResponse<IamportPayment>>
497
+
498
+ getHolder(params: {
499
+ bank_code: vbankCode,
500
+ bank_num: string,
501
+ }): Promise<IamportResponse<any>>
502
+
503
+ update(params:{
504
+ imp_uid: string
505
+ amount?: number
506
+ vbank_due?: number
507
+ }): Promise<IamportResponse<IamportPayment>>
508
+
509
+ delete(params:{
510
+ imp_uid: string
511
+ pg_api_key?: string
512
+ }): Promise<IamportResponse<IamportPayment>>
513
+ }
514
+
515
+ class Escrows {
516
+ create(params:{
517
+ imp_uid: string
518
+ sender: EscrowsLogisSenderAndReceiver
519
+ receiver: EscrowsLogisSenderAndReceiver
520
+ logis: EscrowLogis
521
+ }): Promise<IamportResponse<any>>
522
+
523
+ get(params:{
524
+ imp_uid: string
525
+ }): Promise<IamportResponse<any>>
526
+
527
+ update(params:{
528
+ imp_uid: string
529
+ sender: EscrowsLogisSenderAndReceiver
530
+ receiver: EscrowsLogisSenderAndReceiver
531
+ logis: EscrowLogis
532
+ }): Promise<IamportResponse<any>>
533
+ }
534
+
535
+ class Benepia {
536
+ getPoint(params:{
537
+ benepia_user: string
538
+ benepia_password: string
539
+ channel_key: string
540
+ }): Promise<IamportResponse<any>>
541
+
542
+ payment(params:{
543
+ benepia_user: string
544
+ benepia_password: string
545
+ merchant_uid: string
546
+ amount: number
547
+ name: string
548
+ channel_key: string
549
+ benepia_member_code?: string
550
+ buyer_name?: string
551
+ buyer_email?: string
552
+ buyer_tel?: string
553
+ buyer_addr?: string
554
+ buyer_postcode?: string
555
+ notice_url?: string
556
+ custom_data?: string
557
+ }): Promise<IamportResponse<IamportPayment>>
558
+ }
559
+
560
+ class Bank {
561
+ getAll(): Promise<IamportResponse<IamportBankCode[]>>
562
+
563
+ getByCode(params:{
564
+ bank_standard_code: string
565
+ }): Promise<IamportResponse<IamportBankCode>>
566
+ }
567
+
568
+ class Card {
569
+ getAll(): Promise<IamportResponse<IamportCardCode[]>>
570
+
571
+ getByCode(params:{
572
+ card_standard_code: string
573
+ }): Promise<IamportResponse<IamportCardCode>>
574
+ }
575
+
576
+ class Cvs {
577
+ create(params:{
578
+ channel_key: string
579
+ merchant_uid: string
580
+ amount: number
581
+ barcode?: string
582
+ expired_at?: number
583
+ name?: string
584
+ buyer_name?: string
585
+ buyer_email?: string
586
+ buyer_tel?: string
587
+ buyer_addr?: string
588
+ buyer_postcode?: string
589
+ confirm_url?: string
590
+ notice_url?: string
591
+ custom_data?: string
592
+ }): Promise<IamportResponse<IamportPayment>>
593
+
594
+ delete(params:{
595
+ imp_uid: string
596
+ }): Promise<IamportResponse<IamportPayment>>
597
+ }
598
+
599
+ class KcpQuick {
600
+ deleteMember(params:{
601
+ member_id: string
602
+ site_code: string
603
+ partner_type: string
604
+ partner_subtype: string
605
+ }): Promise<IamportResponse<any>>
606
+
607
+ payMoney(params:{
608
+ member_id: string
609
+ channel_key: string
610
+ merchant_uid: string
611
+ name: string
612
+ amount: number
613
+ notice_url?: string
614
+ }): Promise<IamportResponse<IamportPayment>>
615
+ }
616
+
617
+ class Naver {
618
+ getProductOrder(params:{
619
+ product_order_id: string
620
+ }): Promise<IamportResponse<IamportNaverProductOrder>>
621
+
622
+ getReviews(params:{
623
+ channel_key: string
624
+ from: number
625
+ to: number
626
+ review_type: string
627
+ }): Promise<IamportResponse<any>>
628
+ }
629
+
630
+ class NaverPayment {
631
+ getProductOrders(params:{
632
+ imp_uid: string
633
+ }): Promise<IamportResponse<IamportNaverProductOrder[]>>
634
+
635
+ getCashAmount(params:{
636
+ imp_uid: string
637
+ }): Promise<IamportResponse<any>>
638
+
639
+ place(params:{
640
+ imp_uid: string
641
+ product_order_id?: string | string[]
642
+ }): Promise<IamportResponse<any>>
643
+
644
+ ship(params:{
645
+ imp_uid: string
646
+ delivery_method: string
647
+ dispatched_at: number
648
+ product_order_id?: string | string[]
649
+ delivery_company?: string
650
+ tracking_number?: string
651
+ }): Promise<IamportResponse<any>>
652
+
653
+ confirm(params:{
654
+ imp_uid: string
655
+ requester?: string
656
+ }): Promise<IamportResponse<any>>
657
+
658
+ approveCancel(params:{
659
+ imp_uid: string
660
+ product_order_id?: string | string[]
661
+ }): Promise<IamportResponse<any>>
662
+
663
+ approveReturn(params:{
664
+ imp_uid: string
665
+ product_order_id?: string | string[]
666
+ memo?: string
667
+ }): Promise<IamportResponse<any>>
668
+
669
+ cancel(params:{
670
+ imp_uid: string
671
+ product_order_id?: string | string[]
672
+ reason?: string
673
+ }): Promise<IamportResponse<any>>
674
+
675
+ requestReturn(params:{
676
+ imp_uid: string
677
+ delivery_method: string
678
+ product_order_id?: string | string[]
679
+ reason?: string
680
+ delivery_company?: string
681
+ tracking_number?: string
682
+ }): Promise<IamportResponse<any>>
683
+
684
+ rejectReturn(params:{
685
+ imp_uid: string
686
+ memo: string
687
+ product_order_id?: string | string[]
688
+ }): Promise<IamportResponse<any>>
689
+
690
+ resolveReturn(params:{
691
+ imp_uid: string
692
+ product_order_id?: string | string[]
693
+ }): Promise<IamportResponse<any>>
694
+
695
+ withholdReturn(params:{
696
+ imp_uid: string
697
+ memo: string
698
+ product_order_id?: string | string[]
699
+ reason?: string
700
+ extra_charge?: number
701
+ }): Promise<IamportResponse<any>>
702
+
703
+ collectExchanged(params:{
704
+ imp_uid: string
705
+ product_order_id?: string | string[]
706
+ }): Promise<IamportResponse<any>>
707
+
708
+ shipExchanged(params:{
709
+ imp_uid: string
710
+ delivery_method: string
711
+ product_order_id?: string | string[]
712
+ delivery_company?: string
713
+ tracking_number?: string
714
+ }): Promise<IamportResponse<any>>
715
+
716
+ point(params:{
717
+ imp_uid: string
718
+ }): Promise<IamportResponse<any>>
719
+ }
720
+
721
+ class Partner {
722
+ issueReceipt(params:{
723
+ imp_uid: string
724
+ data: object
725
+ }): Promise<IamportResponse<any>>
726
+ }
727
+
728
+ class Payco {
729
+ updateOrderStatus(params:{
730
+ imp_uid: string
731
+ status: string
732
+ }): Promise<IamportResponse<any>>
733
+ }
734
+
735
+ class Receipt {
736
+ get(params:{
737
+ imp_uid: string
738
+ }): Promise<IamportResponse<IamportReceipt>>
739
+
740
+ create(params:{
741
+ imp_uid: string
742
+ identifier: string
743
+ identifier_type?: string
744
+ type?: string
745
+ buyer_name?: string
746
+ buyer_email?: string
747
+ buyer_tel?: string
748
+ tax_free?: number
749
+ vat_amount?: number
750
+ product_type?: string
751
+ company_tel?: string
752
+ company_name?: string
753
+ corp_reg_no?: string
754
+ }): Promise<IamportResponse<IamportReceipt>>
755
+
756
+ delete(params:{
757
+ imp_uid: string
758
+ }): Promise<IamportResponse<IamportReceipt>>
759
+
760
+ getExternal(params:{
761
+ merchant_uid: string
762
+ }): Promise<IamportResponse<IamportReceipt>>
763
+
764
+ createExternal(params:{
765
+ merchant_uid: string
766
+ channel_key: string
767
+ name: string
768
+ amount: number
769
+ identifier: string
770
+ identifier_type?: string
771
+ type?: string
772
+ buyer_name?: string
773
+ buyer_email?: string
774
+ buyer_tel?: string
775
+ tax_free?: number
776
+ vat_amount?: number
777
+ product_type?: string
778
+ corp_reg_no?: string
779
+ pay_method?: string
780
+ }): Promise<IamportResponse<IamportReceipt>>
781
+
782
+ deleteExternal(params:{
783
+ merchant_uid: string
784
+ }): Promise<IamportResponse<IamportReceipt>>
785
+ }
786
+
787
+ class Tier {
788
+ get(params:{
789
+ tier_code: string
790
+ }): Promise<IamportResponse<any>>
791
+ }
792
+
793
+ class User {
794
+ getPg(): Promise<IamportResponse<any>>
795
+ }
796
+
797
+ class Paymentwall {
798
+ sendDelivery(params:{
799
+ imp_uid: string
800
+ merchant_uid: string
801
+ type: string
802
+ status: string
803
+ estimated_delivery_datetime: string
804
+ estimated_update_datetime: string
805
+ refundable: boolean
806
+ shipping_address_email: string
807
+ carrier_tracking_id?: string
808
+ carrier_type?: string
809
+ reason?: string
810
+ details?: string
811
+ shipping_address_country?: string
812
+ shipping_address_city?: string
813
+ shipping_address_zip?: string
814
+ shipping_address_state?: string
815
+ shipping_address_street?: string
816
+ shipping_address_phone?: string
817
+ shipping_address_firstname?: string
818
+ shipping_address_lastname?: string
819
+ }): Promise<IamportResponse<any>>
820
+ }
821
+
822
+ class Iamport {
823
+ readonly payment: Payments;
824
+ readonly subscribe: Subscribe;
825
+ readonly subscribe_customer: SubscribeCustomer;
826
+ readonly certification: Certifications;
827
+ readonly vbank: Vbank;
828
+ readonly escrows: Escrows;
829
+ readonly benepia: Benepia;
830
+ readonly bank: Bank;
831
+ readonly card: Card;
832
+ readonly cvs: Cvs;
833
+ readonly kcpQuick: KcpQuick;
834
+ readonly naver: Naver;
835
+ readonly naverPayment: NaverPayment;
836
+ readonly partner: Partner;
837
+ readonly payco: Payco;
838
+ readonly receipt: Receipt;
839
+ readonly tier: Tier;
840
+ readonly user: User;
841
+ readonly paymentwall: Paymentwall;
842
+ constructor(options?: {
843
+ impKey: string
844
+ impSecret: string
845
+ });
846
+ }
847
+
848
+ export default Iamport;