-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from Adyen/feature/open-invoice-with-country-…
…selection Show a dropdown of countries if no country is passed in Open Invoices
- Loading branch information
Showing
14 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const ALLOWED_COUNTRIES = ['CA', 'US']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import OpenInvoiceContainer from '../helpers/OpenInvoiceContainer'; | ||
import { ALLOWED_COUNTRIES } from './config'; | ||
|
||
export default class FacilyPay10x extends OpenInvoiceContainer { | ||
public static type = 'facilypay_10x'; | ||
|
||
formatProps(props) { | ||
return { | ||
...super.formatProps(props), | ||
allowedCountries: props.countryCode ? [props.countryCode] : ALLOWED_COUNTRIES | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import OpenInvoiceContainer from '../helpers/OpenInvoiceContainer'; | ||
import { ALLOWED_COUNTRIES } from './config'; | ||
|
||
export default class FacilyPay12x extends OpenInvoiceContainer { | ||
public static type = 'facilypay_12x'; | ||
|
||
formatProps(props) { | ||
return { | ||
...super.formatProps(props), | ||
allowedCountries: props.countryCode ? [props.countryCode] : ALLOWED_COUNTRIES | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import OpenInvoiceContainer from '../helpers/OpenInvoiceContainer'; | ||
import { ALLOWED_COUNTRIES } from './config'; | ||
|
||
export default class FacilyPay3x extends OpenInvoiceContainer { | ||
public static type = 'facilypay_3x'; | ||
} | ||
|
||
formatProps(props) { | ||
return { | ||
...super.formatProps(props), | ||
allowedCountries: props.countryCode ? [props.countryCode] : ALLOWED_COUNTRIES | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import OpenInvoiceContainer from '../helpers/OpenInvoiceContainer'; | ||
import { ALLOWED_COUNTRIES } from './config'; | ||
|
||
export default class FacilyPay4x extends OpenInvoiceContainer { | ||
public static type = 'facilypay_4x'; | ||
|
||
formatProps(props) { | ||
return { | ||
...super.formatProps(props), | ||
allowedCountries: props.countryCode ? [props.countryCode] : ALLOWED_COUNTRIES | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import OpenInvoiceContainer from '../helpers/OpenInvoiceContainer'; | ||
import { ALLOWED_COUNTRIES } from './config'; | ||
|
||
export default class FacilyPay6x extends OpenInvoiceContainer { | ||
public static type = 'facilypay_6x'; | ||
|
||
formatProps(props) { | ||
return { | ||
...super.formatProps(props), | ||
allowedCountries: props.countryCode ? [props.countryCode] : ALLOWED_COUNTRIES | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const ALLOWED_COUNTRIES = ['ES', 'FR']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import OpenInvoiceContainer from '../helpers/OpenInvoiceContainer'; | ||
import { ALLOWED_COUNTRIES } from './config'; | ||
|
||
export default class RatePay extends OpenInvoiceContainer { | ||
public static type = 'ratepay'; | ||
|
||
formatProps(props) { | ||
return { | ||
...super.formatProps(props), | ||
allowedCountries: props.countryCode ? [props.countryCode] : ALLOWED_COUNTRIES | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const ALLOWED_COUNTRIES = ['AT', 'CH', 'DE']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters