@openhive-eu/payment 1.0.0-beta.3 → 1.0.0-beta.5

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.
Binary file
@@ -1,4 +1,4 @@
1
- import type { paths, components } from "./gen/api-schema";
1
+ import type { paths, components } from "../../api/gen/api-schema";
2
2
  declare function createApiClient(baseUrl: string, token: string, locale?: string): import("openapi-fetch").Client<paths, `${string}/${string}`>;
3
3
  type RequestToPay = components["schemas"]["Payment.CreatePaymentInput"];
4
4
  type Currency = components["schemas"]["Payment.CreatePaymentInput"]["currency"];
@@ -1,22 +1,92 @@
1
- export type Translations = {
1
+ import { t } from "@openhive-eu/i18n";
2
+ declare const translations: {
3
+ fr: {
4
+ close: string;
5
+ errorGeneric: string;
6
+ emailAddress: string;
7
+ emailInvalid: string;
8
+ phoneNumber: string;
9
+ phoneInvalid: string;
10
+ countryCode: string;
11
+ title: string;
12
+ amount: string;
13
+ amountInvalid: string;
14
+ reference: string;
15
+ choosePaymentMethod: string;
16
+ chooseDeliveryMethod: string;
17
+ sendPaymentLink: string;
18
+ paymentLinkSent: string;
19
+ emailSentTo: string;
20
+ smsSentTo: string;
21
+ textMessage: string;
22
+ email: string;
23
+ errorFallback: string;
24
+ };
25
+ en: {
26
+ close: string;
27
+ errorGeneric: string;
28
+ emailAddress: string;
29
+ emailInvalid: string;
30
+ phoneNumber: string;
31
+ phoneInvalid: string;
32
+ countryCode: string;
33
+ title: string;
34
+ amount: string;
35
+ amountInvalid: string;
36
+ reference: string;
37
+ choosePaymentMethod: string;
38
+ chooseDeliveryMethod: string;
39
+ sendPaymentLink: string;
40
+ paymentLinkSent: string;
41
+ emailSentTo: string;
42
+ smsSentTo: string;
43
+ textMessage: string;
44
+ email: string;
45
+ errorFallback: string;
46
+ };
47
+ };
48
+ export type PaymentTranslations = (typeof translations)["fr"];
49
+ export declare const getTranslations: (locale: string) => {
50
+ close: string;
51
+ errorGeneric: string;
52
+ emailAddress: string;
53
+ emailInvalid: string;
54
+ phoneNumber: string;
55
+ phoneInvalid: string;
56
+ countryCode: string;
2
57
  title: string;
3
58
  amount: string;
4
59
  amountInvalid: string;
5
60
  reference: string;
6
61
  choosePaymentMethod: string;
7
62
  chooseDeliveryMethod: string;
63
+ sendPaymentLink: string;
64
+ paymentLinkSent: string;
65
+ emailSentTo: string;
66
+ smsSentTo: string;
67
+ textMessage: string;
68
+ email: string;
69
+ errorFallback: string;
70
+ } | {
71
+ close: string;
72
+ errorGeneric: string;
8
73
  emailAddress: string;
9
74
  emailInvalid: string;
10
75
  phoneNumber: string;
11
76
  phoneInvalid: string;
12
77
  countryCode: string;
78
+ title: string;
79
+ amount: string;
80
+ amountInvalid: string;
81
+ reference: string;
82
+ choosePaymentMethod: string;
83
+ chooseDeliveryMethod: string;
13
84
  sendPaymentLink: string;
14
85
  paymentLinkSent: string;
15
86
  emailSentTo: string;
16
87
  smsSentTo: string;
17
- close: string;
18
88
  textMessage: string;
19
89
  email: string;
20
90
  errorFallback: string;
21
91
  };
22
- export declare const getTranslations: (locale: string) => Translations;
92
+ export { t };
@@ -13,6 +13,7 @@ export declare class PaymentWidget extends LitElement {
13
13
  customerPhone: string;
14
14
  locale: string;
15
15
  payClientRef: string;
16
+ productName: string;
16
17
  get payClient(): PayClientInterface | undefined;
17
18
  set payClient(client: PayClientInterface | undefined);
18
19
  private _payClient?;