-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing membership details (#195)
- Added `phone`, `address` and `plan` fields
- Loading branch information
1 parent
f184116
commit 99f4d1e
Showing
10 changed files
with
152 additions
and
12 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
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 |
---|---|---|
|
@@ -23,13 +23,23 @@ const membershipResponse: MembershipApiResponse = { | |
address: { | ||
company: "Acme inc", | ||
name: "Sam Duncan", | ||
full_address: "982 Ruguw Terrace", | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
payment_method: { | ||
name: "Credit Card", | ||
}, | ||
plan: { | ||
name: "Full Time", | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
customer_number: "123", | ||
confirmed_at: "2012/04/12 12:00:00 +0000", | ||
|
@@ -40,9 +50,25 @@ const membershipOutput: MembershipOutput = { | |
id: "003b37a3-f205-5d9e-9caf-c4ca612075d4", | ||
name: "Sam Duncan", | ||
company: "Acme inc", | ||
address: { | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
email: "[email protected]", | ||
phone: null, | ||
customer_number: "123", | ||
plan_name: "Full Time", | ||
plan: { | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
payment_method_name: "Credit Card", | ||
confirmed_at: "2012-04-12", | ||
canceled_to: "2012-04-14", | ||
|
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 |
---|---|---|
|
@@ -23,13 +23,23 @@ const membershipResponse: MembershipApiResponse = { | |
address: { | ||
company: "Acme inc", | ||
name: "Sam Duncan", | ||
full_address: "982 Ruguw Terrace", | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
payment_method: { | ||
name: "Credit Card", | ||
}, | ||
plan: { | ||
name: "Full Time", | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
customer_number: "123", | ||
confirmed_at: "2012/04/12 12:00:00 +0000", | ||
|
@@ -40,9 +50,25 @@ const membershipOutput: MembershipOutput = { | |
id: "003b37a3-f205-5d9e-9caf-c4ca612075d4", | ||
name: "Sam Duncan", | ||
company: "Acme inc", | ||
address: { | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
email: "[email protected]", | ||
phone: null, | ||
customer_number: "123", | ||
plan_name: "Full Time", | ||
plan: { | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
payment_method_name: "Credit Card", | ||
confirmed_at: "2012-04-12", | ||
canceled_to: "2012-04-14", | ||
|
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 |
---|---|---|
|
@@ -18,17 +18,27 @@ const membershipResponse: MembershipApiResponse = { | |
id: "003b37a3-f205-5d9e-9caf-c4ca612075d4", | ||
name: "Sam Duncan", | ||
email: "[email protected]", | ||
phone: null, | ||
phone: "+1 555 683 4463", | ||
address: { | ||
company: "Acme inc", | ||
name: "Sam Duncan", | ||
full_address: "982 Ruguw Terrace", | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
payment_method: { | ||
name: "Credit Card", | ||
}, | ||
plan: { | ||
name: "Full Time", | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
customer_number: "123", | ||
confirmed_at: "2012/04/12 12:00:00 +0000", | ||
|
@@ -38,9 +48,25 @@ const membershipOutput: MembershipOutput = { | |
id: "003b37a3-f205-5d9e-9caf-c4ca612075d4", | ||
name: "Sam Duncan", | ||
company: "Acme inc", | ||
address: { | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
email: "[email protected]", | ||
phone: "+1 555 683 4463", | ||
customer_number: "123", | ||
plan_name: "Full Time", | ||
plan: { | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
payment_method_name: "Credit Card", | ||
confirmed_at: "2012-04-12", | ||
}; | ||
|
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
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 |
---|---|---|
|
@@ -59,9 +59,25 @@ export const membershipSample: MembershipOutput = { | |
id: "003b37a3-f205-5d9e-9caf-c4ca612075d4", | ||
name: "Sam Duncan", | ||
company: "", | ||
address: { | ||
full_address: "982 Ruguw Terrace\n55112 Bellona", | ||
address: "982 Ruguw Terrace", | ||
city: "Bellona", | ||
post_code: "55112", | ||
state: "AK", | ||
country: "US", | ||
}, | ||
email: "[email protected]", | ||
phone: "+1 555 683 4463", | ||
customer_number: "123", | ||
plan_name: "Full Time", | ||
plan: { | ||
description: "Enjoy the stability of a Full Time membership", | ||
total_price_per_cycle: "100.0", | ||
currency: "USD", | ||
cycle_duration: 1, | ||
cancellation_period: 14, | ||
}, | ||
payment_method_name: "Credit Card", | ||
confirmed_at: "2012-04-12", | ||
canceled_to: "2012-04-12", | ||
|