-
Notifications
You must be signed in to change notification settings - Fork 5
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 #18 from lightsparkdev/feat/umainvites
Add UMA invitation functions to the SDK.
- Loading branch information
Showing
28 changed files
with
1,881 additions
and
41 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
4 changes: 2 additions & 2 deletions
4
lightspark/src/objects/account_to_payment_requests_connection.rs
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct ClaimUmaInvitationInput { | ||
pub invitation_code: String, | ||
|
||
pub invitee_uma: String, | ||
} |
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,18 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::types::entity_wrapper::EntityWrapper; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct ClaimUmaInvitationOutput { | ||
#[serde(rename = "claim_uma_invitation_output_invitation")] | ||
pub invitation: EntityWrapper, | ||
} | ||
|
||
pub const FRAGMENT: &str = " | ||
fragment ClaimUmaInvitationOutputFragment on ClaimUmaInvitationOutput { | ||
__typename | ||
claim_uma_invitation_output_invitation: invitation { | ||
id | ||
} | ||
} | ||
"; |
14 changes: 14 additions & 0 deletions
14
lightspark/src/objects/claim_uma_invitation_with_incentives_input.rs
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,14 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::objects::region_code::RegionCode; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct ClaimUmaInvitationWithIncentivesInput { | ||
pub invitation_code: String, | ||
|
||
pub invitee_uma: String, | ||
|
||
pub invitee_phone_hash: String, | ||
|
||
pub invitee_region: RegionCode, | ||
} |
18 changes: 18 additions & 0 deletions
18
lightspark/src/objects/claim_uma_invitation_with_incentives_output.rs
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,18 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::types::entity_wrapper::EntityWrapper; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct ClaimUmaInvitationWithIncentivesOutput { | ||
#[serde(rename = "claim_uma_invitation_with_incentives_output_invitation")] | ||
pub invitation: EntityWrapper, | ||
} | ||
|
||
pub const FRAGMENT: &str = " | ||
fragment ClaimUmaInvitationWithIncentivesOutputFragment on ClaimUmaInvitationWithIncentivesOutput { | ||
__typename | ||
claim_uma_invitation_with_incentives_output_invitation: invitation { | ||
id | ||
} | ||
} | ||
"; |
12 changes: 12 additions & 0 deletions
12
lightspark/src/objects/create_invitation_with_incentives_input.rs
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,12 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::objects::region_code::RegionCode; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct CreateInvitationWithIncentivesInput { | ||
pub inviter_uma: String, | ||
|
||
pub inviter_phone_hash: String, | ||
|
||
pub inviter_region: RegionCode, | ||
} |
18 changes: 18 additions & 0 deletions
18
lightspark/src/objects/create_invitation_with_incentives_output.rs
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,18 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::types::entity_wrapper::EntityWrapper; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct CreateInvitationWithIncentivesOutput { | ||
#[serde(rename = "create_invitation_with_incentives_output_invitation")] | ||
pub invitation: EntityWrapper, | ||
} | ||
|
||
pub const FRAGMENT: &str = " | ||
fragment CreateInvitationWithIncentivesOutputFragment on CreateInvitationWithIncentivesOutput { | ||
__typename | ||
create_invitation_with_incentives_output_invitation: invitation { | ||
id | ||
} | ||
} | ||
"; |
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,7 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct CreateUmaInvitationInput { | ||
pub inviter_uma: String, | ||
} |
Oops, something went wrong.