-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
591 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ func TestFlows_List(t *testing.T) { | |
{ | ||
"id": "string", | ||
"state": "START_PENDING", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"type": "JOIN_ORGANIZATION", | ||
"startTime": "2024-02-05T23:07:46.483Z", | ||
"expireTime": "2024-02-05T23:07:46.483Z", | ||
|
@@ -54,12 +54,12 @@ func TestFlows_CreateJoinOrganization(t *testing.T) { | |
tr.Body = `{ | ||
"id": "string", | ||
"state": "START_PENDING", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"type": "JOIN_ORGANIZATION", | ||
"organization": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -93,7 +93,7 @@ func TestFlows_CreateJoinOrganization(t *testing.T) { | |
"user": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -127,7 +127,7 @@ func TestFlows_CreateJoinOrganization(t *testing.T) { | |
"creator": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -207,12 +207,12 @@ func TestFlows_CreateSignup(t *testing.T) { | |
tr.Body = `{ | ||
"id": "string", | ||
"state": "START_PENDING", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"type": "JOIN_ORGANIZATION", | ||
"organization": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -246,7 +246,7 @@ func TestFlows_CreateSignup(t *testing.T) { | |
"user": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -280,7 +280,7 @@ func TestFlows_CreateSignup(t *testing.T) { | |
"creator": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -360,12 +360,12 @@ func TestFlows_Get(t *testing.T) { | |
tr.Body = `{ | ||
"id": "string", | ||
"state": "START_PENDING", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"type": "JOIN_ORGANIZATION", | ||
"organization": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -399,7 +399,7 @@ func TestFlows_Get(t *testing.T) { | |
"user": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -433,7 +433,7 @@ func TestFlows_Get(t *testing.T) { | |
"creator": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -513,12 +513,12 @@ func TestFlows_Cancel(t *testing.T) { | |
tr.Body = `{ | ||
"id": "string", | ||
"state": "START_PENDING", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"type": "JOIN_ORGANIZATION", | ||
"organization": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -552,7 +552,7 @@ func TestFlows_Cancel(t *testing.T) { | |
"user": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
@@ -586,7 +586,7 @@ func TestFlows_Cancel(t *testing.T) { | |
"creator": { | ||
"id": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"email": "[email protected]", | ||
|
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 |
---|---|---|
|
@@ -20,21 +20,21 @@ func TestInvoices_List(t *testing.T) { | |
{ | ||
"id": "string", | ||
"state": "DRAFT", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"stateTime": "2024-02-05T23:07:46.483Z", | ||
"externalId": "string", | ||
"number": "string", | ||
"currencyCode": "USD", | ||
"description": "string", | ||
"effectiveTime": "2024-02-05T23:07:46.483Z", | ||
"subtotalAmount": "string", | ||
"discountAmount": "string", | ||
"taxAmount": "string", | ||
"totalAmount": "string", | ||
"dueAmount": "string", | ||
"remainingDueAmount": "string", | ||
"subtotalAmount": "10", | ||
"discountAmount": "0", | ||
"taxAmount": "0", | ||
"totalAmount": "10", | ||
"dueAmount": "10", | ||
"remainingDueAmount": "0", | ||
"dueTime": "2024-02-05T23:07:46.483Z", | ||
"paidAmount": "string", | ||
"paidAmount": "10", | ||
"paymentState": "PAYMENT_METHOD_REQUIRED", | ||
"pullTime": "2024-02-05T23:07:46.483Z", | ||
"createTime": "2024-02-05T23:07:46.483Z", | ||
|
@@ -65,26 +65,32 @@ func TestInvoices_Get(t *testing.T) { | |
tr.Body = `{ | ||
"id": "string", | ||
"state": "DRAFT", | ||
"stateReason": "DELETED", | ||
"stateReason": "UPDATING", | ||
"stateTime": "2024-02-05T23:07:46.483Z", | ||
"connection": { | ||
"id": "string", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"state": "PENDING_SETUP", | ||
"stateReason": "DELETED", | ||
"type": "string", | ||
"state": "ACTIVE", | ||
"stateReason": "UPDATING", | ||
"type": "AMAZON_COGNITO", | ||
"delegate": { | ||
"id": "string", | ||
"uniqueId": "test", | ||
"displayName": "Test", | ||
"state": "PENDING_SETUP", | ||
"stateReason": "DELETED", | ||
"type": "string" | ||
"state": "ACTIVE", | ||
"stateReason": "UPDATING", | ||
"type": "AMAZON_COGNITO" | ||
}, | ||
"providers": [], | ||
"createTime": "2024-02-05T23:07:46.483Z", | ||
"updateTime": "2024-02-05T23:07:46.483Z", | ||
"amazonCognito": { | ||
"userPoolId": "string", | ||
"region": "string", | ||
"accessKeyId": "string", | ||
"accessKeySecret": "string" | ||
}, | ||
"auth0": { | ||
"domain": "string", | ||
"clientId": "string", | ||
|
@@ -116,7 +122,7 @@ func TestInvoices_Get(t *testing.T) { | |
"currencyCode": "USD", | ||
"description": "string", | ||
"account": { | ||
"fullName": "Test", | ||
"fullName": "Jane Doe", | ||
"email": "[email protected]", | ||
"phoneNumber": "+12125550123", | ||
"address": { | ||
|
@@ -132,19 +138,19 @@ func TestInvoices_Get(t *testing.T) { | |
"startTime": "2024-02-05T23:07:46.483Z", | ||
"endTime": "2024-02-05T23:07:46.483Z" | ||
}, | ||
"subtotalAmount": "string", | ||
"discountAmount": "string", | ||
"subtotalAmount": "10", | ||
"discountAmount": "0", | ||
"balance": { | ||
"startAmount": "string", | ||
"endAmount": "string", | ||
"appliedAmount": "string" | ||
"startAmount": "10", | ||
"endAmount": "10", | ||
"appliedAmount": "10" | ||
}, | ||
"taxAmount": "string", | ||
"totalAmount": "string", | ||
"dueAmount": "string", | ||
"remainingDueAmount": "string", | ||
"taxAmount": "0", | ||
"totalAmount": "10", | ||
"dueAmount": "10", | ||
"remainingDueAmount": "0", | ||
"dueTime": "2024-02-05T23:07:46.483Z", | ||
"paidAmount": "string", | ||
"paidAmount": "10", | ||
"paymentState": "PAYMENT_METHOD_REQUIRED", | ||
"paymentIntent": { | ||
"stripe": { | ||
|
@@ -157,8 +163,8 @@ func TestInvoices_Get(t *testing.T) { | |
{ | ||
"id": "string", | ||
"quantity": 1, | ||
"subtotalAmount": "string", | ||
"discountAmount": "string", | ||
"subtotalAmount": "10", | ||
"discountAmount": "0", | ||
"description": "string", | ||
"externalId": "string", | ||
"proration": true | ||
|
@@ -168,8 +174,8 @@ func TestInvoices_Get(t *testing.T) { | |
{ | ||
"time": "2024-02-05T23:07:46.483Z", | ||
"description": "string", | ||
"subtotalAmount": "string", | ||
"discountAmount": "string", | ||
"subtotalAmount": "10", | ||
"discountAmount": "0", | ||
"startQuantity": 1, | ||
"endQuantity": 1, | ||
"startItemIds": [], | ||
|
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
Oops, something went wrong.