@yuno-payments/sdk-web-types 5.3.0 → 5.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.
package/dist/global.d.ts CHANGED
@@ -731,6 +731,37 @@ 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
+ };
760
+ type ExternalButtonsConfig = {
761
+ googlePay?: GooglePayButtonConfig;
762
+ applePay?: ApplePayButtonConfig;
763
+ paypal?: PayPalButtonConfig;
764
+ };
734
765
  }
735
766
 
736
767
  interface ButtonTextCard {
@@ -874,6 +905,7 @@ interface YunoConfig {
874
905
  visibleTriggerOffsetPx?: number;
875
906
  bottomOffsetPx?: number;
876
907
  };
908
+ externalButtons?: ExternalButtonsNameSpace.ExternalButtonsConfig;
877
909
  }
878
910
  type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
879
911
  card?: CardConfig & {
package/dist/index.d.ts CHANGED
@@ -731,6 +731,37 @@ 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
+ };
760
+ type ExternalButtonsConfig = {
761
+ googlePay?: GooglePayButtonConfig;
762
+ applePay?: ApplePayButtonConfig;
763
+ paypal?: PayPalButtonConfig;
764
+ };
734
765
  }
735
766
 
736
767
  interface ButtonTextCard {
@@ -874,6 +905,7 @@ interface YunoConfig {
874
905
  visibleTriggerOffsetPx?: number;
875
906
  bottomOffsetPx?: number;
876
907
  };
908
+ externalButtons?: ExternalButtonsNameSpace.ExternalButtonsConfig;
877
909
  }
878
910
  type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
879
911
  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.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {