@yuno-payments/sdk-web-types 5.3.0 → 5.4.1

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.
package/dist/global.d.ts CHANGED
@@ -731,6 +731,38 @@ declare namespace ExternalButtonsNameSpace {
731
731
  unmountExternalButton(paymentMethodType: string): Promise<void>;
732
732
  unmountAllExternalButtons(): Promise<void>;
733
733
  }
734
+ type GooglePayButtonConfig = {
735
+ buttonColor?: 'default' | 'black' | 'white';
736
+ buttonType?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
737
+ buttonRadius?: number;
738
+ buttonLocale?: string;
739
+ buttonSizeMode?: 'fill' | 'static';
740
+ buttonWidth?: number;
741
+ buttonHeight?: number;
742
+ };
743
+ type ApplePayButtonConfig = {
744
+ buttonType?: 'plain' | 'add-money' | 'book' | 'buy' | 'check-out' | 'contribute' | 'donate' | 'order' | 'pay' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
745
+ buttonStyle?: 'black' | 'white' | 'white-outline';
746
+ locale?: string;
747
+ buttonWidth?: number;
748
+ buttonHeight?: number;
749
+ buttonBorderRadius?: number;
750
+ };
751
+ type PayPalButtonConfig = {
752
+ color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
753
+ shape?: 'rect' | 'pill' | 'sharp';
754
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
755
+ layout?: 'vertical' | 'horizontal';
756
+ height?: number;
757
+ width?: number;
758
+ borderRadius?: number;
759
+ locale?: string;
760
+ };
761
+ type ExternalButtonsConfig = {
762
+ googlePay?: GooglePayButtonConfig;
763
+ applePay?: ApplePayButtonConfig;
764
+ paypal?: PayPalButtonConfig;
765
+ };
734
766
  }
735
767
 
736
768
  interface ButtonTextCard {
@@ -874,6 +906,7 @@ interface YunoConfig {
874
906
  visibleTriggerOffsetPx?: number;
875
907
  bottomOffsetPx?: number;
876
908
  };
909
+ externalButtons?: ExternalButtonsNameSpace.ExternalButtonsConfig;
877
910
  }
878
911
  type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
879
912
  card?: CardConfig & {
package/dist/index.d.ts CHANGED
@@ -731,6 +731,38 @@ declare namespace ExternalButtonsNameSpace {
731
731
  unmountExternalButton(paymentMethodType: string): Promise<void>;
732
732
  unmountAllExternalButtons(): Promise<void>;
733
733
  }
734
+ type GooglePayButtonConfig = {
735
+ buttonColor?: 'default' | 'black' | 'white';
736
+ buttonType?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
737
+ buttonRadius?: number;
738
+ buttonLocale?: string;
739
+ buttonSizeMode?: 'fill' | 'static';
740
+ buttonWidth?: number;
741
+ buttonHeight?: number;
742
+ };
743
+ type ApplePayButtonConfig = {
744
+ buttonType?: 'plain' | 'add-money' | 'book' | 'buy' | 'check-out' | 'contribute' | 'donate' | 'order' | 'pay' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
745
+ buttonStyle?: 'black' | 'white' | 'white-outline';
746
+ locale?: string;
747
+ buttonWidth?: number;
748
+ buttonHeight?: number;
749
+ buttonBorderRadius?: number;
750
+ };
751
+ type PayPalButtonConfig = {
752
+ color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
753
+ shape?: 'rect' | 'pill' | 'sharp';
754
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
755
+ layout?: 'vertical' | 'horizontal';
756
+ height?: number;
757
+ width?: number;
758
+ borderRadius?: number;
759
+ locale?: string;
760
+ };
761
+ type ExternalButtonsConfig = {
762
+ googlePay?: GooglePayButtonConfig;
763
+ applePay?: ApplePayButtonConfig;
764
+ paypal?: PayPalButtonConfig;
765
+ };
734
766
  }
735
767
 
736
768
  interface ButtonTextCard {
@@ -874,6 +906,7 @@ interface YunoConfig {
874
906
  visibleTriggerOffsetPx?: number;
875
907
  bottomOffsetPx?: number;
876
908
  };
909
+ externalButtons?: ExternalButtonsNameSpace.ExternalButtonsConfig;
877
910
  }
878
911
  type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
879
912
  card?: CardConfig & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/sdk-web-types",
3
- "version": "5.3.0",
3
+ "version": "5.4.1",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {