@myclub_se/data-access 3.3.6 → 3.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 (43) hide show
  1. package/esm2022/lib/api-models/api-invoice/api-member-invoice.mjs +1 -1
  2. package/esm2022/lib/api-models/api-invoice/api-payment-attempt-create.mjs +4 -2
  3. package/esm2022/lib/api-models/api-invoice/api-payment-attempt.mjs +1 -1
  4. package/esm2022/lib/api-models/api-invoice/api-payment-order-payment-post-data.mjs +2 -0
  5. package/esm2022/lib/api-models/api-invoice/api-payment-order.mjs +1 -1
  6. package/esm2022/lib/api-models/api-invoice/index.mjs +2 -1
  7. package/esm2022/lib/api-models/api-invoice/payment-attempt-data-types/api-payment-attempt-ping-credit-card-data-type.mjs +2 -0
  8. package/esm2022/lib/api-models/api-invoice/payment-attempt-data-types/api-payment-attempt-ping-swish-data-type.mjs +2 -0
  9. package/esm2022/lib/api-models/api-invoice/payment-attempt-data-types/index.mjs +3 -1
  10. package/esm2022/lib/models/invoice/member-invoice.mjs +8 -4
  11. package/esm2022/lib/models/invoice/payment-attempt-data-types/index.mjs +3 -1
  12. package/esm2022/lib/models/invoice/payment-attempt-data-types/payment-attempt-ping-credit-card-data-type.mjs +2 -0
  13. package/esm2022/lib/models/invoice/payment-attempt-data-types/payment-attempt-ping-swish-data-type.mjs +2 -0
  14. package/esm2022/lib/models/invoice/payment-attempt.mjs +1 -1
  15. package/esm2022/lib/models/invoice/payment-order.mjs +6 -2
  16. package/esm2022/lib/services/factories/member-invoice-factory.mjs +2 -2
  17. package/esm2022/lib/services/factories/payment-attempt-factory.mjs +14 -1
  18. package/esm2022/lib/services/factories/payment-order-factory.mjs +2 -2
  19. package/esm2022/lib/services/invoice/payment-attempt.service.mjs +11 -3
  20. package/esm2022/lib/store/actions/invoice.actions.mjs +33 -1
  21. package/esm2022/lib/store/effects/invoice.effects.mjs +30 -2
  22. package/esm2022/lib/types/payment-attempt-type.mjs +1 -1
  23. package/fesm2022/myclub_se-data-access.mjs +101 -10
  24. package/fesm2022/myclub_se-data-access.mjs.map +1 -1
  25. package/lib/api-models/api-invoice/api-member-invoice.d.ts +3 -1
  26. package/lib/api-models/api-invoice/api-payment-attempt-create.d.ts +2 -1
  27. package/lib/api-models/api-invoice/api-payment-attempt.d.ts +2 -2
  28. package/lib/api-models/api-invoice/api-payment-order-payment-post-data.d.ts +6 -0
  29. package/lib/api-models/api-invoice/api-payment-order.d.ts +2 -0
  30. package/lib/api-models/api-invoice/index.d.ts +1 -0
  31. package/lib/api-models/api-invoice/payment-attempt-data-types/api-payment-attempt-ping-credit-card-data-type.d.ts +3 -0
  32. package/lib/api-models/api-invoice/payment-attempt-data-types/api-payment-attempt-ping-swish-data-type.d.ts +5 -0
  33. package/lib/api-models/api-invoice/payment-attempt-data-types/index.d.ts +2 -0
  34. package/lib/models/invoice/member-invoice.d.ts +4 -2
  35. package/lib/models/invoice/payment-attempt-data-types/index.d.ts +2 -0
  36. package/lib/models/invoice/payment-attempt-data-types/payment-attempt-ping-credit-card-data-type.d.ts +3 -0
  37. package/lib/models/invoice/payment-attempt-data-types/payment-attempt-ping-swish-data-type.d.ts +5 -0
  38. package/lib/models/invoice/payment-attempt.d.ts +3 -3
  39. package/lib/models/invoice/payment-order.d.ts +3 -1
  40. package/lib/store/actions/invoice.actions.d.ts +152 -0
  41. package/lib/store/effects/invoice.effects.d.ts +40 -0
  42. package/lib/types/payment-attempt-type.d.ts +1 -1
  43. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  import { ApiCreditCard, ApiGiro, ApiSwish, ApiZimpler } from './api-invoice-payments';
2
2
  import { ApiMemberInvoiceRow } from './api-member-invoice-row';
3
3
  export interface ApiMemberInvoice {
4
+ allow_ping_swish: boolean;
5
+ allow_ping_credit_card: boolean;
4
6
  amount: number;
5
7
  amount_paid: number;
6
8
  balance: number;
@@ -9,6 +11,7 @@ export interface ApiMemberInvoice {
9
11
  credit_card: ApiCreditCard | null;
10
12
  date_paid: string;
11
13
  due_date: string;
14
+ fritidskortet_allowed: boolean;
12
15
  giro: ApiGiro | null;
13
16
  id: string;
14
17
  invoice_rows: Array<ApiMemberInvoiceRow>;
@@ -21,5 +24,4 @@ export interface ApiMemberInvoice {
21
24
  reference: string;
22
25
  swish: ApiSwish | null;
23
26
  zimpler: ApiZimpler | null;
24
- fritidskortet_allowed: boolean;
25
27
  }
@@ -10,5 +10,6 @@ export declare class ApiPaymentOrderPaymentAttemptCreate implements Pick<ApiPaym
10
10
  payment_order_id: ApiPaymentAttempt['payment_order_id'];
11
11
  type: ApiPaymentAttempt['type'];
12
12
  telephone_number: string;
13
- constructor(payment_order_id: ApiPaymentAttempt['payment_order_id'], type: ApiPaymentAttempt['type'], telephone_number: string);
13
+ is_public: boolean;
14
+ constructor(payment_order_id: ApiPaymentAttempt['payment_order_id'], type: ApiPaymentAttempt['type'], telephone_number: string, is_public?: boolean);
14
15
  }
@@ -1,4 +1,4 @@
1
- import { ApiPaymentAttemptCreditCardDataType, ApiPaymentAttemptSwishDataType, ApiPaymentAttemptZimplerDataType } from './payment-attempt-data-types';
1
+ import { ApiPaymentAttemptCreditCardDataType, ApiPaymentAttemptPingCreditCardDataType, ApiPaymentAttemptPingSwishDataType, ApiPaymentAttemptSwishDataType, ApiPaymentAttemptZimplerDataType } from './payment-attempt-data-types';
2
2
  import { PaymentAttemptStatusType, PaymentAttemptType } from '../../types';
3
3
  export interface ApiPaymentAttempt {
4
4
  readonly amount: number;
@@ -7,7 +7,7 @@ export interface ApiPaymentAttempt {
7
7
  invoice_id?: string;
8
8
  payment_order_id?: string;
9
9
  paid_date: string;
10
- readonly payment_data: ApiPaymentAttemptCreditCardDataType | ApiPaymentAttemptSwishDataType | ApiPaymentAttemptZimplerDataType | null;
10
+ readonly payment_data: ApiPaymentAttemptCreditCardDataType | ApiPaymentAttemptSwishDataType | ApiPaymentAttemptPingCreditCardDataType | ApiPaymentAttemptPingSwishDataType | ApiPaymentAttemptZimplerDataType | null;
11
11
  status: PaymentAttemptStatusType;
12
12
  readonly type: PaymentAttemptType;
13
13
  }
@@ -0,0 +1,6 @@
1
+ export interface ApiPaymentOrderPaymentPostData {
2
+ payment_order_id: string;
3
+ type: string;
4
+ public: boolean;
5
+ telephone_number?: string;
6
+ }
@@ -1,5 +1,7 @@
1
1
  import { ApiCreditCard, ApiSwish } from './api-invoice-payments';
2
2
  export interface ApiPaymentOrder {
3
+ allow_ping_credit_card: boolean;
4
+ allow_ping_swish: boolean;
3
5
  amount: number;
4
6
  credit_card: ApiCreditCard | null;
5
7
  club_name: string;
@@ -8,5 +8,6 @@ export * from './api-search-member-invoice';
8
8
  export * from './api-payment-attempt';
9
9
  export * from './api-payment-attempt-create';
10
10
  export * from './api-payment-order';
11
+ export * from './api-payment-order-payment-post-data';
11
12
  export * from './api-swish-qr-code';
12
13
  export * from './api-unpaid-member-invoice';
@@ -0,0 +1,3 @@
1
+ export type ApiPaymentAttemptPingCreditCardDataType = {
2
+ readonly pay_url: string;
3
+ };
@@ -0,0 +1,5 @@
1
+ export type ApiPaymentAttemptPingSwishDataType = {
2
+ readonly payment_request_token: string;
3
+ readonly qr_code: string;
4
+ readonly pay_url: string;
5
+ };
@@ -1,3 +1,5 @@
1
1
  export * from './api-payment-attempt-credit-card-data-type';
2
+ export * from './api-payment-attempt-ping-credit-card-data-type';
3
+ export * from './api-payment-attempt-ping-swish-data-type';
2
4
  export * from './api-payment-attempt-swish-data-type';
3
5
  export * from './api-payment-attempt-zimpler-data-type';
@@ -2,6 +2,8 @@ import { CreditCard, Giro, Swish, Zimpler } from './payment-types';
2
2
  import { MemberInvoiceRow } from './member-invoice-row';
3
3
  export declare class MemberInvoice {
4
4
  id: string;
5
+ allow_ping_credit_card: boolean;
6
+ allow_ping_swish: boolean;
5
7
  amount: number;
6
8
  amountPaid: number;
7
9
  balance: number;
@@ -10,6 +12,7 @@ export declare class MemberInvoice {
10
12
  creditCard: CreditCard | null;
11
13
  datePaid: string;
12
14
  dueDate: string;
15
+ fritidskortetAllowed: boolean;
13
16
  giro: Giro | null;
14
17
  invoiceRows: Array<MemberInvoiceRow>;
15
18
  invoiceText: string;
@@ -21,6 +24,5 @@ export declare class MemberInvoice {
21
24
  reference: string;
22
25
  swish: Swish | null;
23
26
  zimpler: Zimpler | null;
24
- fritidskortetAllowed: boolean;
25
- constructor(id: string, amount: number, amountPaid: number, balance: number, clubBillId: number, clubName: string, creditCard: CreditCard | null, datePaid: string, dueDate: string, giro: Giro | null, invoiceRows: Array<MemberInvoiceRow>, invoiceText: string, isPaid: boolean, memberId: string, organisationName: string, payee: string, paymentUrl: string, reference: string, swish: Swish | null, zimpler: Zimpler | null, fritidskortetAllowed: boolean);
27
+ constructor(id: string, allow_ping_credit_card: boolean, allow_ping_swish: boolean, amount: number, amountPaid: number, balance: number, clubBillId: number, clubName: string, creditCard: CreditCard | null, datePaid: string, dueDate: string, fritidskortetAllowed: boolean, giro: Giro | null, invoiceRows: Array<MemberInvoiceRow>, invoiceText: string, isPaid: boolean, memberId: string, organisationName: string, payee: string, paymentUrl: string, reference: string, swish: Swish | null, zimpler: Zimpler | null);
26
28
  }
@@ -1,4 +1,6 @@
1
1
  export * from './payment-attempt-credit-card-data-type';
2
2
  export * from './payment-attempt-fritidskortet-data-type';
3
+ export * from './payment-attempt-ping-credit-card-data-type';
4
+ export * from './payment-attempt-ping-swish-data-type';
3
5
  export * from './payment-attempt-swish-data-type';
4
6
  export * from './payment-attempt-zimpler-data-type';
@@ -0,0 +1,3 @@
1
+ export type PaymentAttemptPingCreditCardDataType = {
2
+ readonly payUrl: string;
3
+ };
@@ -0,0 +1,5 @@
1
+ export type PaymentAttemptPingSwishDataType = {
2
+ readonly paymentRequestToken?: string;
3
+ readonly qrCode?: string;
4
+ readonly payUrl?: string;
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { PaymentAttemptStatusType, PaymentAttemptType } from '../../types';
2
- import { PaymentAttemptCreditCardDataType, PaymentAttemptSwishDataType, PaymentAttemptZimplerDataType, PaymentAttemptFritidskortetDataType } from './payment-attempt-data-types';
2
+ import { PaymentAttemptCreditCardDataType, PaymentAttemptPingCreditCardDataType, PaymentAttemptPingSwishDataType, PaymentAttemptSwishDataType, PaymentAttemptZimplerDataType, PaymentAttemptFritidskortetDataType } from './payment-attempt-data-types';
3
3
  export declare class PaymentAttempt {
4
4
  readonly id: number;
5
5
  readonly amount: number;
@@ -7,8 +7,8 @@ export declare class PaymentAttempt {
7
7
  invoiceId: string | undefined | null;
8
8
  paymentOrderId: string | undefined | null;
9
9
  paidDate: string;
10
- readonly paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType | PaymentAttemptFritidskortetDataType;
10
+ readonly paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType | PaymentAttemptFritidskortetDataType | PaymentAttemptPingCreditCardDataType | PaymentAttemptPingSwishDataType;
11
11
  status: PaymentAttemptStatusType;
12
12
  readonly type: PaymentAttemptType;
13
- constructor(id: number, amount: number, error: unknown, invoiceId: string | undefined | null, paymentOrderId: string | undefined | null, paidDate: string, paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType | PaymentAttemptFritidskortetDataType, status: PaymentAttemptStatusType, type: PaymentAttemptType);
13
+ constructor(id: number, amount: number, error: unknown, invoiceId: string | undefined | null, paymentOrderId: string | undefined | null, paidDate: string, paymentData: PaymentAttemptCreditCardDataType | PaymentAttemptSwishDataType | PaymentAttemptZimplerDataType | PaymentAttemptFritidskortetDataType | PaymentAttemptPingCreditCardDataType | PaymentAttemptPingSwishDataType, status: PaymentAttemptStatusType, type: PaymentAttemptType);
14
14
  }
@@ -1,6 +1,8 @@
1
1
  import { CreditCard, Swish } from './payment-types';
2
2
  export declare class PaymentOrder {
3
3
  id: string;
4
+ allowPingCreditCard: boolean;
5
+ allowPingSwish: boolean;
4
6
  amount: number;
5
7
  creditCard: CreditCard | null;
6
8
  clubName: string;
@@ -10,5 +12,5 @@ export declare class PaymentOrder {
10
12
  swish: Swish | null;
11
13
  full_title: string;
12
14
  pay_until: string;
13
- constructor(id: string, amount: number, creditCard: CreditCard | null, clubName: string, isPaid: boolean, memberId: string, organisationName: string, swish: Swish | null, full_title: string, pay_until: string);
15
+ constructor(id: string, allowPingCreditCard: boolean, allowPingSwish: boolean, amount: number, creditCard: CreditCard | null, clubName: string, isPaid: boolean, memberId: string, organisationName: string, swish: Swish | null, full_title: string, pay_until: string);
14
16
  }
@@ -11,6 +11,14 @@ export declare enum InvoiceActionType {
11
11
  CreateMondidoPublicInvoicePayment = "[Invoice] Create Mondido public payment",
12
12
  CreateMondidoInvoicePaymentFailure = "[Invoice] Create Mondido payment failure",
13
13
  CreateMondidoInvoicePaymentSuccess = "[Invoice] Create Mondido payment success",
14
+ CreatePingCreditCardMemberInvoicePayment = "[Invoice] Create Ping Credit Card member invoice payment",
15
+ CreatePingCreditCardPublicInvoicePayment = "[Invoice] Create Ping Credit Card public invoice payment",
16
+ CreatePingCreditCardInvoicePaymentFailure = "[Invoice] Create Ping Credit Card invoice payment failure",
17
+ CreatePingCreditCardInvoicePaymentSuccess = "[Invoice] Create Ping Credit Card invoice payment success",
18
+ CreatePingSwishMemberInvoicePayment = "[Invoice] Create Ping Swish member invoice payment",
19
+ CreatePingSwishPublicInvoicePayment = "[Invoice] Create Ping Swish public invoice payment",
20
+ CreatePingSwishInvoicePaymentFailure = "[Invoice] Create Ping Swish invoice payment failure",
21
+ CreatePingSwishInvoicePaymentSuccess = "[Invoice] Create Ping Swish invoice payment success",
14
22
  CreateSwishMemberInvoicePayment = "[Invoice] Create swish member payment",
15
23
  CreateSwishPublicInvoicePayment = "[Invoice] Create swish public payment",
16
24
  CreateSwishInvoicePaymentFailure = "[Invoice] Create swish payment failure",
@@ -19,6 +27,14 @@ export declare enum InvoiceActionType {
19
27
  CreateMondidoPublicPaymentOrderPayment = "[Payment Order] Create Mondido public payment",
20
28
  CreateMondidoPaymentOrderPaymentFailure = "[Payment Order] Create Mondido payment failure",
21
29
  CreateMondidoPaymentOrderPaymentSuccess = "[Payment Order] Create Mondido payment success",
30
+ CreatePingCreditCardMemberPaymentOrderPayment = "[Invoice] Create Ping Credit Card member payment order payment",
31
+ CreatePingCreditCardPublicPaymentOrderPayment = "[Invoice] Create Ping Credit Card public payment order payment",
32
+ CreatePingCreditCardPaymentOrderPaymentFailure = "[Invoice] Create Ping Credit Card payment order payment failure",
33
+ CreatePingCreditCardPaymentOrderPaymentSuccess = "[Invoice] Create Ping Credit Card payment order payment success",
34
+ CreatePingSwishMemberPaymentOrderPayment = "[Invoice] Create Ping Swish member payment orderpayment",
35
+ CreatePingSwishPublicPaymentOrderPayment = "[Invoice] Create Ping Swish public payment orderpayment",
36
+ CreatePingSwishPaymentOrderPaymentFailure = "[Invoice] Create Ping Swish payment order payment failure",
37
+ CreatePingSwishPaymentOrderPaymentSuccess = "[Invoice] Create Ping Swish payment order payment success",
22
38
  CreateSwishMemberPaymentOrderPayment = "[Payment Order] Create swish member payment",
23
39
  CreateSwishPublicPaymentOrderPayment = "[Payment Order] Create swish public payment",
24
40
  CreateSwishPaymentOrderPaymentFailure = "[Payment Order] Create swish payment failure",
@@ -149,6 +165,74 @@ export declare const createMondidoInvoicePaymentSuccessAction: import("@ngrx/sto
149
165
  }) => {
150
166
  payload: PaymentAttempt;
151
167
  } & import("@ngrx/store").Action<InvoiceActionType.CreateMondidoInvoicePaymentSuccess>>;
168
+ export declare const createPingCreditCardMemberInvoicePaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardMemberInvoicePayment, (props: {
169
+ payload: {
170
+ memberId: string;
171
+ invoiceId: string;
172
+ };
173
+ }) => {
174
+ payload: {
175
+ memberId: string;
176
+ invoiceId: string;
177
+ };
178
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardMemberInvoicePayment>>;
179
+ export declare const createPingCreditCardPublicInvoicePaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardPublicInvoicePayment, (props: {
180
+ payload: {
181
+ token: string;
182
+ invoiceId: string;
183
+ };
184
+ }) => {
185
+ payload: {
186
+ token: string;
187
+ invoiceId: string;
188
+ };
189
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardPublicInvoicePayment>>;
190
+ export declare const createPingCreditCardPaymentFailureAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardInvoicePaymentFailure, (props: {
191
+ payload: HttpErrorResponse;
192
+ }) => {
193
+ payload: HttpErrorResponse;
194
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardInvoicePaymentFailure>>;
195
+ export declare const createPingCreditCardPaymentSuccessAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardInvoicePaymentSuccess, (props: {
196
+ payload: PaymentAttempt;
197
+ }) => {
198
+ payload: PaymentAttempt;
199
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardInvoicePaymentSuccess>>;
200
+ export declare const createPingSwishMemberInvoicePaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishMemberInvoicePayment, (props: {
201
+ payload: {
202
+ memberId: string;
203
+ invoiceId: string;
204
+ telephoneNumber: string;
205
+ };
206
+ }) => {
207
+ payload: {
208
+ memberId: string;
209
+ invoiceId: string;
210
+ telephoneNumber: string;
211
+ };
212
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishMemberInvoicePayment>>;
213
+ export declare const createPingSwishPublicInvoicePaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishPublicInvoicePayment, (props: {
214
+ payload: {
215
+ token: string;
216
+ invoiceId: string;
217
+ telephoneNumber: string;
218
+ };
219
+ }) => {
220
+ payload: {
221
+ token: string;
222
+ invoiceId: string;
223
+ telephoneNumber: string;
224
+ };
225
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishPublicInvoicePayment>>;
226
+ export declare const createPingSwishPaymentFailureAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishInvoicePaymentFailure, (props: {
227
+ payload: HttpErrorResponse;
228
+ }) => {
229
+ payload: HttpErrorResponse;
230
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishInvoicePaymentFailure>>;
231
+ export declare const createPingSwishPaymentSuccessAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishInvoicePaymentSuccess, (props: {
232
+ payload: PaymentAttempt;
233
+ }) => {
234
+ payload: PaymentAttempt;
235
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishInvoicePaymentSuccess>>;
152
236
  export declare const createSwishMemberInvoicePaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreateSwishMemberInvoicePayment, (props: {
153
237
  payload: {
154
238
  memberId: string;
@@ -249,6 +333,74 @@ export declare const createMondidoPaymentOrderPaymentSuccessAction: import("@ngr
249
333
  }) => {
250
334
  payload: PaymentAttempt;
251
335
  } & import("@ngrx/store").Action<InvoiceActionType.CreateMondidoPaymentOrderPaymentSuccess>>;
336
+ export declare const createPingCreditCardMemberPaymentOrderPaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardMemberPaymentOrderPayment, (props: {
337
+ payload: {
338
+ memberId: string;
339
+ paymentOrderId: string;
340
+ };
341
+ }) => {
342
+ payload: {
343
+ memberId: string;
344
+ paymentOrderId: string;
345
+ };
346
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardMemberPaymentOrderPayment>>;
347
+ export declare const createPingCreditCardPublicPaymentOrderPaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardPublicPaymentOrderPayment, (props: {
348
+ payload: {
349
+ token: string;
350
+ paymentOrderId: string;
351
+ };
352
+ }) => {
353
+ payload: {
354
+ token: string;
355
+ paymentOrderId: string;
356
+ };
357
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardPublicPaymentOrderPayment>>;
358
+ export declare const createPingCreditCardPaymentOrderPaymentFailureAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardPaymentOrderPaymentFailure, (props: {
359
+ payload: HttpErrorResponse;
360
+ }) => {
361
+ payload: HttpErrorResponse;
362
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardPaymentOrderPaymentFailure>>;
363
+ export declare const createPingCreditCardPaymentOrderPaymentSuccessAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingCreditCardPaymentOrderPaymentSuccess, (props: {
364
+ payload: PaymentAttempt;
365
+ }) => {
366
+ payload: PaymentAttempt;
367
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingCreditCardPaymentOrderPaymentSuccess>>;
368
+ export declare const createPingSwishMemberPaymentOrderPaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishMemberPaymentOrderPayment, (props: {
369
+ payload: {
370
+ memberId: string;
371
+ paymentOrderId: string;
372
+ telephoneNumber: string;
373
+ };
374
+ }) => {
375
+ payload: {
376
+ memberId: string;
377
+ paymentOrderId: string;
378
+ telephoneNumber: string;
379
+ };
380
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishMemberPaymentOrderPayment>>;
381
+ export declare const createPingSwishPublicPaymentOrderPaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishPublicPaymentOrderPayment, (props: {
382
+ payload: {
383
+ token: string;
384
+ paymentOrderId: string;
385
+ telephoneNumber: string;
386
+ };
387
+ }) => {
388
+ payload: {
389
+ token: string;
390
+ paymentOrderId: string;
391
+ telephoneNumber: string;
392
+ };
393
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishPublicPaymentOrderPayment>>;
394
+ export declare const createPingSwishPaymentOrderPaymentFailureAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishPaymentOrderPaymentFailure, (props: {
395
+ payload: HttpErrorResponse;
396
+ }) => {
397
+ payload: HttpErrorResponse;
398
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishPaymentOrderPaymentFailure>>;
399
+ export declare const createPingSwishPaymentOrderPaymentSuccessAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreatePingSwishPaymentOrderPaymentSuccess, (props: {
400
+ payload: PaymentAttempt;
401
+ }) => {
402
+ payload: PaymentAttempt;
403
+ } & import("@ngrx/store").Action<InvoiceActionType.CreatePingSwishPaymentOrderPaymentSuccess>>;
252
404
  export declare const createSwishMemberPaymentOrderPaymentAction: import("@ngrx/store").ActionCreator<InvoiceActionType.CreateSwishMemberPaymentOrderPayment, (props: {
253
405
  payload: {
254
406
  memberId: string;
@@ -16,6 +16,16 @@ export declare class InvoiceEffects {
16
16
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoInvoicePaymentSuccess>) | ({
17
17
  payload: HttpErrorResponse;
18
18
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
19
+ createMemberPingCreditCardPayment$: import("rxjs").Observable<({
20
+ payload: PaymentAttempt;
21
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardInvoicePaymentSuccess>) | ({
22
+ payload: HttpErrorResponse;
23
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
24
+ createMemberPingSwishPayment$: import("rxjs").Observable<({
25
+ payload: PaymentAttempt;
26
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishInvoicePaymentSuccess>) | ({
27
+ payload: HttpErrorResponse;
28
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
19
29
  createMemberInvoiceSwishPayment$: import("rxjs").Observable<({
20
30
  payload: PaymentAttempt;
21
31
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateSwishInvoicePaymentSuccess>) | ({
@@ -26,6 +36,16 @@ export declare class InvoiceEffects {
26
36
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoPaymentOrderPaymentSuccess>) | ({
27
37
  payload: HttpErrorResponse;
28
38
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoPaymentOrderPaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
39
+ createMemberPingCreditCardPaymentOrderPayment$: import("rxjs").Observable<({
40
+ payload: PaymentAttempt;
41
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardPaymentOrderPaymentSuccess>) | ({
42
+ payload: HttpErrorResponse;
43
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardPaymentOrderPaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
44
+ createMemberPingSwishPaymentOrderPayment$: import("rxjs").Observable<({
45
+ payload: PaymentAttempt;
46
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishPaymentOrderPaymentSuccess>) | ({
47
+ payload: HttpErrorResponse;
48
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishPaymentOrderPaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
29
49
  createMemberPaymentOrderSwishPayment$: import("rxjs").Observable<({
30
50
  payload: PaymentAttempt;
31
51
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateSwishPaymentOrderPaymentSuccess>) | ({
@@ -46,6 +66,16 @@ export declare class InvoiceEffects {
46
66
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoInvoicePaymentSuccess>) | ({
47
67
  payload: HttpErrorResponse;
48
68
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
69
+ createPublicInvoicePingCreditCardPayment$: import("rxjs").Observable<({
70
+ payload: PaymentAttempt;
71
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardInvoicePaymentSuccess>) | ({
72
+ payload: HttpErrorResponse;
73
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
74
+ createPublicInvoicePingSwishPayment$: import("rxjs").Observable<({
75
+ payload: PaymentAttempt;
76
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishInvoicePaymentSuccess>) | ({
77
+ payload: HttpErrorResponse;
78
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
49
79
  createPublicInvoiceSwishPayment$: import("rxjs").Observable<({
50
80
  payload: PaymentAttempt;
51
81
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateSwishInvoicePaymentSuccess>) | ({
@@ -56,6 +86,16 @@ export declare class InvoiceEffects {
56
86
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoPaymentOrderPaymentSuccess>) | ({
57
87
  payload: HttpErrorResponse;
58
88
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateMondidoPaymentOrderPaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
89
+ createPublicPaymentOrderPingCreditCardPayment$: import("rxjs").Observable<({
90
+ payload: PaymentAttempt;
91
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardInvoicePaymentSuccess>) | ({
92
+ payload: HttpErrorResponse;
93
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingCreditCardInvoicePaymentFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
94
+ createPublicPaymentOrderPingSwishPayment$: import("rxjs").Observable<({
95
+ payload: HttpErrorResponse;
96
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishInvoicePaymentFailure>) | ({
97
+ payload: PaymentAttempt;
98
+ } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreatePingSwishPaymentOrderPaymentSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
59
99
  createPublicPaymentOrderSwishPayment$: import("rxjs").Observable<({
60
100
  payload: PaymentAttempt;
61
101
  } & import("@ngrx/store").Action<import("../actions").InvoiceActionType.CreateSwishPaymentOrderPaymentSuccess>) | ({
@@ -1 +1 @@
1
- export type PaymentAttemptType = 'zimpler' | 'mondido' | 'swish' | 'fritidskortet';
1
+ export type PaymentAttemptType = 'zimpler' | 'mondido' | 'swish' | 'fritidskortet' | 'ping_card' | 'ping_swish';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myclub_se/data-access",
3
3
  "description": "This is the package required to access the api for the MyClub Member API V3 from angular",
4
- "version": "3.3.6",
4
+ "version": "3.4.0",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
7
7
  "peerDependencies": {