Skip to content

Commit 94256a4

Browse files
authored
Merge pull request #4 from numbersprotocol/feature-agency-commission-fee
feat(capture): support agency commission fee Ref: numbersprotocol/project#17 Add email templates for agency fee: product_sold_agency and product_sold_agency_recollected.
2 parents 6dbe3ea + b3d7646 commit 94256a4

File tree

13 files changed

+397
-7
lines changed

13 files changed

+397
-7
lines changed

templates/capture/product_sold/zh-hant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en">
1+
<html lang="zh-Hant">
22
<head>
33
<meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="utf-8" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
<title>Your Capture has been collected!</title>
6+
</head>
7+
8+
<body>
9+
<span
10+
style="
11+
background-color: rgb(255, 255, 255);
12+
color: rgb(34, 34, 34);
13+
font-family: arial, helvetica, sans-serif;
14+
"
15+
>Dear creator,</span
16+
><br />
17+
18+
<div>
19+
<p>
20+
Your Capture has been collected.
21+
22+
<br />
23+
See the details below:
24+
</p>
25+
<ul>
26+
<li>Transaction Date: {{order.date}}</li>
27+
<li>
28+
Capture Nid:
29+
<a href="{{order.asset_link}}">{{order.nid}}</a>
30+
</li>
31+
<li>Quantity: {{order.quantity}}</li>
32+
<li>
33+
Collection Price ({{order.price_base}}): {{order.collection_price}}
34+
</li>
35+
<li>
36+
Platform Service Fee ({{order.price_base}}): {{order.service_fee}}
37+
(12%)
38+
</li>
39+
<li>
40+
Agency Commission Fee ({{ order.price_base }}): {{ order.agency_fee }}
41+
({{ order.agency_fee_pct }}% for {{ order.agency_name }})
42+
</li>
43+
<li>Income ({{order.price_base}}): {{order.income}}</li>
44+
</ul>
45+
</div>
46+
<div>
47+
<p>*Note: The owner share of {{order.share_percentage}} is the income.</p>
48+
<p>
49+
Your sales proceeds will be credited to your Capture wallet. If the
50+
payment was proceeded with credit card, it would take 7 days until you
51+
may withdraw the fund due to the regulation.
52+
</p>
53+
</div>
54+
<div>
55+
<p>
56+
To view your updated balance, please visit the
57+
<a href="{{cam_link}}">Capture Cam App</a>
58+
or
59+
<a href="{{dashboard_link}}">Capture Dashboard</a>, navigate to the menu
60+
and click "wallet".
61+
</p>
62+
</div>
63+
64+
<div>
65+
<p>
66+
We appreciate your contributions to our platform and look forward to
67+
more successful transactions!
68+
</p>
69+
</div>
70+
71+
<div>
72+
<p>
73+
Best regards,
74+
<br />
75+
76+
{{service_info.display_name}}
77+
<br />
78+
79+
<img
80+
style="display: block; border: 0px; padding: 4px"
81+
title="Logo"
82+
alt="Logo"
83+
src="{{service_info.service_logo}}"
84+
height="50"
85+
/>
86+
</p>
87+
</div>
88+
</body>
89+
</html>
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<html lang="zh-Hant">
2+
<head>
3+
<meta charset="utf-8" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
<title>您的 Capture 已被收藏!</title>
6+
</head>
7+
8+
<body>
9+
<span
10+
style="
11+
background-color: rgb(255, 255, 255);
12+
color: rgb(34, 34, 34);
13+
font-family: arial, helvetica, sans-serif;
14+
"
15+
>親愛的創作者,</span
16+
><br />
17+
18+
<div>
19+
<p>
20+
恭喜您!您的 Capture 作品已被收藏!
21+
22+
<br />
23+
以下是交易細節:
24+
</p>
25+
<ul>
26+
<li>交易日期: {{order.date}}</li>
27+
<li>
28+
Capture Nid:
29+
<a href="{{order.asset_link}}">{{order.nid}}</a>
30+
</li>
31+
<li>數量: {{order.quantity}}</li>
32+
<li>收藏價格 ({{order.price_base}}): {{order.collection_price}}</li>
33+
<li>
34+
平台服務費 ({{order.price_base}}): {{order.service_fee}} (12%)
35+
</li>
36+
<li>
37+
代理抽成 ({{ order.price_base }}): {{ order.agency_fee }}
38+
({{ order.agency_name }} 抽成 {{ order.agency_fee_pct }}%)
39+
</li>
40+
<li>實收金額 ({{order.price_base}}): {{order.income}}</li>
41+
</ul>
42+
</div>
43+
<div>
44+
<p>*備注:所有者的收益分成是{{order.share_percentage}}。</p>
45+
<p>
46+
您的銷售所得將會直接匯入您的 Capture
47+
錢包。如果是信用卡付款,根據相關規定,需要等待 7
48+
天的資金保管期才能提領。
49+
</p>
50+
</div>
51+
<div>
52+
<p>
53+
想查看最新的錢包餘額,請開啟
54+
<a href="{{cam_link}}">Capture Cam App</a>
55+
或登入
56+
<a href="{{dashboard_link}}">Capture Dashboard</a
57+
>點選選單中的「錢包」查看。
58+
</p>
59+
</div>
60+
61+
<div>
62+
<p>感謝您對我們平台的貢獻,期待更多成功的交易!</p>
63+
</div>
64+
65+
<div>
66+
<p>
67+
敬祝 平安順心
68+
<br />
69+
70+
{{service_info.display_name}} 團隊敬上
71+
<br />
72+
73+
<img
74+
style="display: block; border: 0px; padding: 4px"
75+
title="Logo"
76+
alt="Logo"
77+
src="{{service_info.service_logo}}"
78+
height="50"
79+
/>
80+
</p>
81+
</div>
82+
</body>
83+
</html>
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="utf-8" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
<title>Your Capture has been re-collected!</title>
6+
</head>
7+
8+
<body>
9+
<span
10+
style="
11+
background-color: rgb(255, 255, 255);
12+
color: rgb(34, 34, 34);
13+
font-family: arial, helvetica, sans-serif;
14+
"
15+
>Dear creator,</span
16+
><br />
17+
18+
<div>
19+
<p>
20+
Your Capture has been re-collected.
21+
22+
<br />
23+
See the details below:
24+
</p>
25+
<ul>
26+
<li>Transaction Date: {{order.date}}</li>
27+
<li>
28+
Capture Nid:
29+
<a href="{{order.asset_link}}">{{order.nid}}</a>
30+
</li>
31+
<li>Quantity: {{order.quantity}}</li>
32+
<li>
33+
Collection Price ({{order.price_base}}): {{order.collection_price}}
34+
</li>
35+
<li>
36+
Platform Service Fee ({{order.price_base}}): {{order.service_fee}}
37+
(12%)
38+
</li>
39+
<li>
40+
Agency Commission Fee ({{ order.price_base }}): {{ order.agency_fee }}
41+
({{ order.agency_fee_pct }}% for {{ order.agency_name }})
42+
</li>
43+
<li>Income ({{order.price_base}}): {{order.income}}</li>
44+
</ul>
45+
</div>
46+
<div>
47+
<p>*Note: The original author's share of {{order.share_percentage}} is the income.</p>
48+
<p>
49+
Your sales proceeds will be credited to your Capture wallet. If the
50+
payment was proceeded with credit card, it would take 7 days until you
51+
may withdraw the fund due to the regulation.
52+
</p>
53+
</div>
54+
<div>
55+
<p>
56+
To view your updated balance, please visit the
57+
<a href="{{cam_link}}">Capture Cam App</a>
58+
or
59+
<a href="{{dashboard_link}}">Capture Dashboard</a>, navigate to the menu
60+
and click "wallet".
61+
</p>
62+
</div>
63+
64+
<div>
65+
<p>
66+
We appreciate your contributions to our platform and look forward to
67+
more successful transactions!
68+
</p>
69+
</div>
70+
71+
<div>
72+
<p>
73+
Best regards,
74+
<br />
75+
76+
{{service_info.display_name}}
77+
<br />
78+
79+
<img
80+
style="display: block; border: 0px; padding: 4px"
81+
title="Logo"
82+
alt="Logo"
83+
src="{{service_info.service_logo}}"
84+
height="50"
85+
/>
86+
</p>
87+
</div>
88+
</body>
89+
</html>
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<html lang="zh-Hant">
2+
<head>
3+
<meta charset="utf-8" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
<title>您的 Capture 已被再收藏!</title>
6+
</head>
7+
8+
<body>
9+
<span
10+
style="
11+
background-color: rgb(255, 255, 255);
12+
color: rgb(34, 34, 34);
13+
font-family: arial, helvetica, sans-serif;
14+
"
15+
>親愛的創作者,</span
16+
><br />
17+
18+
<div>
19+
<p>
20+
恭喜您!您的 Capture 作品已被再收藏!
21+
22+
<br />
23+
以下是交易細節:
24+
</p>
25+
<ul>
26+
<li>交易日期: {{order.date}}</li>
27+
<li>
28+
Capture Nid:
29+
<a href="{{order.asset_link}}">{{order.nid}}</a>
30+
</li>
31+
<li>數量: {{order.quantity}}</li>
32+
<li>收藏價格 ({{order.price_base}}): {{order.collection_price}}</li>
33+
<li>
34+
平台服務費 ({{order.price_base}}): {{order.service_fee}} (12%)
35+
</li>
36+
<li>
37+
代理抽成 ({{ order.price_base }}): {{ order.agency_fee }}
38+
({{ order.agency_name }} 抽成 {{ order.agency_fee_pct }}%)
39+
</li>
40+
<li>實收金額 ({{order.price_base}}): {{order.income}}</li>
41+
</ul>
42+
</div>
43+
<div>
44+
<p>*備注:原作者的收益分成是{{order.share_percentage}}。</p>
45+
<p>
46+
您的銷售所得將會直接匯入您的 Capture
47+
錢包。如果是信用卡付款,根據相關規定,需要等待 7
48+
天的資金保管期才能提領。
49+
</p>
50+
</div>
51+
<div>
52+
<p>
53+
想查看最新的錢包餘額,請開啟
54+
<a href="{{cam_link}}">Capture Cam App</a>
55+
或登入
56+
<a href="{{dashboard_link}}">Capture Dashboard</a
57+
>點選選單中的「錢包」查看。
58+
</p>
59+
</div>
60+
61+
<div>
62+
<p>感謝您對我們平台的貢獻,期待更多成功的交易!</p>
63+
</div>
64+
65+
<div>
66+
<p>
67+
敬祝 平安順心
68+
<br />
69+
70+
{{service_info.display_name}} 團隊敬上
71+
<br />
72+
73+
<img
74+
style="display: block; border: 0px; padding: 4px"
75+
title="Logo"
76+
alt="Logo"
77+
src="{{service_info.service_logo}}"
78+
height="50"
79+
/>
80+
</p>
81+
</div>
82+
</body>
83+
</html>

templates/capture/product_sold_recollected/zh-hant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en">
1+
<html lang="zh-Hant">
22
<head>
33
<meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />

templates/capture/transaction_received/zh-hant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en">
1+
<html lang="zh-Hant">
22
<head>
33
<meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />

templates/time-capsule/product_sold/zh-hant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en">
1+
<html lang="zh-Hant">
22
<head>
33
<meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />

templates/time-capsule/product_sold_recollected/zh-hant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en">
1+
<html lang="zh-Hant">
22
<head>
33
<meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />

templates/time-capsule/transaction_received/zh-hant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html lang="en">
1+
<html lang="zh-Hant">
22
<head>
33
<meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />

0 commit comments

Comments
 (0)