Rename "paymentSequence" to "suspensionSequence" in suspended payments

This commit is contained in:
Chris Clark
2015-11-16 12:10:17 -08:00
parent 9af20f9176
commit c1bf1fd211
8 changed files with 12 additions and 12 deletions

View File

@@ -9,11 +9,11 @@
"$ref": "address",
"description": "The address of the owner of the suspended payment to cancel."
},
"paymentSequence": {
"suspensionSequence": {
"$ref": "sequence",
"description": "The [account sequence number](#account-sequence-number) of the [Suspended Payment Creation](#suspended-payment-creation) transaction for the suspended payment to cancel."
}
},
"required": ["owner", "paymentSequence"],
"required": ["owner", "suspensionSequence"],
"additionalProperties": false
}

View File

@@ -9,7 +9,7 @@
"$ref": "address",
"description": "The address of the owner of the suspended payment to execute."
},
"paymentSequence": {
"suspensionSequence": {
"$ref": "sequence",
"description": "The [account sequence number](#account-sequence-number) of the [Suspended Payment Creation](#suspended-payment-creation) transaction for the suspended payment to execute."
},
@@ -28,6 +28,6 @@
"description": "This value will be hashed to produce the digest."
}
},
"required": ["owner", "paymentSequence"],
"required": ["owner", "suspensionSequence"],
"additionalProperties": false
}

View File

@@ -9,7 +9,7 @@ function parseSuspendedPaymentCancellation(tx: Object): Object {
return utils.removeUndefined({
memos: utils.parseMemos(tx),
owner: tx.Owner,
paymentSequence: tx.OfferSequence
suspensionSequence: tx.OfferSequence
});
}

View File

@@ -9,7 +9,7 @@ function parseSuspendedPaymentExecution(tx: Object): Object {
return utils.removeUndefined({
memos: utils.parseMemos(tx),
owner: tx.Owner,
paymentSequence: tx.OfferSequence,
suspensionSequence: tx.OfferSequence,
method: tx.Method,
digest: tx.Digest,
proof: tx.Proof ? utils.hexToString(tx.Proof) : undefined

View File

@@ -8,7 +8,7 @@ import type {Memo} from '../common/types.js';
type SuspendedPaymentCancellation = {
owner: string,
paymentSequence: number,
suspensionSequence: number,
memos?: Array<Memo>
}
@@ -19,7 +19,7 @@ function createSuspendedPaymentCancellationTransaction(account: string,
TransactionType: 'SuspendedPaymentCancel',
Account: account,
Owner: payment.owner,
OfferSequence: payment.paymentSequence
OfferSequence: payment.suspensionSequence
};
if (payment.memos !== undefined) {
txJSON.Memos = _.map(payment.memos, utils.convertMemo);

View File

@@ -8,7 +8,7 @@ import type {Memo} from '../common/types.js';
type SuspendedPaymentExecution = {
owner: string,
paymentSequence: number,
suspensionSequence: number,
memos?: Array<Memo>,
method?: number,
digest?: string,
@@ -22,7 +22,7 @@ function createSuspendedPaymentExecutionTransaction(account: string,
TransactionType: 'SuspendedPaymentFinish',
Account: account,
Owner: payment.owner,
OfferSequence: payment.paymentSequence
OfferSequence: payment.suspensionSequence
};
if (payment.method !== undefined) {

View File

@@ -1,4 +1,4 @@
{
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"paymentSequence": 1234
"suspensionSequence": 1234
}

View File

@@ -1,6 +1,6 @@
{
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"paymentSequence": 1234,
"suspensionSequence": 1234,
"method": 1,
"digest": "8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4",
"proof": "whatever"