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 #88 from arshad/DRUP-728-m10n-kickstart
[DRUP-728] Apigee Monetization for Kickstart
- Loading branch information
Showing
23 changed files
with
1,275 additions
and
66 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,5 @@ | ||
apigee_edge_form: | ||
version: VERSION | ||
css: | ||
theme: | ||
css/apigee_devportal_kickstart.apigee_edge_form.css: {} |
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,4 @@ | ||
services: | ||
apigee_devportal_kickstart.monetization: | ||
class: Drupal\apigee_devportal_kickstart\Installer\ApigeeDevportalKickstartMonetization | ||
# We cannot pass constructor arguments here because dependent services do not exist at this point. |
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,23 @@ | ||
/* | ||
* Copyright 2018 Google Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License version 2 as published by the | ||
* Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | ||
* License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, write to the Free Software Foundation, Inc., 51 | ||
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
.apigee-edge-authentication-form .messages--warning { | ||
border-color: #0074bd; | ||
box-shadow: -8px 0 0 #0074bd; | ||
background-color: #e6f5ff; | ||
background-image: url(../resources/apigee/questionmark-disc.svg); | ||
color: #666666; | ||
} |
8 changes: 8 additions & 0 deletions
8
modules/custom/apigee_kickstart_m10n_add_credit/apigee_kickstart_m10n_add_credit.info.yml
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,8 @@ | ||
name: Apigee Kickstart Monetization | ||
description: "Handles monetization for Apigee Kickstart. Adds and configures a default product type for adding credit." | ||
type: module | ||
core: 8.x | ||
package: Apigee Kickstart | ||
dependencies: | ||
- apigee_m10n:apigee_m10n | ||
- apigee_m10n_add_credit:apigee_m10n_add_credit |
9 changes: 9 additions & 0 deletions
9
...art_m10n_add_credit/config/install/commerce_order.commerce_order_item_type.add_credit.yml
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,9 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
label: 'Add credit' | ||
id: add_credit | ||
purchasableEntityType: commerce_product_variation | ||
orderType: default | ||
traits: { } | ||
locked: false |
17 changes: 17 additions & 0 deletions
17
...tart_m10n_add_credit/config/install/commerce_product.commerce_product_type.add_credit.yml
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,17 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- apigee_m10n_add_credit | ||
third_party_settings: | ||
apigee_m10n_add_credit: | ||
apigee_m10n_enable_add_credit: true | ||
apigee_m10n_enable_skip_cart: true | ||
id: add_credit | ||
label: 'Add credit' | ||
description: 'This product is used to add credit to prepaid balances.' | ||
variationType: add_credit | ||
multipleVariations: true | ||
injectVariationFields: true | ||
traits: { } | ||
locked: false |
9 changes: 9 additions & 0 deletions
9
...add_credit/config/install/commerce_product.commerce_product_variation_type.add_credit.yml
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,9 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: add_credit | ||
label: 'Add credit' | ||
orderItemType: add_credit | ||
generateTitle: false | ||
traits: { } | ||
locked: false |
36 changes: 36 additions & 0 deletions
36
...it/config/install/core.entity_form_display.commerce_order_item.add_credit.add_to_cart.yml
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,36 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- commerce_order.commerce_order_item_type.add_credit | ||
- core.entity_form_mode.commerce_order_item.add_to_cart | ||
module: | ||
- apigee_m10n_add_credit | ||
- commerce_price | ||
- commerce_product | ||
id: commerce_order_item.add_credit.add_to_cart | ||
targetEntityType: commerce_order_item | ||
bundle: add_credit | ||
mode: add_to_cart | ||
content: | ||
add_credit_target: | ||
type: add_credit_target_entity | ||
weight: 1 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
purchased_entity: | ||
type: commerce_product_variation_attributes | ||
weight: 0 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
unit_price: | ||
type: commerce_unit_price | ||
weight: 2 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
quantity: true |
Oops, something went wrong.