@portone/browser-sdk 0.0.13 → 0.0.15

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.
@@ -12,4 +12,6 @@ export type Customer = {
12
12
  birthYear?: string;
13
13
  birthMonth?: string;
14
14
  birthDay?: string;
15
+ firstNameKana?: string;
16
+ lastNameKana?: string;
15
17
  };
@@ -14,5 +14,11 @@ export declare const EasyPayProvider: {
14
14
  readonly SKPAY: "EASY_PAY_PROVIDER_SKPAY";
15
15
  readonly TOSS_BRANDPAY: "EASY_PAY_PROVIDER_TOSS_BRANDPAY";
16
16
  readonly HYPHEN: "EASY_PAY_PROVIDER_HYPHEN";
17
+ readonly PAYPAY: "EASY_PAY_PROVIDER_PAYPAY";
18
+ readonly AMAZONPAY: "EASY_PAY_PROVIDER_AMAZONPAY";
19
+ readonly RAKUTENPAY: "EASY_PAY_PROVIDER_RAKUTENPAY";
20
+ readonly DBARAI: "EASY_PAY_PROVIDER_DBARAI";
21
+ readonly AUPAY: "EASY_PAY_PROVIDER_AUPAY";
22
+ readonly MERPAY: "EASY_PAY_PROVIDER_MERPAY";
17
23
  };
18
24
  export type EasyPayProvider = typeof EasyPayProvider[keyof typeof EasyPayProvider];
@@ -1 +1 @@
1
- export type PayMethod = 'CARD' | 'VIRTUAL_ACCOUNT' | 'TRANSFER' | 'MOBILE' | 'GIFT_CERTIFICATE' | 'EASY_PAY' | 'PAYPAL' | 'ALIPAY';
1
+ export type PayMethod = 'CARD' | 'VIRTUAL_ACCOUNT' | 'TRANSFER' | 'MOBILE' | 'GIFT_CERTIFICATE' | 'EASY_PAY' | 'PAYPAL' | 'ALIPAY' | 'CONVENIENCE_STORE';
@@ -3,12 +3,23 @@
3
3
  *
4
4
  * KSNET 카카오페이의 경우 필수 입력
5
5
  * (신)나이스페이의 경우 매출 전표에 표기 할 용도로 선택 입력
6
+ * 이니시스 일본결제의 경우 JPPG(gmoPayment) 결제의 상점정보로 사용되거나 편의점 결제 시 영수증 표시 정보로 사용됨.
6
7
  */
7
8
  export type StoreDetails = {
8
9
  ceoFullName?: string;
9
10
  phoneNumber?: string;
10
11
  address?: string;
11
12
  zipcode?: string;
13
+ email?: string;
12
14
  businessName?: string;
13
15
  businessRegistrationNumber?: string;
16
+ storeName?: string;
17
+ storeNameShort?: string;
18
+ storeNameEn?: string;
19
+ storeNameKana?: string;
20
+ openingHours?: {
21
+ open?: string;
22
+ close?: string;
23
+ };
24
+ contactName?: string;
14
25
  };
@@ -0,0 +1,25 @@
1
+ export type InicisJpBypass = {
2
+ paymentUI?: {
3
+ /**
4
+ * 결제창 색상
5
+ * Allowed values
6
+ * - "red1"
7
+ * - "red2"
8
+ * - "red3"
9
+ * - "red4"
10
+ * - "orange"
11
+ * - "yellow"
12
+ * - "black"
13
+ * - "purple"
14
+ * - "green"
15
+ * - "blue1"
16
+ * - "blue2":
17
+ * - "blue3"
18
+ * - "blue4"
19
+ * - "blue5"
20
+ * - "blue6"
21
+ */
22
+ colorTheme?: string;
23
+ logoUrl?: string;
24
+ };
25
+ };
@@ -3,5 +3,6 @@
3
3
  * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
4
4
  */
5
5
  export type KsnetPaymentBypass = {
6
+ easyPayDirect?: boolean;
6
7
  sndQpayType?: '1' | '0';
7
8
  };
@@ -0,0 +1,37 @@
1
+ import { Entity } from '../../../index.js';
2
+ /**
3
+ * 정규화가 어려운 페이팔 bypass 파라미터
4
+ * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
5
+ */
6
+ export type PaypalV2PaymentBypass = {
7
+ purchase_units?: {
8
+ shipping?: {
9
+ address?: {
10
+ address_line_1: string;
11
+ address_line_2?: string;
12
+ admin_area_1?: string;
13
+ admin_area_2: string;
14
+ postal_code?: string;
15
+ country_code: Entity.Country;
16
+ };
17
+ };
18
+ }[];
19
+ payer?: {
20
+ tax_info?: {
21
+ tax_id: string;
22
+ tax_id_type: string;
23
+ };
24
+ address?: {
25
+ address_line_1?: string;
26
+ address_line_2?: string;
27
+ admin_area_1?: string;
28
+ admin_area_2?: string;
29
+ postal_code?: string;
30
+ country_code: Entity.Country;
31
+ };
32
+ };
33
+ additional_data?: {
34
+ key: string;
35
+ value: string;
36
+ }[];
37
+ };
@@ -7,14 +7,17 @@ import { KpnBypass } from './Kpn.js';
7
7
  import { KsnetPaymentBypass } from './Ksnet.js';
8
8
  import { NaverpayPaymentBypass } from './Naverpay.js';
9
9
  import { NiceV2PaymentBypass } from './NiceV2.js';
10
+ import { PaypalV2PaymentBypass } from './PaypalV2.js';
10
11
  import { SmartroV2PaymentBypass } from './SmartroV2.js';
11
12
  import { TossBrandpayPaymentBypass } from './TossBrandpay.js';
12
13
  import { TosspaymentsPaymentBypass } from './Tosspayments.js';
13
14
  import { TosspayV2PaymentBypass } from './TosspayV2.js';
14
15
  import { WelcomePaymentBypass } from './Welcome.js';
16
+ import { InicisJpBypass } from './InicisJp.js';
15
17
  export type PaymentBypass = {
16
18
  tosspayments?: TosspaymentsPaymentBypass;
17
19
  ksnet?: KsnetPaymentBypass;
20
+ paypal_v2?: PaypalV2PaymentBypass;
18
21
  kakaopay?: KakaopayPaymentBypass;
19
22
  smartro_v2?: SmartroV2PaymentBypass;
20
23
  naverpay?: NaverpayPaymentBypass;
@@ -27,4 +30,5 @@ export type PaymentBypass = {
27
30
  kcp_v2?: KcpV2Bypass;
28
31
  hyphen?: HyphenBypass;
29
32
  eximbay_v2?: EximbayV2Bypass;
33
+ inicis_jp?: InicisJpBypass;
30
34
  };
@@ -32,7 +32,7 @@ export type PaymentRequest = {
32
32
  shippingAddress?: Entity.Address;
33
33
  promotionId?: string;
34
34
  popup?: Entity.Popup;
35
- } & (PayMethodOptions<'CARD', Card> | PayMethodOptions<'VIRTUAL_ACCOUNT', VirtualAccount> | PayMethodOptions<'TRANSFER', Transfer> | PayMethodOptions<'MOBILE', Mobile> | PayMethodOptions<'GIFT_CERTIFICATE', GiftCertificate> | PayMethodOptions<'EASY_PAY', EasyPay> | PayMethodOptions<'PAYPAL', Paypal> | PayMethodOptions<'ALIPAY', Alipay>);
35
+ } & (PayMethodOptions<'CARD', Card> | PayMethodOptions<'VIRTUAL_ACCOUNT', VirtualAccount> | PayMethodOptions<'TRANSFER', Transfer> | PayMethodOptions<'MOBILE', Mobile> | PayMethodOptions<'GIFT_CERTIFICATE', GiftCertificate> | PayMethodOptions<'EASY_PAY', EasyPay> | PayMethodOptions<'PAYPAL', Paypal> | PayMethodOptions<'ALIPAY', Alipay> | PayMethodOptions<'CONVENIENCE_STORE', ConvenienceStore>);
36
36
  /**
37
37
  * iframe/popup 방식으로 PG사 창이 렌더링 된 경우
38
38
  * 프로세스 종료 후, 콜백 함수로 전달 될 결제 정보 데이터
@@ -99,4 +99,10 @@ type EasyPay = {
99
99
  };
100
100
  type Paypal = Record<string, never>;
101
101
  type Alipay = Record<string, never>;
102
+ type ConvenienceStore = {
103
+ paymentDeadline?: OneOfType<{
104
+ validHours: number;
105
+ dueDate: string;
106
+ }>;
107
+ };
102
108
  export {};
package/dist/v2.cjs CHANGED
@@ -677,6 +677,12 @@ const EasyPayProvider = {
677
677
  SKPAY: 'EASY_PAY_PROVIDER_SKPAY',
678
678
  TOSS_BRANDPAY: 'EASY_PAY_PROVIDER_TOSS_BRANDPAY',
679
679
  HYPHEN: 'EASY_PAY_PROVIDER_HYPHEN',
680
+ PAYPAY: 'EASY_PAY_PROVIDER_PAYPAY',
681
+ AMAZONPAY: 'EASY_PAY_PROVIDER_AMAZONPAY',
682
+ RAKUTENPAY: 'EASY_PAY_PROVIDER_RAKUTENPAY',
683
+ DBARAI: 'EASY_PAY_PROVIDER_DBARAI',
684
+ AUPAY: 'EASY_PAY_PROVIDER_AUPAY',
685
+ MERPAY: 'EASY_PAY_PROVIDER_MERPAY',
680
686
  };
681
687
 
682
688
  // 구매자 성별
package/dist/v2.js CHANGED
@@ -673,6 +673,12 @@ const EasyPayProvider = {
673
673
  SKPAY: 'EASY_PAY_PROVIDER_SKPAY',
674
674
  TOSS_BRANDPAY: 'EASY_PAY_PROVIDER_TOSS_BRANDPAY',
675
675
  HYPHEN: 'EASY_PAY_PROVIDER_HYPHEN',
676
+ PAYPAY: 'EASY_PAY_PROVIDER_PAYPAY',
677
+ AMAZONPAY: 'EASY_PAY_PROVIDER_AMAZONPAY',
678
+ RAKUTENPAY: 'EASY_PAY_PROVIDER_RAKUTENPAY',
679
+ DBARAI: 'EASY_PAY_PROVIDER_DBARAI',
680
+ AUPAY: 'EASY_PAY_PROVIDER_AUPAY',
681
+ MERPAY: 'EASY_PAY_PROVIDER_MERPAY',
676
682
  };
677
683
 
678
684
  // 구매자 성별
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@portone/browser-sdk",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "description": "PortOne SDK for browser",
6
6
  "keywords": [
7
7
  "PortOne",